dotfiles/.local/bin/scripts/swayscale

12 lines
258 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
way-displays -s SCALE '' $scale "$@" || swaymsg output \* scale $scale