summaryrefslogtreecommitdiff
path: root/toggle-docked.sh
diff options
context:
space:
mode:
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