git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/.config/i3lock/i3lock.sh
diff options
context:
space:
mode:
authormail_redacted_for_web 2019-07-16 21:32:39 +0200
committermail_redacted_for_web 2019-07-16 21:32:39 +0200
commit7c243d6a9e3ffdac27b04d2da45bb47411e91be7 (patch)
tree10c399e1ca82eb1a95bd8ee12af22217b6b2943f /.config/i3lock/i3lock.sh
downloadfedora-dotfiles-7c243d6a9e3ffdac27b04d2da45bb47411e91be7.tar.bz2
InComm of i3lock, for now in dotfilesHEADmaster
Diffstat (limited to '.config/i3lock/i3lock.sh')
-rwxr-xr-x.config/i3lock/i3lock.sh10
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