2020-08-01 19:13:25 +00:00
|
|
|
#!/bin/dash
|
|
|
|
|
2021-04-10 15:25:23 +00:00
|
|
|
if [ "`hostname`" = "freia" ]; then
|
|
|
|
choices="arandr\nLVDS_off\nLVDS_on\ndual"
|
|
|
|
chosen=$(echo "$choices" | dmenu -i)
|
2020-08-01 19:13:25 +00:00
|
|
|
|
2021-04-10 15:25:23 +00:00
|
|
|
case "$chosen" in
|
|
|
|
arandr) arandr ;;
|
|
|
|
LVDS_off) xrandr --output LVDS-1-1 --off & ;;
|
|
|
|
LVDS_on) xrandr --output LVDS-1-1 --auto ;;
|
|
|
|
dual) xrandr --output VGA-0 --mode 1024x768 --pos 1920x312 --rotate normal --output LVDS-0 --off --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-5 --off --output LVDS-1-1 --off --output VGA-1-1 --off ;;
|
|
|
|
esac
|
|
|
|
elif [ "`hostname`" = "setsuna" ]; then
|
|
|
|
choices="arandr\nsingle (hdmi)\ndual (hdmi+dvi)"
|
|
|
|
chosen=$(echo "$choices" | dmenu -i)
|
|
|
|
case "$chosen" in
|
|
|
|
arandr) arandr ;;
|
|
|
|
"single (hdmi)") xrandr --output HDMI-A-1 --auto --output DVI-D-0 --off ;;
|
|
|
|
"dual (hdmi+dvi)") xrandr --output HDMI-A-1 --auto --output DVI-D-0 --auto --right-of HDMI-A-1 ;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
choices="arandr"
|
|
|
|
chosen=$(echo "$choices" | dmenu -i)
|
2020-08-01 19:13:25 +00:00
|
|
|
|
2021-04-10 15:25:23 +00:00
|
|
|
case "$chosen" in
|
|
|
|
arandr) arandr ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
#choices="arandr\neDP_off\neDP_on\ndual"
|
|
|
|
#eDP_on) xrandr --output eDP --off & ;;
|
|
|
|
#eDP_off) xrandr --output eDP --auto ;;
|