Program for switching between windows on swaywm
Sway doesn't support switching between recent windows out-of-box
This project is good solution, if you need this feature for using sway
You can choose whats keys will be used
supported flags:
--key-alt
- name of keyboard key with behavior ofAlt
key (by defaultKEY_LEFTALT
)--key-shift
- name of keyboard key with behavior ofShift
key (by defaultKEY_LEFTSHIFT
)--key-tab
- name of key with behavior ofTab
key (by defaultKEY_TAB
)
All names of keyboard keys you can see in libevdev library headers
Only one key set is supported at now
You can choose event device for processing from it
--device
- path to event device (by default detect automatically)
Only one event device at once is supported at now
Note: You need read permissions to files in
/dev/input/
directory or you can set sticky bit tosway-alttab
executable file (it's triessetgid
at first and thensetuid
if it needed)
sway-alttab
is remembering in what order you opening windows and switching
between them
When you press Alt-Tab sway-alttab
doesn't consider this as access while Alt
is pressed. Multi pressing on Tab while Alt is pressed is switching between
windows without remembering that. Only after release Alt key sway-alttab
will
move up current focused window to top of the list (other windows will be
untouched)
- Install cargo
- Clone project
git clone https://github.com/x1b6e6/sway-alttab
- Run
cargo build
in cloned directory