mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 20:20:41 +00:00
Migrate from swayidle to hypridle
This commit is contained in:
parent
a1f9a7c82d
commit
ae02222df1
10 changed files with 69 additions and 32 deletions
37
home/.config/hypr/hypridle.conf
Normal file
37
home/.config/hypr/hypridle.conf
Normal file
|
@ -0,0 +1,37 @@
|
|||
#lock-cmd = swaylock -fF --image /home/itsdrike/Pictures/Wallpapers/Categories/Extra/CommieGNULinux.png --indicator-x-position 300 --indicator-y-position 300
|
||||
|
||||
|
||||
general {
|
||||
lock_cmd = swaylock -fF # dbus/sysd lock command (loginctl lock-session)
|
||||
unlock-cmd = killall -s SIGUSR1 swaylock # same as above, but unlock
|
||||
before_sleep_cmd = loginctl lock-session && sleep 2
|
||||
ignore_dbus_inhibit = false
|
||||
}
|
||||
|
||||
# Warn about going idle (5 mins)
|
||||
listener {
|
||||
timeout = 300
|
||||
on-timeout = notify-send "HyprIdle" "Going idle in 10 seconds..."
|
||||
}
|
||||
|
||||
# Lock the session & disable dunst notifications
|
||||
listener {
|
||||
timeout = 310
|
||||
on-timeout = loginctl lock-session && dunstctl set-paused true
|
||||
on-resume = dunstctl set-paused false
|
||||
}
|
||||
|
||||
# Turn off the screen after another 30s
|
||||
listener {
|
||||
timeout = 340
|
||||
on-timeout = hyprctl dispatch dpms off
|
||||
on-resume = hyprctl dispatch dpms on
|
||||
}
|
||||
|
||||
# Enter suspend/sleep state (10 mins)
|
||||
# On low battery, or after HibernateDelaySec (/etc/systemd/sleep.conf), the system
|
||||
# will enter full hibernation
|
||||
listener {
|
||||
timeout = 600,
|
||||
on-timeout = systemctl suspend-then-hibernate
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue