xautolock blurlock
This commit is contained in:
parent
209277e666
commit
1c9f0bad48
13
bin/blurlock
Executable file
13
bin/blurlock
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
RESOLUTION=$(xrandr -q|sed -n 's/.*current[ ]\([0-9]*\) x \([0-9]*\),.*/\1x\2/p')
|
||||||
|
|
||||||
|
# lock the screen
|
||||||
|
import -silent -window root jpeg:- | convert - -scale 20% -blur 0x2.5 -resize 500% RGB:- | \
|
||||||
|
i3lock --raw $RESOLUTION:rgb -i /dev/stdin -e $@
|
||||||
|
|
||||||
|
# sleep 1 adds a small delay to prevent possible race conditions with suspend
|
||||||
|
#sleep 1
|
||||||
|
|
||||||
|
exit 0
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
rm -rf ~/bin/power
|
rm -rf ~/bin/power
|
||||||
|
rm -rf ~/bin/blurlock
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
rm -rf ~/bin/power
|
rm -rf ~/bin/power
|
||||||
|
rm -rf ~/bin/blurlock
|
||||||
|
|
||||||
ln -s $HOME/dotfiles/bin/power $HOME/bin/power
|
ln -s $HOME/dotfiles/bin/power $HOME/bin/power
|
||||||
|
ln -s $HOME/dotfiles/bin/blurlock $HOME/bin/blurlock
|
||||||
|
@ -14,6 +14,6 @@ pamac-tray &
|
|||||||
clipit &
|
clipit &
|
||||||
#blueman-applet &
|
#blueman-applet &
|
||||||
#start_conky_maia &
|
#start_conky_maia &
|
||||||
xautolock -time 10 -locker blurlock &
|
xautolock -time 10 -locker ~/bin/blurlock &
|
||||||
udiskie --no-automount --tray &
|
udiskie --no-automount --tray &
|
||||||
# gajim &
|
# gajim &
|
||||||
|
Loading…
Reference in New Issue
Block a user