summaryrefslogtreecommitdiff
path: root/.i3
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-06-01 21:06:18 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-06-01 21:06:18 +0200
commit4a884d07ac32a3b1696ade1722ef602ca00bef7a (patch)
treea84a98c4f3131dbe6fc6a9e039b42230098d050c /.i3
parentce1ffffc2a387672d7f7c9ed8ab57714c3b61ee2 (diff)
downloaddotfiles-4a884d07ac32a3b1696ade1722ef602ca00bef7a.tar.gz
dotfiles-4a884d07ac32a3b1696ade1722ef602ca00bef7a.tar.bz2
dotfiles-4a884d07ac32a3b1696ade1722ef602ca00bef7a.zip
Overhaul xlock.sh
Diffstat (limited to '.i3')
-rwxr-xr-x.i3/scripts/xlock.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/.i3/scripts/xlock.sh b/.i3/scripts/xlock.sh
index f091e73..cd5acc1 100755
--- a/.i3/scripts/xlock.sh
+++ b/.i3/scripts/xlock.sh
@@ -1,7 +1,11 @@
#!/bin/sh
-scrot /tmp/screen_locked1.png
-convert /tmp/screen_locked1.png -scale 5% -scale 2000% /tmp/screen_locked2.png
-i3lock -i /tmp/screen_locked2.png
+PNG=/tmp/screen_locked.png
-rm -f /tmp/screen_locked?.png
+scrot $PNG
+convert $PNG -scale 5% -scale 2000% $PNG
+
+killall -SIGUSR1 dunst # pause
+i3lock --image=$PNG --nofork
+killall -SIGUSR2 dunst # resume
+rm -f $PNG