hyprland: swaync

This commit is contained in:
Zynh Ludwig 2025-03-19 17:36:03 -07:00
parent 61d0b58861
commit 7f3126bfd2
4 changed files with 53 additions and 1 deletions

View file

@ -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": {

View file

@ -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"; };

View file

@ -11,7 +11,7 @@
kitty.enable = true;
theme.enable = true;
sops.enable = true;
dunst.enable = true;
# dunst.enable = true;
flameshot.enable = true;

View file

@ -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;
};
};
}];
}
]);