Closed markstos closed 2 years ago
My personal issue was that I installed jq
from a snap
, which placed the binary in /snap/bin
. When I ran the command from my shell, this directory was in my $PATH, so the command succeed. However, this directory is not part of the executable path used by the sh
shell in a Sway exec
command. I resolved the issue for myself by using the full path jq
in my script, but this shouldn't be an issue for other people have jq
in a standard directory.
You're right I should have given more details. I also started with some jq script but was disappointed with the speed (it shelled-out a lot of programs), so in the end I extended a small program I wrote in rust: https://github.com/lbonn/i3-focus-last/tree/menu-plus
It has a daemon to track windows in order of focus: i3-focus-last server
. Then you can just spawn a menu with i3-focus-last menu
.
@lbonn Your i3-focus-last
in Rust looks great. I'd love to see the README updated to document the 3 modes with example syntax. As a new i3/sway user the note that it's re-implementation of a classic tool doesn't help me. I've bookmarked it to try later and may submit a doc-patch if I end up using it.
Sorry, some things are still in flux.
It's not documented yet and lives in a separate branch because I was waiting for some features to be merged in the i3ipc-rs crate it depends on. However, this project seems inactive now, so I might switch to using swayipc-rs...
I keep finding new projects written in Rust. Now I'm looking forward to contributing to a Rust project myself some day.
It's now merged in the master branch: https://github.com/lbonn/i3-focus-last/tree/master#menu-mode
Thanks!
Will this be packaged for AUR as well?
On Tue, Aug 18, 2020 at 9:44 AM lbonn notifications@github.com wrote:
It's now merged in the master branch: https://github.com/lbonn/i3-focus-last/tree/master#menu-mode
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lbonn/rofi/pull/5#issuecomment-675486997, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGJZP66TMYNMG2RWMFSX3SBKATBANCNFSM4PSWSNJQ .
-- Mark Stosberg Director of Systems and Security RideAmigos
I don't use Arch myself these days so I won't do it but anybody who cares is welcome.
It is on crates.io though, you can install it by running cargo install i3-focus-last
.
@markstos FYI: I've created https://aur.archlinux.org/packages/i3-focus-last-git/
Now addressed in the README
I might have spoken too soon. When I run
rofi
from a terminal, the script and syntax presented here work. But If I run it viabindsym
in my Sway config file, the results for the other modes appear, but I get no "window" results. Strange! I haven't figured out why I'm getting this behavior yet. Here's my Sway config file syntax.