From ec6a7979de9dfd3f30b2c60a14aaee4ec4f41984 Mon Sep 17 00:00:00 2001 From: randomuser Date: Sat, 6 Apr 2024 16:49:39 -0500 Subject: [PATCH] update disp for three monitor setup --- builds/utils/sh/disp | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/builds/utils/sh/disp b/builds/utils/sh/disp index 17a9546..aaeef92 100755 --- a/builds/utils/sh/disp +++ b/builds/utils/sh/disp @@ -53,22 +53,24 @@ case "$(hostname)" in "mlg") case "$1" in "invert") - xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1080x420 --rotate normal --rate 120 \ + xrandr \ + --output HDMI-0 --mode 1920x1080 --pos 3840x0 --rotate right --rate 60 \ --output DP-0 --off \ - --output DP-1-1 --mode 1920x1080 --pos 3000x420 --rotate normal --rate 120 \ - --output DP-1-2 --mode 1920x1080 --pos 0x0 --rotate right --rate 60 + --output DP-1-2 --primary --mode 1920x1080 --pos 0x352 --rotate normal --rate 180 \ + --output DP-1-1 --mode 1920x1080 --pos 1920x352 --rotate normal --rate 180 + bspc monitor DP-1-2 -d 1 3 5 7 bspc monitor DP-1-1 -d 2 4 6 8 - bspc monitor DP-1-2 -d 9 - bspc monitor HDMI-0 -d 1 3 5 7 + bspc monitor HDMI-0 -d 9 ;; *) - xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1080x420 --rotate normal --rate 120 \ + xrandr \ + --output HDMI-0 --mode 1920x1080 --pos 3840x0 --rotate right --rate 60 \ --output DP-0 --off \ - --output DP-1-2 --mode 1920x1080 --pos 3000x420 --rotate normal --rate 120 \ - --output DP-1-1 --mode 1920x1080 --pos 0x0 --rotate right --rate 60 + --output DP-1-1 --primary --mode 1920x1080 --pos 0x352 --rotate normal --rate 180 \ + --output DP-1-2 --mode 1920x1080 --pos 1920x352 --rotate normal --rate 180 + bspc monitor DP-1-1 -d 1 3 5 7 bspc monitor DP-1-2 -d 2 4 6 8 - bspc monitor DP-1-1 -d 9 - bspc monitor HDMI-0 -d 1 3 5 7 + bspc monitor HDMI-0 -d 9 ;; esac xinput set-prop 'INSTANT USB GAMING MOUSE ' 'libinput Accel Speed' -1 @@ -82,10 +84,10 @@ case "$(hostname)" in sshfs usr@192.168.1.120:/home/usr/doc $HOME/.cache/mount_point ln -sf $HOME/.cache/mount_point $HOME/doc - rm $HOME/dot_testing # this is also safe. see above - mkdir -p $HOME/.cache/mount_point2 - sshfs usr@192.168.1.120:/home/usr/dot_testing $HOME/.cache/mount_point2 - ln -sf $HOME/.cache/mount_point2 $HOME/dot_testing + rm $HOME/.thunderbird + mkdir -p $HOME/.cache/mount_point3 + sshfs usr@192.168.1.120:/home/usr/.thunderbird $HOME/.cache/mount_point3 + ln -sf $HOME/.cache/mount_point3 $HOME/.thunderbird ;; "x230t")