works after timeout but broken when manually locking
This commit is contained in:
parent
c5a18cfe35
commit
f3c2d05b24
@ -13,6 +13,7 @@ LOCK=~/.config/sway/lock.png
|
||||
# go over each output and ss/blur then add to img
|
||||
for OUTPUT in $(swaymsg -t get_outputs | gojq '.[].name' | tr -d '"')
|
||||
do
|
||||
echo "OUT: $OUTPUT" >> "$HOME/outputs"
|
||||
IMAGE="${OUTPUT}_img.jpg"
|
||||
grim -t jpeg -o $OUTPUT $IMAGE
|
||||
convert $IMAGE -blur 5x3 - | composite -gravity center $LOCK - $IMAGE
|
||||
@ -20,5 +21,7 @@ do
|
||||
IMAGES="${IMAGES} ${IMAGE}"
|
||||
done
|
||||
|
||||
swaylock $LOCKARGS
|
||||
echo "done" >> "$HOME/outputs"
|
||||
|
||||
swaylock $LOCKARGS --daemonize
|
||||
rm $IMAGES
|
||||
|
@ -46,8 +46,15 @@ floating_modifier $mod
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec st
|
||||
|
||||
# setup idling
|
||||
exec swayidle -w \
|
||||
timeout 600 'swaylock-blur' \
|
||||
timeout 900 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
lock 'swaylock-blur'
|
||||
|
||||
# lock the screen
|
||||
bindsym $mod+q exec swaylock-blur
|
||||
# bindsym $mod+q exec swaylock-blur
|
||||
bindsym $mod+q exec sleep 1 && killall -SIGUSR1 swayidle
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
@ -192,4 +199,4 @@ bindsym $mod+r mode "resize"
|
||||
# background
|
||||
exec_always --no-startup-id wallpaper.sh
|
||||
# waybar
|
||||
exec_always --no-startup-id killall -q waybar; waybar
|
||||
exec_always --no-startup-id killall -q waybar && waybar
|
||||
|
Loading…
x
Reference in New Issue
Block a user