feat(sway): add power-aware-effects script

This commit is contained in:
2026-03-14 14:40:04 +01:00
parent 07e5e31722
commit 72ce9353fc
4 changed files with 23 additions and 0 deletions

4
sway/scripts/ws-to-current.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
# switch to workspace and move it to the currently focused output
output=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name')
swaymsg "workspace number $1, move workspace to output $output"