mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
Adding i3/blurlock.sh
This commit is contained in:
parent
10a9fdc6ea
commit
0879a76910
1 changed files with 22 additions and 0 deletions
22
i3/blurlock.sh
Executable file
22
i3/blurlock.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
IMG=/tmp/lockscreenbg.png
|
||||||
|
|
||||||
|
# take screenshot
|
||||||
|
import -window root $IMG
|
||||||
|
|
||||||
|
# blur it
|
||||||
|
convert $IMG -blur 0x10 $IMG
|
||||||
|
#convert $IMG -scale 10% -scale 1000% $IMG
|
||||||
|
|
||||||
|
# lock the screen
|
||||||
|
i3lock -i $IMG
|
||||||
|
|
||||||
|
#while [ true ]; do
|
||||||
|
# sleep 10
|
||||||
|
# if [ $(pgrep i3lock | wc -l) -ne 0 ]; then
|
||||||
|
# xset dpms force off
|
||||||
|
# else :
|
||||||
|
# exit 0
|
||||||
|
# fi
|
||||||
|
#done
|
||||||
Loading…
Add table
Add a link
Reference in a new issue