diff options
Diffstat (limited to 'scripts/.local/bin')
| -rwxr-xr-x | scripts/.local/bin/lock | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/.local/bin/lock b/scripts/.local/bin/lock new file mode 100755 index 0000000..017b297 --- /dev/null +++ b/scripts/.local/bin/lock @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +icon="$HOME/.local/share/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 -u -i "$tmpbg" |
