i3-wide env vars and stuff moved to .config from HOME

This commit is contained in:
Henrik Bakken
2021-03-23 22:37:25 +01:00
parent 8c79595610
commit a795cfacbd
11 changed files with 21 additions and 24 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/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
xset dpms force off
exit 0