Not for normies
| 1 | # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # |
| 2 | # Hypridle |
| 3 | # Original config submitted by https://github.com/SherLock707 |
| 4 | |
| 5 | $iDIR="$HOME/.config/swaync/images/ja.png" |
| 6 | |
| 7 | general { |
| 8 | lock_cmd = pidof hyprlock || hyprlock # runs hyprlock if it is not already running (this is always run when "loginctl lock-session" is called) |
| 9 | # unlock_cmd = killall hyprlock # kills hyprlock when unlocking (this is always run when "loginctl unlock-session" is called) |
| 10 | before_sleep_cmd = loginctl lock-session # ensures that the session is locked before going to sleep |
| 11 | after_sleep_cmd = hyprctl dispatch dpms on # turn of screen after sleep (not strictly necessary, but just in case) |
| 12 | ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) |
| 13 | } |
| 14 | |
| 15 | # turn off screen faster if session is already locked |
| 16 | # (disabled by default) |
| 17 | # listener { |
| 18 | # timeout = 30 # 30 seconds |
| 19 | # on-timeout = pidof hyprlock && hyprctl dispatch dpms off # turns off the screen if hyprlock is active |
| 20 | # on-resume = pidof hyprlock && hyprctl dispatch dpms on # command to run when activity is detected after timeout has fired. |
| 21 | # } |
| 22 | |
| 23 | # Warn |
| 24 | listener { |
| 25 | timeout = 540 # 9 min |
| 26 | on-timeout = notify-send -i $iDIR " You are idle!" # command to run when timeout has passed |
| 27 | on-resume = notify-send -i $iDIR " Oh! you're Back" " Hello !!!" # command to run when activity is detected after timeout has fired. |
| 28 | } |
| 29 | |
| 30 | # Screenlock |
| 31 | listener { |
| 32 | timeout = 600 # 10 min |
| 33 | on-timeout = loginctl lock-session # command to run when timeout has passed |
| 34 | #on-resume = notify-send -i $iDIR " System Unlocked!" # command to run when activity is detected after timeout has fired. |
| 35 | } |
| 36 | |
| 37 | # Turn off screen |
| 38 | # (disabled by default) |
| 39 | # listener { |
| 40 | # timeout = 630 # 10.5 min |
| 41 | # on-timeout = hyprctl dispatch dpms off # command to run when timeout has passed |
| 42 | # on-resume = hyprctl dispatch dpms on # command to run when activity is detected after timeout has fired. |
| 43 | # } |
| 44 | |
| 45 | # Suspend # disabled by default |
| 46 | # listener { |
| 47 | # timeout = 1200 # 20 min |
| 48 | # on-timeout = systemctl suspend # command to run when timeout has passed |
| 49 | # on-resume = notify-send -i $iDIR " Oh! you're back" "Hello !!!" # command to run when activity is detected after timeout has fired. |
| 50 | # } |