diff --git a/builds/utils/disp b/builds/utils/disp index 92c6533..c4a71d3 100755 --- a/builds/utils/disp +++ b/builds/utils/disp @@ -143,22 +143,39 @@ case "$(hostname)" in esac ;; "copernicus") - xinput set-prop 'INSTANT USB GAMING MOUSE ' 'libinput Accel Speed' -1 - xrandr --output HDMI-0 --primary --mode 1920x1080 --rate 180 --pos 1920x0 --rotate normal \ - --output DP-0 --mode 1920x1080 --pos 0x0 --rate 180 --rotate normal \ - --output DP-1 --off \ - --output DP-2 --off \ - --output DP-3 --off \ - --output DP-4 --off \ - --output DP-5 --off \ - --output DP-1-1 --off \ - --output HDMI-1-1 --off \ - --output DP-1-2 --off \ - --output HDMI-1-2 --mode 1920x1080 --pos 3840x0 --rotate normal - bspc monitor DP-0 -d 1 3 5 7 - bspc monitor HDMI-0 -d 2 4 6 8 - bspc monitor HDMI-1-2 -d 9 - ;; + case "$1" in + "tv") + xrandr --output HDMI-0 --off \ + --output DP-0 --off \ + --output DP-1 --off \ + --output DP-2 --off \ + --output DP-3 --off \ + --output DP-4 --off \ + --output DP-5 --off \ + --output DP-1-1 --off \ + --output HDMI-1-1 --off \ + --output DP-1-2 --off \ + --output HDMI-1-2 --primary --mode 1920x1080 --pos 0x0 --rotate normal + bspc monitor HDMI-1-2 -d 1 2 3 4 5 6 7 8 9 + ;; + *) + xinput set-prop 'INSTANT USB GAMING MOUSE ' 'libinput Accel Speed' -1 + xrandr --output HDMI-0 --primary --mode 1920x1080 --rate 180 --pos 1920x0 --rotate normal \ + --output DP-0 --mode 1920x1080 --pos 0x0 --rate 180 --rotate normal \ + --output DP-1 --off \ + --output DP-2 --off \ + --output DP-3 --off \ + --output DP-4 --off \ + --output DP-5 --off \ + --output DP-1-1 --off \ + --output HDMI-1-1 --off \ + --output DP-1-2 --off \ + --output HDMI-1-2 --mode 1920x1080 --pos 3840x0 --rotate normal + bspc monitor DP-0 -d 1 3 5 7 + bspc monitor HDMI-0 -d 2 4 6 8 + bspc monitor HDMI-1-2 -d 9 + ;; + esac esac # initial post-wm setup