feat: swaync...

This commit is contained in:
Kat Inskip 2025-07-26 17:56:11 -07:00
parent d6d4d38dcc
commit 15cdf716d9
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
2 changed files with 27 additions and 3 deletions

View file

@ -45,7 +45,7 @@ in {
"${systemctl}"
"--user"
"start"
"mako.service"
"swaync.service"
];
}
#{

View file

@ -80,7 +80,7 @@ _: {
margin: 0px;
}
#mode, #clock, #battery, #idle_inhibitor, #tray, #wireplumber, #bluetooth, #backlight, #mpris {
#mode, #custom-notification, #clock, #battery, #idle_inhibitor, #tray, #wireplumber, #bluetooth, #backlight, #mpris {
padding: 0 5px;
margin: 0 5px;
}
@ -89,6 +89,10 @@ _: {
color: @mantle;
}
#custom-notification {
font-size: 200%;
}
#mpris.playing {
background-color: @base0E;
}
@ -159,6 +163,7 @@ _: {
"backlight"
"battery"
"tray"
"custom/notification"
];
idle_inhibitor = {
@ -203,7 +208,26 @@ _: {
tray = {
spacing = 4;
};
"custom/notification" = {
tooltip = false;
format = "{} {icon}";
"format-icons" = {
notification = "󱅫";
none = "";
"dnd-notification" = " ";
"dnd-none" = "󰂛";
"inhibited-notification" = " ";
"inhibited-none" = "";
"dnd-inhibited-notification" = " ";
"dnd-inhibited-none" = " ";
};
"return-type" = "json";
"exec-if" = "which swaync-client";
exec = "swaync-client -swb";
"on-click" = "sleep 0.1 && swaync-client -t -sw";
"on-click-right" = "sleep 0.1 && swaync-client -d -sw";
escape = true;
};
clock = {
format = "{:%F %H:%M %Z}";
interval = 60;