r/swaywm • • 16h ago

Script a script for switching focus to next window on workspace switch hotkey

5 Upvotes

I wanted a bit different behavior for 'mod+(number)' keys - so if I call it for current workspace it would cycle through windows in it. But I haven't found a swaymsg command for it. So wrote a simple script. Maybe it would be useful for others too

https://codeberg.org/akomis/dotfiles/src/branch/main/bin/sway/workspace_focus.sh

binded it instead of 'workspace number' command: bindsym --to-code $mod+1 exec $sway_scripts/workspace_focus.sh 1


r/swaywm • • 23h ago

Release vindle: minimal dwl-style Wayland compositor, now builds on FreeBSD (looking for testers)

Thumbnail gallery
4 Upvotes