summaryrefslogtreecommitdiff
path: root/.i3/scripts/xlock.sh
blob: cd5acc157d4ebbdfd247822da5eaaad0470d2ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

PNG=/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
Donenfeld1-1/+1 2014-05-08generate: use nice ansi colors instead.Jason A. Donenfeld1-3/+2 2014-05-08zsh: posix compatible sed fix for zsh-completionJason A. Donenfeld1-1/+1 2014-05-07Implement interactive init functionSvend Sorensen1-0/+8 2014-05-07Implement interactive rename functionSvend Sorensen1-0/+7 2014-05-07Reorder interactive function to match order of helper functionsSvend Sorensen1-13/+13 2014-05-07Make edit helper function name consistent with other helpersSvend Sorensen1-1/+1 2014-05-07Factor out password completing-read functionSvend Sorensen1-4/+8 2014-05-07Add dash to Package-RequiresSvend Sorensen1-1/+1 2014-05-06Force sane sort order.Jason A. Donenfeld1-2/+2 2014-05-06generate: add --in-place optionJason A. Donenfeld4-9/+33