perf: Improve hypridle configuration handling

- Use hyprctl dispatch for dpms actions
- Remove unnecessary bash scripts
- Update configuration consistency
This commit is contained in:
Hannes
2026-08-22 22:24:30 +02:00
parent 559d814b61
commit 382762c60e
3 changed files with 5 additions and 8 deletions
+5 -2
View File
@@ -12,6 +12,9 @@ listener {
listener { listener {
timeout = 360 timeout = 360
on-timeout = $XDG_CONFIG_HOME/hypr/scripts/screen_off.sh on-timeout = hyprctl dispatch "hl.dsp.dpms({action = 'off'})"
on-resume = $XDG_CONFIG_HOME/hypr/scripts/screen_on.sh on-resume = hyprctl dispatch "hl.dsp.dpms({action = 'on'})"
# alternative:
# on-timeout = wlopm --off '*'
# on-resume = wlopm --on '*'
} }
-3
View File
@@ -1,3 +0,0 @@
#!/usr/bin/env bash
hyprctl dispatch "hl.dsp.dpms({action = 'off'})"
# alternative: wlopm --off '*'
-3
View File
@@ -1,3 +0,0 @@
#!/usr/bin/env bash
hyprctl dispatch "hl.dsp.dpms({action = 'on'})"
# alternative: wlopm --on '*'