From 74861e6f4a3a8352cb95ff4c57fbb169e0fe0d4f Mon Sep 17 00:00:00 2001 From: Dennis Schoepf Date: Fri, 21 Nov 2025 20:57:37 +0100 Subject: [PATCH] wip: dnsc-machine setup --- home/linux.nix | 1 + modules/wm/niri/default.nix | 1 - modules/wm/swaync/default.nix | 40 +++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 modules/wm/swaync/default.nix diff --git a/home/linux.nix b/home/linux.nix index e6b1280..d88d055 100644 --- a/home/linux.nix +++ b/home/linux.nix @@ -36,6 +36,7 @@ ../modules/nvim ../modules/wezterm ../modules/fish + ../modules/wm/swaync ../modules/wm/niri ]; diff --git a/modules/wm/niri/default.nix b/modules/wm/niri/default.nix index 4759235..3c9b4fb 100644 --- a/modules/wm/niri/default.nix +++ b/modules/wm/niri/default.nix @@ -14,5 +14,4 @@ programs.waybar.enable = true; # TODO switch to ironbar programs.swaylock.enable = true; services.swayidle.enable = true; - services.mako.enable = true; # TODO switch to swaync } diff --git a/modules/wm/swaync/default.nix b/modules/wm/swaync/default.nix new file mode 100644 index 0000000..8cec6c0 --- /dev/null +++ b/modules/wm/swaync/default.nix @@ -0,0 +1,40 @@ +{ + services.swaync = { + enable = true; + settings = { + positionX = "right"; + positionY = "top"; + layer = "overlay"; + control-center-layer = "top"; + layer-shell = true; + cssPriority = "application"; + control-center-margin-top = 0; + control-center-margin-bottom = 0; + control-center-margin-right = 0; + control-center-margin-left = 0; + notification-2fa-action = true; + notification-inline-replies = false; + notification-icon-size = 64; + notification-body-image-height = 100; + notification-body-image-width = 200; + }; + style = '' + .notification-row { + outline: none; + } + + .notification-row:focus, + .notification-row:hover { + background: @noti-bg-focus; + } + + .notification { + border-radius: 12px; + margin: 6px 12px; + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7), + 0 2px 6px 2px rgba(0, 0, 0, 0.3); + padding: 0; + } + ''; + }; +}