i3-open-next-ws

Crates.ioi3-open-next-ws
lib.rsi3-open-next-ws
version0.1.5
sourcesrc
created_at2021-10-22 01:41:20.119195
updated_at2022-01-19 20:51:23.054385
descriptionA companion utility to i3wm for managing workspaces.
homepage
repositoryhttps://github.com/JohnDowson/i3-open-next-ws
max_upload_size
id469153
size15,850
Ivan Chinenov (JohnDowson)

documentation

README

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
Commit count: 19

cargo fmt