dotfiles/bspwm/display.sh

12 lines
299 B
Bash
Executable file

#!/bin/dash
choices="arandr\nLVDS_off\ndual\nLVDS_on"
chosen=$(echo "$choices" | dmenu -i)
case "$chosen" in
arandr) arandr ;;
LVDS_off) xrandr --output LVDS-1-1 --off & ;;
dual) xrandr --output DP-4 --auto --output VGA-1-1 --right-of DP-4 ;;
LVDS_on) xrandr --output LVDS-1-1 --auto ;;
esac