From 3b0142cedcde39e4c2097ecd916a870a3ced5ec6 Mon Sep 17 00:00:00 2001 From: Vito Graffagnino Date: Tue, 8 Sep 2020 18:10:49 +0100 Subject: Added the relevent parts of the .config directory. Alss add ssh config --- .i3/scripts/lock.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .i3/scripts/lock.sh (limited to '.i3/scripts/lock.sh') diff --git a/.i3/scripts/lock.sh b/.i3/scripts/lock.sh new file mode 100755 index 0000000..0377cb1 --- /dev/null +++ b/.i3/scripts/lock.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +icon="$HOME/Pictures/Icons/lock.png" +tmpbg='/tmp/screen.png' + +(( $# )) && { icon=$1; } + +scrot "$tmpbg" +convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg" +convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg" +i3lock -i "$tmpbg" -- cgit v1.2.3