add third monitor to mlg

This commit is contained in:
randomuser 2024-02-10 23:49:22 -06:00
parent 2b4fb558c3
commit 7a2763c2a2
1 changed files with 14 additions and 20 deletions

View File

@ -21,12 +21,6 @@ keyboard () {
xset r rate 200 40
}
# initial post-wm setup
keyboard
statuswrap
set_walls
screensaver
find_card_pci() {
[ -z $pci_path ] && pci_path=$(find /sys/devices | \
grep edid | \
@ -54,22 +48,15 @@ case "$(hostname)" in
bspc monitor HDMI-1 -d 2 4 6 8 0
;;
"mlg")
if exists DP-1-2; then
xrandr --output HDMI-0 --primary --mode 1920x1080 --rate 120 --pos 0x0 --rotate normal \
--output DP-1-2 --mode 1920x1080 --rate 120 --pos 1920x0 --rotate normal \
xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1080x420 --rotate normal --rate 120 \
--output DP-0 --off \
--output DP-1-1 --off
bspc monitor DP-1-2 -d 2 4 6 8
elif exists DP-1-1; then
xrandr --output HDMI-0 --primary --mode 1920x1080 --rate 120 --pos 0x0 --rotate normal \
--output DP-1-1 --mode 1920x1080 --rate 120 --pos 1920x0 --rotate normal \
--output DP-0 --off \
--output DP-1-2 --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
bspc monitor DP-1-1 -d 2 4 6 8
fi
bspc monitor DP-1-2 -d 9
bspc monitor HDMI-0 -d 1 3 5 7
xinput set-prop 'INSTANT USB GAMING MOUSE ' 'libinput Accel Speed' -1
bspc monitor HDMI-0 -d 1 3 5 7 9
# setup synchronization
pkill sshfs
@ -113,3 +100,10 @@ case "$(hostname)" in
esac
;;
esac
# initial post-wm setup
keyboard
statuswrap
set_walls
screensaver