diff --git a/machines/frues-pc/configuration.nix b/machines/frues-pc/configuration.nix index 0a81c22..910cfa3 100644 --- a/machines/frues-pc/configuration.nix +++ b/machines/frues-pc/configuration.nix @@ -33,7 +33,6 @@ ]; }; - services.hardware.openrgb.enable = true; home-manager.users.pedro.wayland.windowManager.hyprland.settings = { monitor = [ "DP-2, 1920x1080@60, 0x0, 1" @@ -41,15 +40,9 @@ "HDMI-A-1, 1920x1080@75, 3840x0, 1" ]; exec-once = [ - "uwsm app -- openrgb --startminimized" + "uwsm app -- ckb-next -b" ]; }; - 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; } diff --git a/users/pedro/home-configuration/hyprland/hypridle.nix b/users/pedro/home-configuration/hyprland/hypridle.nix index 2fe148f..a3487ab 100644 --- a/users/pedro/home-configuration/hyprland/hypridle.nix +++ b/users/pedro/home-configuration/hyprland/hypridle.nix @@ -1,11 +1,9 @@ -{ ... }: -{ +{...}: { 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. };