summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
Diffstat (limited to 'locks')
-rwxr-xr-xlocks8
1 files changed, 8 insertions, 0 deletions
diff --git a/locks b/locks
new file mode 100755
index 0000000..c9e8e8d
--- /dev/null
+++ b/locks
@@ -0,0 +1,8 @@
+#!/bin/bash
+# locks the screen and shows a random image and suspends the system
+imgPath=/home/n8/media/pix/4a5g/Camera/Camera
+swaylock --daemonize \
+--scaling fit \
+--color 002B36 \
+--image $imgPath/$(ls $imgPath | grep -i jpg | sort -R | head -n1)
+systemctl suspend