xautolock blurlock

This commit is contained in:
serxoz 2022-08-26 10:49:18 +02:00
parent 209277e666
commit 1c9f0bad48
4 changed files with 17 additions and 1 deletions

13
bin/blurlock Executable file
View 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

View File

@ -1,3 +1,4 @@
#!/bin/sh
rm -rf ~/bin/power
rm -rf ~/bin/blurlock

View File

@ -1,5 +1,7 @@
#!/bin/sh
rm -rf ~/bin/power
rm -rf ~/bin/blurlock
ln -s $HOME/dotfiles/bin/power $HOME/bin/power
ln -s $HOME/dotfiles/bin/blurlock $HOME/bin/blurlock

View File

@ -14,6 +14,6 @@ pamac-tray &
clipit &
#blueman-applet &
#start_conky_maia &
xautolock -time 10 -locker blurlock &
xautolock -time 10 -locker ~/bin/blurlock &
udiskie --no-automount --tray &
# gajim &