From d135a13a5ab39e20f0f34253c359a5e40d9c3012 Mon Sep 17 00:00:00 2001 From: unexplrd Date: Thu, 10 Jul 2025 13:20:36 +0300 Subject: [PATCH] niri/swaync: still hate it Signed-off-by: unexplrd --- .../desktop/niri/services/swaync/default.nix | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/modules/home/desktop/niri/services/swaync/default.nix b/modules/home/desktop/niri/services/swaync/default.nix index fc2b35c..dc3d8fa 100644 --- a/modules/home/desktop/niri/services/swaync/default.nix +++ b/modules/home/desktop/niri/services/swaync/default.nix @@ -21,7 +21,7 @@ positionY = "top"; notification-2fa-action = true; notification-inline-replies = false; - notification-icon-size = 32; + notification-icon-size = 24; notification-body-image-height = 100; notification-body-image-width = 200; notification-window-width = 400; @@ -59,8 +59,12 @@ }; }; }; + # TODO: disable stylix, redo everything style = '' - /*** Global ***/ + * { + all: unset; + } + progress, progressbar, trough { @@ -73,17 +77,15 @@ } .notification-action { - border-radius: 12px; - margin: 0.5rem; + border-radius: 6px; + margin: 3px; } .close-button { - margin: 24px; - padding: 0.2rem; - border-radius: 16px; + margin: 12px; + border-radius: 3px; } - /*** Notifications ***/ .notification-group.collapsed .notification-row:not(:last-child) .notification-action, @@ -103,21 +105,21 @@ .notification.normal, .notification.critical, .control-center { - margin: 16px; - border-radius: 7px; + border-radius: 9px; + margin: 6px; } .floating-notifications, .notification-content { - border-radius: 7px; + margin: 3px; + border-radius: 6px; + border: none; } .control-center-list { background: transparent; } - /*** Widgets ***/ - /* Title widget */ .widget-title { margin: 0.5rem; } @@ -127,11 +129,10 @@ } .widget-title > button { - border-radius: 16px; + border-radius: 6px; padding: 0.5rem; } - /* DND Widget */ .widget-dnd { margin: 0.5rem; } @@ -141,23 +142,23 @@ } .widget-dnd > switch { - border-radius: 16px; + border-radius: 6px; } .widget-dnd > switch slider { - border-radius: 16px; - padding: 0.25rem; + margin: 3px; + border-radius: 3px; + padding: 6px; } - /* Mpris widget */ .widget-mpris .widget-mpris-player { - border-radius: 16px; - margin: 0.5rem; + border-radius: 9px; + margin: 3px; padding: 0.5rem; } .widget-mpris .widget-mpris-player .widget-mpris-album-art { - border-radius: 16px; + border-radius: 6px; } .widget-mpris .widget-mpris-player .widget-mpris-title { @@ -169,9 +170,8 @@ } .widget-mpris .widget-mpris-player > box > button { - border: 1px solid transparent; - border-radius: 16px; - padding: 0.25rem; + border-radius: 3px; + padding: 3px; } ''; }