make lock POSIX compliant
This commit is contained in:
parent
e330122465
commit
bcb8b9f457
@ -2,9 +2,9 @@
|
|||||||
icon=$HOME/img/misc/lock.png
|
icon=$HOME/img/misc/lock.png
|
||||||
tmpbg=/tmp/screenshot.png
|
tmpbg=/tmp/screenshot.png
|
||||||
|
|
||||||
(( $# )) && { icon=$1; }
|
test $# -eq 1 && icon=$1
|
||||||
|
|
||||||
scrot $tmpbg
|
scrot $tmpbg
|
||||||
gm convert $tmpbg -scale 10% -scale 1000% $tmpbg
|
gm convert $tmpbg -scale 10% -scale 1000% $tmpbg
|
||||||
gm composite -resize 256x256^ -gravity center $icon $tmpbg $tmpbg
|
gm composite -resize 256x256^ -gravity center "$icon" $tmpbg $tmpbg
|
||||||
i3lock -e -u -i $tmpbg 2>/dev/null
|
i3lock -e -u -i $tmpbg 2>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user