summaryrefslogtreecommitdiff
path: root/xinit/Scripts/lock.sh
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-08-22 13:01:24 +0200
committerJulian T <julian@jtle.dk>2020-08-22 13:01:24 +0200
commit6f4e8b5952dcae7d4f755b73974cdbe1767b7b2c (patch)
tree268cfe121957a01b6e08c2baf26296d9d06984bb /xinit/Scripts/lock.sh
parent80fdbcbe68567dc6ad9b2f4b64c687d0ba6376b4 (diff)
New lock screen
Diffstat (limited to 'xinit/Scripts/lock.sh')
-rwxr-xr-xxinit/Scripts/lock.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/xinit/Scripts/lock.sh b/xinit/Scripts/lock.sh
new file mode 100755
index 0000000..1e4efed
--- /dev/null
+++ b/xinit/Scripts/lock.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+LOCKFILE=/tmp/lockscreen.png
+
+scrot -o $LOCKFILE
+size=$(identify -format "%[fx:w]x%[fx:h]" "$LOCKFILE")
+
+convert $LOCKFILE -scale 70 -sample $size\! -quality 11 $LOCKFILE
+
+i3lock -i $LOCKFILE
+