From 147ef5daf0cc0d005534a766fa786993e12e7a40 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 25 Oct 2024 13:02:42 +0100 Subject: [PATCH] Override stylix border colour for fuzzel, avizo and mako Add default timeout (5s) to mako notifications --- system/home/desktop/fuzzel.nix | 3 ++- system/home/desktop/hyprland.nix | 9 ++++++++- system/home/desktop/mako.nix | 5 +++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/system/home/desktop/fuzzel.nix b/system/home/desktop/fuzzel.nix index db066d9d..c643e55f 100644 --- a/system/home/desktop/fuzzel.nix +++ b/system/home/desktop/fuzzel.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ config, lib, ... }: { programs.fuzzel = { enable = true; @@ -19,6 +19,7 @@ width = 1; radius = 5; }; + colors.border = lib.mkForce "${config.lib.stylix.scheme.base0E}ff"; }; }; } diff --git a/system/home/desktop/hyprland.nix b/system/home/desktop/hyprland.nix index f7507045..6c681fbe 100644 --- a/system/home/desktop/hyprland.nix +++ b/system/home/desktop/hyprland.nix @@ -27,7 +27,14 @@ gpg-agent.pinentryPackage = pkgs.pinentry-qt; avizo = { enable = true; - settings.default.image-opacity = lib.mkForce "1.0"; + settings.default = { + image-opacity = lib.mkForce "1.0"; + border-color = + let + scheme = config.lib.stylix.scheme; + in + lib.mkForce "rgba(${scheme.base0E-rgb-r}, ${scheme.base0E-rgb-g}, ${scheme.base0E-rgb-b}, 1.0)"; + }; }; kdeconnect = { enable = true; diff --git a/system/home/desktop/mako.nix b/system/home/desktop/mako.nix index a7d839a7..7caa0978 100644 --- a/system/home/desktop/mako.nix +++ b/system/home/desktop/mako.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ config, lib, ... }: { services.mako = { enable = true; @@ -12,6 +12,7 @@ iconPath = with config.gtk.iconTheme; "${package}/share/icons/${name}"; borderRadius = 5; borderSize = 1; - defaultTimeout = 0; + borderColor = lib.mkForce config.lib.stylix.scheme.withHashtag.base0E; + defaultTimeout = (builtins.mul 5 1000); # 5s timeout }; }