diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-12-20 16:32:59 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-12-20 16:32:59 -0500 |
commit | 45f61ff80062ec9137c0d77f3b732bc1a4f59179 (patch) | |
tree | b0e3978e43ec918e196aece2f89efadc85eff328 /toggle-docked.sh | |
parent | 8a4cbf34f6e9509ed42b54dd15b9b506184274e7 (diff) | |
download | scripts-45f61ff80062ec9137c0d77f3b732bc1a4f59179.tar.xz scripts-45f61ff80062ec9137c0d77f3b732bc1a4f59179.zip |
updated url handler, started merging with yt.sh; merged screen modes,
locker into dockd for automatic docking display swap
Diffstat (limited to 'toggle-docked.sh')
-rwxr-xr-x | toggle-docked.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/toggle-docked.sh b/toggle-docked.sh deleted file mode 100755 index a04540e..0000000 --- a/toggle-docked.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -big=2560x1440 -little=1920x1080 -is_docked=$(xrandr | grep DP-2 | cut -w -f2) - -if [ "$is_docked" = "connected" ]; then - xrandr \ - --output DP-0 --off \ - --output DP-1 --off \ - --output DP-2 --primary --mode $big --pos 0x0 --rotate normal \ - --output DP-3 --scale-from $big --same-as DP-2 --rotate normal \ - --output DP-4 --off \ - --output VGA-0 --off \ - && killall xautolock - autolocker.sh -d & -else - xrandr \ - --output DP-0 --off \ - --output DP-1 --off \ - --output DP-2 --off \ - --output DP-3 --primary --mode $little --transform none --pos 0x0 --rotate normal \ - --output DP-4 --off \ - --output VGA-0 --off \ - && killall xautolock - autolocker.sh & -fi |