aboutsummaryrefslogtreecommitdiff
path: root/des/i3/i3lock.sh
diff options
context:
space:
mode:
Diffstat (limited to 'des/i3/i3lock.sh')
-rwxr-xr-xdes/i3/i3lock.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/des/i3/i3lock.sh b/des/i3/i3lock.sh
new file mode 100755
index 0000000..39bd8da
--- /dev/null
+++ b/des/i3/i3lock.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+IMG="~/.setup/des/i3/assets/wallpaper/yosemite_color_block.png"
+
+xautolock -time 1 -locker "i3lock -i $IMG" -notify 20 -notifier 'xset dpms force off' &
+xautolock -time 10 -locker "systemctl suspend" &