summaryrefslogtreecommitdiff
path: root/awesome/bin/random_i3lock.sh
diff options
context:
space:
mode:
Diffstat (limited to 'awesome/bin/random_i3lock.sh')
-rwxr-xr-xawesome/bin/random_i3lock.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/awesome/bin/random_i3lock.sh b/awesome/bin/random_i3lock.sh
new file mode 100755
index 0000000..e5f4e16
--- /dev/null
+++ b/awesome/bin/random_i3lock.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+R=`find "$1" | grep -P 'png$' | sort -R | head -n1`
+exec i3lock -i $R -t