dotfiles/.local/bin/scripts/swayscale

13 lines
263 B
Plaintext
Raw Normal View History

2023-04-27 12:28:04 +00:00
#!/bin/sh
# Force Sway Scaling
shift=1
scale=1
case $1 in
("") shift=0;;
([0-9]*) scale=$1;;
(col) way-displays -s ARRANGE_ALIGN COLUMN MIDDLE; exit $?;;
esac
shift $shift
2024-06-28 19:34:35 +00:00
way-displays -s SCALE '' $scale "$@" ||
swaymsg output \* scale $scale