summaryrefslogtreecommitdiff
path: root/undock.sh
diff options
context:
space:
mode:
Diffstat (limited to 'undock.sh')
-rwxr-xr-xundock.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/undock.sh b/undock.sh
new file mode 100755
index 0000000..1f84470
--- /dev/null
+++ b/undock.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+xrandr --output DP-3 --auto --primary --output DP-2 --off
+doas sysctl hw.acpi.lid_switch_state=S3
+killall xautolock
+xautolock \
+ -killtime 10 \
+ -killer "sleep 0.5; doas acpiconf -s3" \
+ -notify 10 \
+ -time 10 \
+ -locker "i3lock -n -f -c 002b36 ; sleep 0.2" \
+ -notifier "notify-send -t=10000 '10 seconds to lock...'" &