diff options
Diffstat (limited to '.local/bin/lock')
-rwxr-xr-x | .local/bin/lock | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.local/bin/lock b/.local/bin/lock new file mode 100755 index 0000000..223ac59 --- /dev/null +++ b/.local/bin/lock | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | # Locks the screen with a blurred screenshot of the current window as the lock image | ||
3 | # Also pauses any music that is playing | ||
4 | |||
5 | maim | convert - -paint 5 ~/.cache/lock.png | ||
6 | [ "$(cmus-remote -Q | head -1 | cut -d ' ' -f 2)" != "playing" ] || cmus-remote --pause | ||
7 | i3lock -u -e -i ~/.cache/lock.png | ||