Added docked laptop setup

This commit is contained in:
Ben Vincent 2023-08-27 18:01:13 +10:00
parent 8c7fa7cd0b
commit a2ae2a185f
3 changed files with 4 additions and 1 deletions

View File

@ -285,6 +285,7 @@ mode "monitor-mode" {
bindsym 1 exec ~/.local/bin/screen-external.sh bindsym 1 exec ~/.local/bin/screen-external.sh
bindsym 2 exec ~/.local/bin/screen-laptop.sh bindsym 2 exec ~/.local/bin/screen-laptop.sh
bindsym 3 exec ~/.local/bin/screen-dual.sh bindsym 3 exec ~/.local/bin/screen-dual.sh
bindsym 4 exec ~/.local/bin/screen-dock.sh
# back to normal: Enter or Escape or $mod+r # back to normal: Enter or Escape or $mod+r
bindsym Return mode "default" bindsym Return mode "default"

2
.local/bin/screen-dock.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output eDP --off --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --mode 2560x1440 --pos 0x615 --rotate normal --output DisplayPort-3 --mode 2560x1440 --pos 2560x0 --rotate left --output DisplayPort-4 --off

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
xrandr --output eDP --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DisplayPort-0 --off --output DisplayPort-1 --off xrandr --output eDP --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --off --output DisplayPort-3 --off --output DisplayPort-4 --off