myhome/.local/bin/screen-switcher

14 lines
316 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
choices="Left\nRight\nDuplicated\nHDMI\nMonitor\nTV\n"
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
esac