From 7c243d6a9e3ffdac27b04d2da45bb47411e91be7 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Tue, 16 Jul 2019 21:32:39 +0200 Subject: InComm of i3lock, for now in dotfiles --- .config/i3lock/i3lock.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .config/i3lock/i3lock.sh (limited to '.config/i3lock/i3lock.sh') 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 -- cgit v1.2.3