fix: rofi power menu glyphs cut off

the main issue is that i wasn't using the "mono" version of the nerd
font for hack. the font characters are not reported with the correct
fixed width which causes issues in rendering.
This commit is contained in:
Noah Masur 2025-05-10 10:53:54 -04:00
parent 5d539abe21
commit 12c9342748
2 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,7 @@
* {
/* General */
font: "Hack Nerd Font 60";
font: "Hack Nerd Font Mono 60";
/* option menus: i3-layout, music, power and screenshot
*
@ -13,7 +13,6 @@
* around using this character: ■
* We then add add 100 actual padding around the icons.
* -12px 0px -19px -96px */
option-element-padding: 1% 1% 1% 1%;
option-5-window-padding: 4% 4%;
option-5-listview-spacing: 15px;
@ -46,7 +45,7 @@
layout: horizontal;
}
element {
padding: 40px 68px 43px 30px;
padding: 40px 62px 40px 36px;
}
#window {
padding: 20px;

View File

@ -226,7 +226,7 @@ in
"module/power" = {
type = "custom/text";
content = " ";
click-left = config.nmasur.presets.services.i3.commands.toggleBar;
click-left = config.nmasur.presets.services.i3.commands.power;
click-right = "polybar-msg cmd restart";
content-foreground = config.theme.colors.base04;
};