From 6f4e8b5952dcae7d4f755b73974cdbe1767b7b2c Mon Sep 17 00:00:00 2001 From: Julian T Date: Sat, 22 Aug 2020 13:01:24 +0200 Subject: New lock screen --- xinit/Scripts/lock.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 xinit/Scripts/lock.sh (limited to 'xinit/Scripts/lock.sh') 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 + -- cgit v1.2.3