perf: Improve hypridle configuration handling
- Use hyprctl dispatch for dpms actions - Remove unnecessary bash scripts - Update configuration consistency
This commit is contained in:
+5
-2
@@ -12,6 +12,9 @@ listener {
|
||||
|
||||
listener {
|
||||
timeout = 360
|
||||
on-timeout = $XDG_CONFIG_HOME/hypr/scripts/screen_off.sh
|
||||
on-resume = $XDG_CONFIG_HOME/hypr/scripts/screen_on.sh
|
||||
on-timeout = hyprctl dispatch "hl.dsp.dpms({action = 'off'})"
|
||||
on-resume = hyprctl dispatch "hl.dsp.dpms({action = 'on'})"
|
||||
# alternative:
|
||||
# on-timeout = wlopm --off '*'
|
||||
# on-resume = wlopm --on '*'
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
hyprctl dispatch "hl.dsp.dpms({action = 'off'})"
|
||||
# alternative: wlopm --off '*'
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
hyprctl dispatch "hl.dsp.dpms({action = 'on'})"
|
||||
# alternative: wlopm --on '*'
|
||||
Reference in New Issue
Block a user