summaryrefslogtreecommitdiff
path: root/toggle-docked.sh
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-12-20 16:32:59 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-12-20 16:32:59 -0500
commit45f61ff80062ec9137c0d77f3b732bc1a4f59179 (patch)
treeb0e3978e43ec918e196aece2f89efadc85eff328 /toggle-docked.sh
parent8a4cbf34f6e9509ed42b54dd15b9b506184274e7 (diff)
downloadscripts-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-xtoggle-docked.sh26
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