diff --git a/flake.lock b/flake.lock index 1d478dd..87e4c99 100644 --- a/flake.lock +++ b/flake.lock @@ -916,12 +916,29 @@ "nixos-apple-silicon": "nixos-apple-silicon", "nixpkgs": "nixpkgs_4", "repo-clone": "repo-clone", + "rose-pine-swaync": "rose-pine-swaync", "sops-nix": "sops-nix", "umu": "umu", "zdwl": "zdwl", "zdwm": "zdwm" } }, + "rose-pine-swaync": { + "flake": false, + "locked": { + "lastModified": 1736307374, + "narHash": "sha256-BLJCr7cB1nwUVe48gQX6ZBHdlJn2fZ7dBQgnADYG2I0=", + "owner": "rose-pine", + "repo": "swaync", + "rev": "fc17ee01916a5e4424af5c5b29272383fcdfc4f3", + "type": "github" + }, + "original": { + "owner": "rose-pine", + "repo": "swaync", + "type": "github" + } + }, "rust-analyzer-src": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index 828a0c2..d61cc15 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,7 @@ dunst-theme = { url = "github:d2718nis/rose-pine-dunst"; flake = false; }; fish_theme = { url = "git+https://git.zynh.me/Zynh0722/omf-theme"; flake = false; }; backgrounds = { url = "git+https://git.zynh.me/Zynh0722/backgrounds"; inputs.nixpkgs.follows = "nixpkgs"; }; + rose-pine-swaync = { url = "github:rose-pine/swaync"; flake = false; }; # Owie Sharp neovim-overlay = { url = "github:nix-community/neovim-nightly-overlay"; inputs.nixpkgs.follows = "nixpkgs"; }; diff --git a/hosts/llynx/home.nix b/hosts/llynx/home.nix index 9e7a0c7..8ff6696 100644 --- a/hosts/llynx/home.nix +++ b/hosts/llynx/home.nix @@ -11,7 +11,7 @@ kitty.enable = true; theme.enable = true; sops.enable = true; - dunst.enable = true; + # dunst.enable = true; flameshot.enable = true; diff --git a/modules/hyprland.nix b/modules/hyprland.nix index b855283..7bf9c75 100644 --- a/modules/hyprland.nix +++ b/modules/hyprland.nix @@ -138,6 +138,40 @@ in } ''; }; + + services.swaync = { + enable = true; + style = builtins.readFile "${inputs.rose-pine-swaync}/theme/rose-pine.css"; + settings = { + positionX = "right"; + positionY = "tops"; + layer = "overlay"; + control-center-layer = "tops"; + 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; + timeout = 10; + timeout-low = 5; + timeout-critical = 0; + fit-to-screen = true; + control-center-width = 500; + control-center-height = 600; + notification-window-width = 500; + keyboard-shortcuts = true; + image-visibility = "when-available"; + transition-time = 200; + hide-on-clear = false; + hide-on-action = true; + script-fail-notify = false; + }; + }; }]; } ]);