summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/theme-data/hypr
diff options
context:
space:
mode:
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")