diff options
author | Yigit Sever | 2021-10-29 16:39:29 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-29 16:39:29 +0300 |
commit | 51a2e6b2cf163041966f85a5710c724d7181787e (patch) | |
tree | bc05db44833c7aa4cc058bcc56ee7555380f52b4 | |
parent | 07b437a45cb9a9a5527863890345c213c6fcc8b6 (diff) | |
download | dotfiles-51a2e6b2cf163041966f85a5710c724d7181787e.tar.gz dotfiles-51a2e6b2cf163041966f85a5710c724d7181787e.tar.bz2 dotfiles-51a2e6b2cf163041966f85a5710c724d7181787e.zip |
lock: fancy lockscreen
-rwxr-xr-x | .local/bin/lock | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.local/bin/lock b/.local/bin/lock index d76f636..1bd63ae 100755 --- a/.local/bin/lock +++ b/.local/bin/lock | |||
@@ -1,7 +1,13 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | pkill -u "$USER" -USR1 dunst | 3 | pkill -u "$USER" -USR1 dunst |
4 | sleep 1 | ||
4 | 5 | ||
5 | i3lock -n | 6 | scrot -zo /tmp/screen-lock.png |
7 | |||
8 | mogrify -scale 5% -scale 2000% /tmp/screen-lock.png | ||
9 | mogrify -modulate 100,300 /tmp/screen-lock.png | ||
10 | |||
11 | i3lock -n -i /tmp/screen-lock.png | ||
6 | 12 | ||
7 | pkill -u "$USER" -USR2 dunst | 13 | pkill -u "$USER" -USR2 dunst |