From a2ae2a185f237cddc99479c0a50fce212be2c871 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 27 Aug 2023 18:01:13 +1000 Subject: [PATCH] Added docked laptop setup --- .config/i3/config | 1 + .local/bin/screen-dock.sh | 2 ++ .local/bin/screen-laptop.sh | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 .local/bin/screen-dock.sh diff --git a/.config/i3/config b/.config/i3/config index 4d3eac9..4da19c7 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -285,6 +285,7 @@ mode "monitor-mode" { bindsym 1 exec ~/.local/bin/screen-external.sh bindsym 2 exec ~/.local/bin/screen-laptop.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 bindsym Return mode "default" diff --git a/.local/bin/screen-dock.sh b/.local/bin/screen-dock.sh new file mode 100755 index 0000000..2ab7819 --- /dev/null +++ b/.local/bin/screen-dock.sh @@ -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 diff --git a/.local/bin/screen-laptop.sh b/.local/bin/screen-laptop.sh index a56c258..7a68dcf 100755 --- a/.local/bin/screen-laptop.sh +++ b/.local/bin/screen-laptop.sh @@ -1,2 +1,2 @@ #!/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