scripts/lock: move to nixos
This commit is contained in:
parent
b1f12a32f3
commit
d2ed4ab1f3
11
scripts/lock
11
scripts/lock
@ -1,11 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
icon=$HOME/img/misc/lock.png
|
|
||||||
tmpbg=/tmp/screenshot.png
|
|
||||||
|
|
||||||
test $# -eq 1 && icon=$1
|
|
||||||
|
|
||||||
scrot $tmpbg
|
|
||||||
gm convert $tmpbg -scale 10% -scale 1000% $tmpbg
|
|
||||||
gm composite -filter point -resize 48x48 -gravity center "$icon" $tmpbg $tmpbg
|
|
||||||
i3lock -u -i $tmpbg 2>/dev/null
|
|
||||||
rm $tmpbg
|
|
Loading…
Reference in New Issue
Block a user