lock screen script, requires imagemagick
This commit is contained in:
parent
6bf16e5f3e
commit
efb4c4ce73
1 changed files with 8 additions and 0 deletions
8
lock-screen
Executable file
8
lock-screen
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
|
BACKGROUND='/tmp/screen_locked.png'
|
||||||
|
notify-send DUNST_COMMAND_PAUSE
|
||||||
|
scrot $BACKGROUND
|
||||||
|
mogrify -scale 10% -scale 1000% $BACKGROUND
|
||||||
|
until i3lock -entc 661111 -i $BACKGROUND; do :; done
|
||||||
|
rm $BACKGROUND
|
||||||
|
notify-send DUNST_COMMAND_RESUME
|
Loading…
Reference in a new issue