hyprland: add swaync init config
This commit is contained in:
parent
0be36da274
commit
86b4adb6e2
2 changed files with 50 additions and 1 deletions
|
|
@ -2,7 +2,8 @@
|
||||||
imports = [
|
imports = [
|
||||||
./rofi.nix
|
./rofi.nix
|
||||||
./hyprcapture.nix
|
./hyprcapture.nix
|
||||||
./mako.nix
|
# ./mako.nix
|
||||||
|
./swaync.nix
|
||||||
./tools.nix
|
./tools.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
./hypridle.nix
|
./hypridle.nix
|
||||||
|
|
|
||||||
48
modules/home/workstation/hyprland/components/swaync.nix
Normal file
48
modules/home/workstation/hyprland/components/swaync.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
{
|
||||||
|
hozen,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
osConfig,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (osConfig.ooknet.appearance) fonts;
|
||||||
|
inherit (hozen) color;
|
||||||
|
in {
|
||||||
|
services.swaync = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
positionX = "right";
|
||||||
|
positionY = "top";
|
||||||
|
layer = "overlay";
|
||||||
|
control-center-layer = "top";
|
||||||
|
layer-shell = true;
|
||||||
|
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 = 32;
|
||||||
|
notification-body-image-height = 100;
|
||||||
|
notification-body-image-width = 200;
|
||||||
|
};
|
||||||
|
style =
|
||||||
|
/*
|
||||||
|
css
|
||||||
|
*/
|
||||||
|
''
|
||||||
|
* {
|
||||||
|
font-family: ${fonts.monospace.family};
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification.critical {
|
||||||
|
border: 3px solid #${color.error.border};
|
||||||
|
background-color: #${color.error.bg};
|
||||||
|
color: #${color.error.fg};
|
||||||
|
}
|
||||||
|
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue