summaryrefslogtreecommitdiff
path: root/bin/.bin/disp
blob: 89045b220f69e07f80b89eba63134c9ec40ff803 (plain)
1
2
3
4
5
6
7
#!/bin/sh
status=$(cat /sys/class/drm/card0/*HDMI*/status)
if [ $status == "connected" ]; then
    xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x1080 --rotate normal --output HDMI-1 --mode 1366x768 --pos 0x0 --scale 1.4x1.4 --rotate normal --output DisplayPort-0 --off
else
    xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --off
fi