4 releases
0.1.5 | Jan 19, 2022 |
---|---|
0.1.4 | Oct 22, 2021 |
0.1.3 | Oct 22, 2021 |
0.1.2 | Oct 22, 2021 |
#770 in GUI
6KB
87 lines
i3-open-next-ws
A companion utility to i3wm for managing workspaces. I found myself wanting to move windows to their own workspaces, without caring which number that workspace has, so I wrote this simple tool to pick first unused workspace automagically.
Installation:
cargo install --git https://github.com/JohnDowson/i3-open-next-ws.git
# add ~/.cargo/bin/ to path
Usage:
i3-open-next-ws [OPTIONS] [WORKSPACE]
OPTIONS:
-e, --exec <COMMAND> Execute COMMAND on a new workspace
-f, --focus Focus first unused workspace
-m, --move Move focused window to the first unused workspace
This will move currently focused window to first unused workspace:
$ i3-open-next-ws --move
This will focus workspace 5
$ i3-open-next-ws --focus 5
This will open chromium on workspace 3
$ i3-open-next-ws --exec chromium -- 3
Commands can be combined: this will move currently focused window to the first unused workspace AND focus that workspace
$ i3-open-next-ws --focus --move
Dependencies
~2.3–3.5MB
~63K SLoC