10 lines
175 B
Bash
Executable File
10 lines
175 B
Bash
Executable File
#!/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
|
|
|