waybar: simplify tooltips

This commit is contained in:
Aly Raffauf 2024-07-30 18:46:27 -04:00
parent 245ed28701
commit 532539ec59

View file

@ -104,11 +104,11 @@
"timeout" = 45; "timeout" = 45;
"tooltip-format-activated" = '' "tooltip-format-activated" = ''
Idle inhibited. Presentation mode enabled.
System will not sleep.''; System will not sleep.'';
"tooltip-format-deactivated" = '' "tooltip-format-deactivated" = ''
Idle uninhibited. Presentation mode disabled.
System will sleep normally.''; System will sleep normally.'';
}; };
@ -164,9 +164,9 @@
show() { show() {
MAKO_MODE=$(${lib.getExe' pkgs.mako "makoctl"} mode) MAKO_MODE=$(${lib.getExe' pkgs.mako "makoctl"} mode)
if echo "$MAKO_MODE" | grep -q "do-not-disturb"; then if echo "$MAKO_MODE" | grep -q "do-not-disturb"; then
printf '{"text": "󰂛", "class": "on", "tooltip": "Notifications are snoozed."}\n' printf '{"text": "󰂛", "class": "on", "tooltip": "Notifications snoozed."}\n'
else else
printf '{"text": "󰂚", "class": "off","tooltip": "Notifications are enabled."}\n' printf '{"text": "󰂚", "class": "off","tooltip": "Notifications enabled."}\n'
fi fi
} }
@ -306,6 +306,7 @@
margin: 5px 10px 0px 10px; margin: 5px 10px 0px 10px;
padding: 0px 10px 0px 10px; padding: 0px 10px 0px 10px;
} }
#session { #session {
border-radius: 10; border-radius: 10;
background: rgba (36, 36, 36, 0.8); background: rgba (36, 36, 36, 0.8);