From 5f31cab66e9991d1b9857c4553a4c1ff5ca09a9c Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Mon, 5 Jan 2026 14:55:48 +0100 Subject: [PATCH 1/2] Use openrgb instead of ckb-next --- machines/frues-pc/configuration.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/machines/frues-pc/configuration.nix b/machines/frues-pc/configuration.nix index 910cfa3..0a81c22 100644 --- a/machines/frues-pc/configuration.nix +++ b/machines/frues-pc/configuration.nix @@ -33,6 +33,7 @@ ]; }; + services.hardware.openrgb.enable = true; home-manager.users.pedro.wayland.windowManager.hyprland.settings = { monitor = [ "DP-2, 1920x1080@60, 0x0, 1" @@ -40,9 +41,15 @@ "HDMI-A-1, 1920x1080@75, 3840x0, 1" ]; exec-once = [ - "uwsm app -- ckb-next -b" + "uwsm app -- openrgb --startminimized" ]; }; + home-manager.users.pedro.services.hypridle.settings.listener = [ + { + timeout = 270; # 4.5 min + on-timeout = "openrgb -b 0"; + on-resume = "openrgb -b 100"; + } + ]; - hardware.ckb-next.enable = true; } From bb0e68d1aa4818408dd142cd941696452a530302 Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Mon, 5 Jan 2026 14:56:37 +0100 Subject: [PATCH 2/2] hypridle: add unlock_cmd --- users/pedro/home-configuration/hyprland/hypridle.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/users/pedro/home-configuration/hyprland/hypridle.nix b/users/pedro/home-configuration/hyprland/hypridle.nix index a3487ab..2fe148f 100644 --- a/users/pedro/home-configuration/hyprland/hypridle.nix +++ b/users/pedro/home-configuration/hyprland/hypridle.nix @@ -1,9 +1,11 @@ -{...}: { +{ ... }: +{ services.hypridle = { enable = true; settings = { general = { lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances. + unlock_cmd = "pkill -USR1 hyprlock"; before_sleep_cmd = "loginctl lock-session"; # lock before suspend. after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display. };