blob: 84f39fdc3ace2436861ecfe7470c7a0ce0af219d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
### Move a window to a given workspace. If it doesn't exist it creates it.
I3MSG=$(command -v i3-msg) || exit 1
JQ=$(command -v jq) || exit 2
WORKSPACE=$($I3MSG -t get_workspaces | $JQ -M '.[] | .name' | tr -d '"' | sort -u | dmenu -b -i "$@")
# Move the window first
$I3MSG -t command move workspace $WORKSPACE
# Then move the user
$I3MSG workspace $WORKSPACE
|