dotfiles/.local/bin/scripts/swayscale

13 lines
263 B
Text
Raw Normal View History

2023-04-27 14:28:04 +02: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 22:34:35 +03:00
way-displays -s SCALE '' $scale "$@" ||
swaymsg output \* scale $scale