i3/.config/i3/move_to_workspace.sh

10 lines
175 B
Bash
Raw Normal View History

#!/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