A simple utility for switching to another i3 workspace, written in c using i3ipc-glib.
- Switch to the previous/next non-empty and empty workspace.
- Switch to an empty workspace.
- Only supports i3, not sway or other i3-ipc compatible window managers. This is caused by its relience on i3ipc-glib, which seems to only support i3.
- Workspaces must have numerical workspace-names.
git clone https://github.com/jorgenbele/i3next
cd i3next
make
make install # installs to $HOME/bin
Usage: ./i3n [-efhnp]
-e Find the nearest empty workspace and select it
-f Force change to next workspace (even if none is active)
-h Shows this message and quits
-n Try to change to the next workspace
-p Try to change to the previous workspace