add swaync component to waybar

This commit is contained in:
ulic-youthlic 2025-01-24 22:02:17 +08:00
parent 06d47bb3ed
commit f57e1a3b93
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -33,6 +33,7 @@ in
"backlight" "backlight"
"pulseaudio" "pulseaudio"
"battery" "battery"
"custom/notification"
]; ];
"niri/worksapces" = { }; "niri/worksapces" = { };
@ -120,6 +121,21 @@ in
}; };
tooltip-format = "{calendar}"; tooltip-format = "{calendar}";
}; };
"custom/notification" = {
"tooltip" = false;
"format" = "{icon}";
"format-icons" = {
"notification" = "<span foreground='red'><sup></sup></span>";
"none" = "";
"dnd-notification" = "<span foreground='red'><sup></sup></span>";
"dnd-none" = "";
};
"return-type" = "json";
"exec" = "swaync-client -swb";
"on-click" = "swaync-client -t -sw";
"on-click-right" = "swaync-client -d -sw";
"escape" = true;
};
} }
]; ];
style = '' style = ''
@ -134,6 +150,7 @@ in
color: @theme_text_color; color: @theme_text_color;
} }
#custom-notification,
#workspaces, #workspaces,
#taskbar button, #taskbar button,
#mode, #mode,