summaryrefslogtreecommitdiff
path: root/toggle-docked.sh
diff options
context:
space:
mode:
Diffstat (limited to 'toggle-docked.sh')
-rwxr-xr-xtoggle-docked.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/toggle-docked.sh b/toggle-docked.sh
index beb0965..e062a31 100755
--- a/toggle-docked.sh
+++ b/toggle-docked.sh
@@ -2,12 +2,10 @@
hasVGA=$(xrandr | grep VGA-0 | cut -w -f2)
if [ "$hasVGA" = "connected" ]; then
- killall xautolock
- autolocker.sh -d &
xrandr \
--output VGA-0 \
--mode 1024x768 \
- --pos 1920x312 \
+ --pos 0x0 \
--rotate normal \
--dpi 82 \
--output DP-0 \
@@ -19,14 +17,14 @@ if [ "$hasVGA" = "connected" ]; then
--output DP-3 \
--primary \
--mode 1920x1080 \
- --pos 0x0 \
+ --pos 1024x0 \
--rotate normal \
--dpi 96 \
--output DP-4 \
--off
+ killall xautolock
+ autolocker.sh -d &
else
- killall xautolock
- autolocker.sh &
xrandr \
--output VGA-0 \
--off \
@@ -44,5 +42,6 @@ else
--dpi 96 \
--output DP-4 \
--off
+ killall xautolock
+ autolocker.sh &
fi
-