dotfiles/sway/edp

16 lines
328 B
Text
Raw Permalink Normal View History

2022-08-29 23:22:33 +02:00
#!/bin/sh
case $1 in
-h|--help)
echo "Usage"
echo " edp toggle eDP-1"
echo " edp on enable eDP-1"
echo " edp off disable eDP-1"
echo " edp -h show this help text"
exit 0
;;
off) swaymsg output eDP-1 disable; ;;
on) swaymsg output eDP-1 enable; ;;
*) swaymsg output eDP-1 toggle; ;;
esac