From c3fbdb335ed544b175f49d018223480bd2634ec9 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Wed, 8 Oct 2025 01:44:25 +0200 Subject: [PATCH] hypridle seems to work just fine, so farewell swayidle --- .memo/niri-ricing.txt | 1 - hypr/hypridle.conf | 4 ++-- niri/config.kdl.template | 2 +- waybar-niri/config.jsonc | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.memo/niri-ricing.txt b/.memo/niri-ricing.txt index 7a833a4..b32e4e1 100644 --- a/.memo/niri-ricing.txt +++ b/.memo/niri-ricing.txt @@ -2,6 +2,5 @@ things I have installed: everything in `./hyprland-ricing.txt`, in addition to: -swayidle # hypridle shows a warning on Niri, so better to use another one swww xwayland-satellite diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf index a8fe836..fd721e9 100755 --- a/hypr/hypridle.conf +++ b/hypr/hypridle.conf @@ -13,8 +13,8 @@ listener { listener { timeout = 300 # 5mins - on-timeout = hyprctl dispatch dpms off - on-resume = hyprctl dispatch dpms on + on-timeout = hyprctl dispatch dpms off || niri msg action power-off-monitors + on-resume = hyprctl dispatch dpms on || true } #listener { diff --git a/niri/config.kdl.template b/niri/config.kdl.template index b836984..033ad67 100644 --- a/niri/config.kdl.template +++ b/niri/config.kdl.template @@ -137,7 +137,7 @@ spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" spawn-at-startup "mako" // idle -spawn-sh-at-startup "niri-swayidle" +spawn-sh-at-startup "hypridle" // Clipboard history spawn-sh-at-startup "wl-paste --type text --watch cliphist store" diff --git a/waybar-niri/config.jsonc b/waybar-niri/config.jsonc index a3a2376..49ac15e 100644 --- a/waybar-niri/config.jsonc +++ b/waybar-niri/config.jsonc @@ -17,7 +17,7 @@ "custom/mediaplayer" ], "modules-center": ["clock"], - "modules-right": ["group/monitors", "custom/separator", "group/tray-expander", "custom/caffeine", "custom/power"], + "modules-right": ["group/monitors", "custom/separator", "group/tray-expander", "idle_inhibitor", "custom/power"], // ------------------------------------------------------------------------- // Modules // -------------------------------------------------------------------------