calcite: add notification center and kdeconnect

This commit is contained in:
xinyangli 2024-11-14 15:48:11 +08:00
parent 854f450677
commit f1079f3095
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
9 changed files with 65 additions and 22 deletions

View file

@ -57,6 +57,8 @@ in
"battery"
"custom/separator"
"tray"
"custom/separator"
"custom/notification"
];
"niri/workspaces" = {
all-outputs = true;
@ -158,6 +160,27 @@ in
icon-size = 18;
spacing = 14;
};
"custom/notification" = {
escape = true;
exec = "swaync-client -swb";
exec-if = "which swaync-client";
format = "{icon}";
format-icons = {
dnd-inhibited-none = "";
dnd-inhibited-notification = "<span foreground='red'><sup></sup></span>";
dnd-none = "";
dnd-notification = "<span foreground='red'><sup></sup></span>";
inhibited-none = "";
inhibited-notification = "<span foreground='red'><sup></sup></span>";
none = "";
notification = "<span foreground='red'><sup></sup></span>";
};
on-click = "swaync-client -t -sw";
on-click-right = "swaync-client -d -sw";
return-type = "json";
tooltip = false;
};
};
};
systemd.enable = true;