This commit is contained in:
Daniel Flanagan 2023-07-12 02:20:03 -05:00
parent 546ef45d61
commit 697feb0ec0
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
5 changed files with 11 additions and 10 deletions

View file

@ -1,12 +1,4 @@
default_border pixel 1
exec swayidle -w \
timeout 540 'notify-send "Idling in 90 seconds"' \
timeout 570 'notify-send "Idling in 60 seconds"' \
timeout 600 'notify-send "Idling in 30 seconds..."' \
timeout 630 'swaylock -f' \
timeout 660 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on" & maybe-good-morning &' \
before-sleep 'swaylock -f'
gaps inner 10

View file

@ -1,5 +1,4 @@
exec libinput-gestures -c ~/.config/libinput-gestures.conf
exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 330 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000'
gaps inner 0
bindswitch lid:toggle exec swaylock

View file

@ -10,6 +10,7 @@ if ! contains (date +%H) $hours
end
notify-send \
--expire-time=0 \
--urgency critical \
"Good morning!" \
"Activate this notification (click it or Super+Shift+Space) to run the script. Dismiss (Super+Ctrl+Space) to ignore." \

View file

@ -187,6 +187,15 @@ exec mako
exec kitty --single-instance
exec /usr/lib/polkit-kde-authentication-agent-1
exec swayidle -w \
timeout 540 'notify-send "Idling in 90 seconds"' \
timeout 570 'notify-send "Idling in 60 seconds"' \
timeout 600 'notify-send "Idling in 30 seconds..."' \
timeout 630 'swaylock -f' \
timeout 660 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on" & maybe-good-morning &' \
before-sleep 'swaylock -f'
# exec_always notify-send -a "sway" -i ~/.wallpaper "sway configuration loaded"
# prevent all windows from stealing focus