mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 06:23:54 -05:00
waybar: simplify tooltips
This commit is contained in:
parent
245ed28701
commit
532539ec59
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue