tried to prevent multi i3lock
This commit is contained in:
parent
0d3fcd30eb
commit
0cebde4ea6
1 changed files with 6 additions and 0 deletions
|
@ -9,4 +9,10 @@
|
|||
#convert -brightness-contrast -50x-40 $TMP $TMP
|
||||
#scrot $TMP -e 'convert -resize 20% -fill "#282828" -colorize 50% -blur 0x1 -resize 500% $f '"$TMP"
|
||||
#convert -gravity Center -composite $TMP ~/.config/lock.png $TMP
|
||||
|
||||
if [ -n "$(pgrep i3lock)" ]; then
|
||||
echo "i3lock already running. Aborting" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec i3lock -u -i ~/.config/lockimage.png -c 000000
|
||||
|
|
Loading…
Reference in a new issue