Skip to content

x1b6e6/sway-alttab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Non standard keys

You can choose whats keys will be used

supported flags:

  • --key-alt - name of keyboard key with behavior of Alt key (by default KEY_LEFTALT)
  • --key-shift - name of keyboard key with behavior of Shift key (by default KEY_LEFTSHIFT)
  • --key-tab - name of key with behavior of Tab key (by default KEY_TAB)

All names of keyboard keys you can see in libevdev library headers

Only one key set is supported at now

Custom event devices

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 to sway-alttab executable file (it's tries setgid at first and then setuid if it needed)

Storing windows in order of last access

sway-alttab is remembering in what order you opening windows and switching between them

Preview Mode

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)

Building

  • Install cargo
  • Clone project git clone https://github.com/x1b6e6/sway-alttab
  • Run cargo build in cloned directory

Similar projects

sway-alttab