Waybar: fix notifications

This commit is contained in:
Filippo Berto 2024-02-26 10:57:06 +01:00
parent a8b82c256c
commit 85b583bee6
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -41,7 +41,7 @@ in
"keyboard-state"
"backlight"
"battery"
"battery#bat2"
# "battery#bat2"
"clock"
"custom/notification"
"tray"
@ -59,8 +59,8 @@ in
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";
on-click = "${swaync-client} -t -sw";
on-click-right = "${swaync-client} -d -sw";
escape = true;
};
@ -74,10 +74,14 @@ in
"format" = "{icon}";
"format-icons" = { "activated" = ""; "deactivated" = ""; };
};
"tray" = { "spacing" = 10; };
"clock" = {
"tooltip-format" = "<big>{=%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
"format-alt" = "{=%Y-%m-%d}";
tray.spacing = 10;
clock = {
on-click = "mode";
tooltip = true;
# tooltip-format = "<big>{%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
# format = "{:%H:%M}";
# format = "{%H:%M}";
# format-alt = "{:%Y-%m-%d %H:%M}";
};
"cpu" = {
"format" = "{usage}% ";
@ -112,7 +116,7 @@ in
# "format-full"= "";
"format-icons" = [ "" "" "" "" "" ];
};
"battery#bat2" = { "bat" = "BAT2"; };
# "battery#bat2" = { "bat" = "BAT2"; };
"network" = {
# "interface"= "wlp2*"; # (Optional) To force the use of this interface
"format-wifi" = "{essid} ({signalStrength}%) ";