This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/env/x/screensaver/lock.sh

10 lines
318 B
Bash
Raw Normal View History

2016-12-08 12:35:29 -06:00
#!/usr/bin/env sh
source "$DOTFILES_PATH/variables.bash"
scrot "$IMG_PATH/.lock/.lock-bg-img.png"
convert "$IMG_PATH/.lock/.lock-bg-img.png" -blur 0x12 "$IMG_PATH/.lock/.lock-bg-img_blurred.png"
rm "$IMG_PATH/.lock/.lock-bg-img.png"
# xscreensaver-command --lock
i3lock -i "$IMG_PATH/.lock/.lock-bg-img_blurred.png"