10 lines
175 B
Bash
10 lines
175 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [ -z "$1" ]
|
||
|
then
|
||
|
i3-msg -t get_workspaces | tr ',' '\n' | grep "name" | sed 's/"name":"\(.*\)"/\1/g' | sort -n
|
||
|
else
|
||
|
i3-msg move to workspace "$1" 1>2
|
||
|
fi
|
||
|
|