|
4 | 4 | # hypridle.conf - Hypridle configuration for HyDE |
5 | 5 | # Handles idle actions: dim, lock, DPMS, suspend, and custom listeners |
6 | 6 | # |
7 | | -# $LOCKSCREEN: Command to lock the screen (set to your preferred lockscreen) |
8 | | -# |
9 | 7 | # Listeners: Each listener block defines an idle timeout and actions to run |
10 | 8 | # |
11 | 9 | # For more info, see: https://wiki.hypr.land/Hypr-Ecosystem/hypridle/ |
|
18 | 16 | #! ░▒▒░░▓▓ ▓▓ \__ |____/ |____/ |
19 | 17 | #! ░▒▓▓ ▓▓ //____/ |
20 | 18 |
|
21 | | -# $LOCKSCREEN = hyprlock # preferred LOCKSCREEN e.g swaylock |
22 | | -$LOCKSCREEN = hyde-shell lockscreen # Calls $LOCKSCREEN |
| 19 | +$LOCK_CMD = hyde-shell lockscreen.sh # Calls $LOCKSCREEN default is hyprlock |
| 20 | +$UNLOCK_CMD = sh -c 'sleep 3 && pkill -9 $(hyde-shell lockscreen --get)' # kills the lockscreen after 3 seconds for cleanup |
23 | 21 |
|
24 | | -# // --- General hypridle settings --- |
25 | 22 | general { |
26 | | - lock_cmd = $LOCKSCREEN # Registers the lockscreen command to dbus so it can be invoked by `loginctl lock-session` |
27 | | - # unlock_cmd = #notify-send "unlock!" # Command to run on unlock (optional) |
28 | | - before_sleep_cmd = loginctl lock-session # Locks before sleep |
29 | | - # after_sleep_cmd = # notify-send "Awake!" # Command after waking up (optional) |
| 23 | + lock_cmd = $LOCK_CMD # command when `loginctl lock-session` is called |
| 24 | + unlock_cmd = $UNLOCK_CMD # command when `loginctl unlock-session` is called |
30 | 25 | ignore_dbus_inhibit = false # Ignore dbus idle-inhibit requests (false = respect them) |
31 | 26 | ignore_systemd_inhibit = false # Ignore systemd-inhibit --what=idle (false = respect them) |
| 27 | + # before_sleep_cmd = # command ran before sleep |
| 28 | + # after_sleep_cmd = # notify-send "Awake!" # command ran after sleep |
32 | 29 | } |
33 | 30 |
|
34 | 31 | # // --- Listener: Dim display after 60s idle --- |
35 | 32 | listener { |
36 | 33 | timeout = 60 |
37 | | - on-timeout = { brightnessctl -s && brightnessctl s 1% ;} # Save and set brightness to 1% |
| 34 | + on-timeout = brightnessctl -s && brightnessctl s 1% # Save and set brightness to 1% |
38 | 35 | on-resume = brightnessctl -r # Restore brightness on activity |
39 | 36 | } |
40 | 37 |
|
|
0 commit comments