This program is a replacement for the window selection built into rofi, which
does not work with Sway. It extracts the windows via swaymsg
instead of
querying the X server.
It is inspired by swytch.sh
,
but implemented in Go instead of Shell for speed.
Install Go, then run go build
.
Return
switches focus to the windowShift+Return
moves the window to the current workspaceControl+C
kill the window
It includes a fork of the library i3ipc-go
from here
(branch sway_support
) for Sway support (at least until
mdirkse/i3ipc-go#9 is merged). Additionally, we've
added the app_id
field used for native Wayland windows.