The native tooltip never rendered. Two waybar quirks stacked: 1. custom/ocd had tooltip-format set. For a custom module with return-type json, a tooltip-format overrides the JSON tooltip field and waybar falls back to the label text (Waybar #3022). So the popover showed the single rotating account label instead of all accounts. Remove tooltip-format; waybar now uses the daemon's JSON tooltip field. 2. The daemon joined tooltip lines with newline. waybar custom modules break on newline (the tooltip vanishes; Waybar #3153). The wiki says to use carriage return instead. Switch the separator to \r. Reformat the tooltip so each limit (5h/1w/1m) is on its own row under the account, with a blank row between accounts for a bigger gap, as requested. Add a dark tooltip background. waybar scopes tooltip CSS globally (wiki / PR #4930): style all bar tooltips with the existing theme dark color @background/@foreground so the popover matches the bar instead of rendering backgroundless.
27 lines
914 B
CSS
27 lines
914 B
CSS
/* Append to ~/.config/waybar/style.css. */
|
|
/* The monospace font makes the nbsp bar cells line up as rectangles. */
|
|
/* The lock class tints the label blue while a 1-hour lock is active. */
|
|
|
|
#custom-ocd {
|
|
font-family: monospace;
|
|
padding: 0 6px;
|
|
min-width: 0;
|
|
}
|
|
#custom-ocd.ocd-locked {
|
|
color: #5aa6e0;
|
|
}
|
|
|
|
/* Dark popover background for the ocd tooltip window.
|
|
Waybar scopes tooltip styles globally: this rule applies to every
|
|
tooltip in the bar, not just ours (Waybar wiki / PR #4930). It uses
|
|
@background / @foreground, the same dark theme color the rest of
|
|
the bar already uses (imported by omarchy's theme file), so the
|
|
change matches the bar instead of introducing a new color.
|
|
Also make the tooltip font monospace so the block-char bars line up. */
|
|
tooltip {
|
|
background-color: @background;
|
|
color: @foreground;
|
|
padding: 6px 8px;
|
|
border-radius: 6px;
|
|
font-family: monospace;
|
|
} |