i3-insert-workspace
Insert a new named workspace between two other named workspaces.
Makes use of the i3 IPC protocol.
Usage
i3-insert-workspace 1.0.1
Simple program to insert a named workspace before or after another named workspace
USAGE:
i3-insert-workspace [OPTIONS]
OPTIONS:
-b, --before
Insert before the pivot instead of after it
-c, --container-id
Move container to the new workspace.
Either provide container id, or `focused` for focused one
-h, --help
Print help information
-n, --name
Name of the new workspace
-p, --pivot
Workspace before or after which the new workspace is inserted.
If no pivot given, using focused workspaces
-V, --version
Print version information
Example
From the commandline
# Move container to a new workspace to the right
i3-insert-workspace --pivot "After me" --container-id focused --name "New workspace"
In i3 config file
set $insert_workspace ~/.config/i3/i3-insert-workspace
bindsym $mod+Control+w exec --no-startup-id $insert_workspace --before
bindsym $mod+Control+v exec --no-startup-id $insert_workspace
bindsym $mod+Control+Shift+W exec --no-startup-id $insert_workspace --before --container-id focused
bindsym $mod+Control+Shift+V exec --no-startup-id $insert_workspace --container-id focused