diff options
author | mail_redacted_for_web | 2019-07-16 21:32:39 +0200 |
---|---|---|
committer | mail_redacted_for_web | 2019-07-16 21:32:39 +0200 |
commit | 7c243d6a9e3ffdac27b04d2da45bb47411e91be7 (patch) | |
tree | 10c399e1ca82eb1a95bd8ee12af22217b6b2943f /.config/i3lock/i3lock.sh | |
download | fedora-dotfiles-7c243d6a9e3ffdac27b04d2da45bb47411e91be7.tar.bz2 |
Diffstat (limited to '.config/i3lock/i3lock.sh')
-rwxr-xr-x | .config/i3lock/i3lock.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/i3lock/i3lock.sh b/.config/i3lock/i3lock.sh new file mode 100755 index 0000000..f264af2 --- /dev/null +++ b/.config/i3lock/i3lock.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -eu + +[[ -z "$(pgrep i3lock)" ]] || exit +scrot "$HOME/.config/i3lock/scrot.png" +#convert -scale 20% -scale 500% "$HOME/.config/i3lock/scrot.png" "$HOME/.config/i3lock/scrot.png" +convert -scale 10% -scale 1000% "$HOME/.config/i3lock/scrot.png" "$HOME/.config/i3lock/scrot.png" +convert -gravity center "$HOME/.config/i3lock/scrot.png" -background none "$HOME/.config/i3lock/lock-icon.png" -composite "$HOME/.config/i3lock/scrot.png" +#i3lock -n -u -t -i ${HOME}/.config/i3lock/lock.png +i3lock -n -t -i ${HOME}/.config/i3lock/scrot.png |