fix(desktop): tighter bar icon pad + case-insensitive rofi match
Some checks failed
Check / eval (push) Has been cancelled
Some checks failed
Check / eval (push) Has been cancelled
- Double-space pad on volume (esp. high), battery, keyboard layout glyphs - rofi: matching=normal,fuzzy; case-smart off (ste finds Steam) - Queue: unfree+calendar PASS; retest spacing + rofi search V0: nix flake check --no-build green. V3: bar/rofi on session.
This commit is contained in:
@@ -215,17 +215,18 @@ let
|
||||
# Active keyboard layout (per focused device) — only placed in
|
||||
# modules-right when showLanguage (see above).
|
||||
"hyprland/language" = {
|
||||
format = "<span size='${toString (t.fonts.size + 2)}pt'></span> {short}";
|
||||
# Two spaces after the glyph: the keyboard icon's right bearing
|
||||
# otherwise kisses the layout code (esp. mono Nerd faces).
|
||||
format = "<span size='${toString (t.fonts.size + 2)}pt'> </span>{short}";
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
pulseaudio = {
|
||||
# Trailing spaces on icons (not only between span and text): Nerd Font
|
||||
# glyphs often have tight right bearings and otherwise collide with
|
||||
# the percentage digits.
|
||||
format = "<span size='${toString (t.fonts.size + 2)}pt'>{icon}</span> {volume}%";
|
||||
# Two trailing spaces on every icon level: high-volume glyphs are the
|
||||
# widest and still kissed the % with a single pad (hardware report).
|
||||
format = "<span size='${toString (t.fonts.size + 2)}pt'>{icon}</span>{volume}%";
|
||||
format-muted = "";
|
||||
format-icons.default = [ " " " " " " ];
|
||||
format-icons.default = [ " " " " " " ];
|
||||
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
# Right-click → the full mixer (per-app volumes) in a floating window
|
||||
# (item 35). pwvucontrol ships in the template suite; the Hyprland
|
||||
@@ -251,10 +252,10 @@ let
|
||||
|
||||
battery = {
|
||||
states = { warning = 25; critical = 10; };
|
||||
# Same icon-bearing fix as pulseaudio (see format-icons note there).
|
||||
format = "<span size='${toString (t.fonts.size + 2)}pt'>{icon}</span> {capacity}%";
|
||||
format-charging = "<span size='${toString (t.fonts.size + 2)}pt'> </span>{capacity}%";
|
||||
format-icons = [ " " " " " " " " " " ];
|
||||
# Same double-pad as pulseaudio (single space still tight on some glyphs).
|
||||
format = "<span size='${toString (t.fonts.size + 2)}pt'>{icon}</span>{capacity}%";
|
||||
format-charging = "<span size='${toString (t.fonts.size + 2)}pt'> </span>{capacity}%";
|
||||
format-icons = [ " " " " " " " " " " ];
|
||||
# Click either the battery or the power-profile icon → the combined
|
||||
# power menu (profile + charge cap). The granular System rows stay.
|
||||
on-click = "nomarchy-menu powermgmt";
|
||||
|
||||
Reference in New Issue
Block a user