summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/theme-data/hypr
diff options
context:
space:
mode:
authorNippy <nippy@Nippy-Mac-mini.local>2026-09-26 18:21:21 +0200
committerNippy <nippy@Nippy-Mac-mini.local>2026-09-26 18:21:21 +0200
commita755216ccb467a31cd58eef5ae7c23e084f1750c (patch)
tree6a70ad0d9ecf818945e5ef0c927d534967daf19f /raveos-hyprland-theme/theme-data/hypr
parentf5a18d3660b3e645c54ca0faf13080830b41c2be (diff)
downloadRaveOS-PKGBUILD-a755216ccb467a31cd58eef5ae7c23e084f1750c.tar.gz
RaveOS-PKGBUILD-a755216ccb467a31cd58eef5ae7c23e084f1750c.zip
fix desktop
Diffstat (limited to 'raveos-hyprland-theme/theme-data/hypr')
-rw-r--r--raveos-hyprland-theme/theme-data/hypr/hypridle.conf9
-rw-r--r--raveos-hyprland-theme/theme-data/hypr/hyprland.lua1
2 files changed, 10 insertions, 0 deletions
diff --git a/raveos-hyprland-theme/theme-data/hypr/hypridle.conf b/raveos-hyprland-theme/theme-data/hypr/hypridle.conf
new file mode 100644
index 0000000..703a1ff
--- /dev/null
+++ b/raveos-hyprland-theme/theme-data/hypr/hypridle.conf
@@ -0,0 +1,9 @@
+general {
+ after_sleep_cmd = hyprctl dispatch dpms on
+}
+
+listener {
+ timeout = 300
+ on-timeout = hyprctl dispatch dpms off
+ on-resume = hyprctl dispatch dpms on
+}
diff --git a/raveos-hyprland-theme/theme-data/hypr/hyprland.lua b/raveos-hyprland-theme/theme-data/hypr/hyprland.lua
index 2011427..b44bb93 100644
--- a/raveos-hyprland-theme/theme-data/hypr/hyprland.lua
+++ b/raveos-hyprland-theme/theme-data/hypr/hyprland.lua
@@ -14,6 +14,7 @@ hl.monitor({
hl.on("hyprland.start", function()
hl.exec_cmd("dms run")
hl.exec_cmd("raveswitch run")
+ hl.exec_cmd("hypridle")
hl.exec_cmd("dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")
hl.exec_cmd("dbus-update-activation-environment --systemd --all")
hl.exec_cmd("systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")