summaryrefslogtreecommitdiff
path: root/undock.sh
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2022-02-26 17:05:35 -0500
committerAdam T. Carpenter <atc@53hor.net>2022-02-26 17:05:35 -0500
commit3ec6dc8801b933c7d5bbf7fdca498d546c5d2f24 (patch)
treec83ba4720ae8b1ca230f656beb6cb25350a93da3 /undock.sh
parent8b9bf007b803268506108c6a6e898f5017aa7622 (diff)
downloadscripts-3ec6dc8801b933c7d5bbf7fdca498d546c5d2f24.tar.xz
scripts-3ec6dc8801b933c7d5bbf7fdca498d546c5d2f24.zip
fix: revamped dock/undock for devd
Diffstat (limited to 'undock.sh')
-rwxr-xr-xundock.sh14
1 files changed, 4 insertions, 10 deletions
diff --git a/undock.sh b/undock.sh
index 1f84470..f4f9ec7 100755
--- a/undock.sh
+++ b/undock.sh
@@ -1,11 +1,5 @@
#!/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...'" &
+/bin/sleep 3
+/usr/local/bin/xrandr --output DP-3 --auto --primary --output DP-2 --off
+/sbin/sysctl hw.acpi.lid_switch_state=S3
+/usr/local/bin/xautolock -enable