myhome/.local/bin/screen-switcher

14 lines
316 B
Plaintext
Raw Normal View History

2020-05-09 13:43:39 +02:00
#!/bin/bash
choices="Left\nRight\nDuplicated\nHDMI\nMonitor\nTV\n"
2020-05-09 13:43:39 +02:00
chosen=$(echo -e "$choices" | dmenu -i)
case "$chosen" in
Monitor) mons -o ;;
Duplicated) mons -d ;;
Left) mons -e left ;;
Right) mons -e right ;;
HDMI) mons -s ;;
TV) xrandr --output HDMI-1 --left-of eDP-1 --mode 1366x768 --rate 60
2020-05-09 13:43:39 +02:00
esac