aboutsummaryrefslogtreecommitdiff
path: root/i3lock.sh
diff options
context:
space:
mode:
Diffstat (limited to 'i3lock.sh')
-rwxr-xr-xi3lock.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/i3lock.sh b/i3lock.sh
new file mode 100755
index 0000000..029b2f1
--- /dev/null
+++ b/i3lock.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Generates an i3lock bg based on a screenshot.
+
+imgLock="$HOME/images/padlock.png"
+imgFinal="/tmp/lockFinal$(date +"%H%M%S").png"
+maim /tmp/i3lockss.png
+convert /tmp/i3lockss.png -paint 1 -swirl -20 "$imgLock" -gravity center -composite "$imgFinal"
+i3lock -i "$imgFinal" -f