aboutsummaryrefslogtreecommitdiff
path: root/.config/hypr
diff options
context:
space:
mode:
Diffstat (limited to '.config/hypr')
-rw-r--r--.config/hypr/hypridle.conf19
-rw-r--r--.config/hypr/hyprland.conf4
2 files changed, 21 insertions, 2 deletions
diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf
new file mode 100644
index 0000000..786177b
--- /dev/null
+++ b/.config/hypr/hypridle.conf
@@ -0,0 +1,19 @@
+general {
+ lock_cmd =
+ unlock_cmd =
+ before_sleep_cmd =
+ after_sleep_cmd =
+ ignore_dbus_inhibit = false
+}
+
+listener {
+ timeout = 300
+ on-timeout = hyprlock
+ on-resume =
+}
+
+listener {
+ timeout = 600
+ on-timeout = hyprctl dispatch dpms off
+ on-resume = hyprctl dispatch dpms on
+}
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index d90d1db..d5eb6e8 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -27,8 +27,8 @@ exec = ~/.config/hypr/scripts/wallpaper.sh
exec-once = ~/.config/eww/scripts/monitor.sh
exec = ~/.config/eww/scripts/start.sh
# exec-once = swayidle timeout 300 'swaylock -f -i ~/.cache/wallpaper --effect-blur 10x5 --clock --indicator --datestr "%a %d %b %Y"' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
-exec-once = swayidle timeout 300 'hyprlock' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
-
+#exec-once = swayidle timeout 300 'hyprlock' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
+exec-once = hypridle
exec-once = hyprctl dispatcher focusmonitor 1
# source a file (multi-file configs)