Crates.io | i3-open-next-ws |
lib.rs | i3-open-next-ws |
version | 0.1.5 |
source | src |
created_at | 2021-10-22 01:41:20.119195 |
updated_at | 2022-01-19 20:51:23.054385 |
description | A companion utility to i3wm for managing workspaces. |
homepage | |
repository | https://github.com/JohnDowson/i3-open-next-ws |
max_upload_size | |
id | 469153 |
size | 15,850 |
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.
cargo install --git https://github.com/JohnDowson/i3-open-next-ws.git
# add ~/.cargo/bin/ to path
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