dotfiles/templates/bin/wsc
Adam Gausmann 906441df7a sway: add more workspace commands
- wsc (#Q) - move all numbered workspaces to the center
- wsn (#Y) - new named workspace
- wsr (#+Y) - rename current workspace
2024-08-28 10:35:28 -05:00

8 lines
177 B
Bash
Executable file

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