dotfiles/sway/edp
2022-08-30 02:11:28 +02:00

15 lines
328 B
Bash
Executable file

#!/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