myhome/.local/bin/screen-switcher
Marcin Woźniak c1e04f3cbf
Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2020-10-04 00:40:03 +02:00

14 lines
316 B
Bash
Executable File

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