dotfiles/templates/bin/wsc

9 lines
177 B
Text
Raw Permalink Normal View History

#!/bin/sh
FOCUSED="$(swaymsg -t get_outputs --raw | jq '.[] | select(.focused).name')"
for i in $(seq 1 10)
do
swaymsg "workspace $i; move workspace to output $FOCUSED"
done