From 12c9342748e49bec38be23f5b2e45531d4d4fe8f Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 10 May 2025 10:53:54 -0400 Subject: [PATCH] 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. --- .../modules/nmasur/presets/programs/rofi/themes/common.rasi | 5 ++--- .../home-manager/modules/nmasur/presets/services/polybar.nix | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/platforms/home-manager/modules/nmasur/presets/programs/rofi/themes/common.rasi b/platforms/home-manager/modules/nmasur/presets/programs/rofi/themes/common.rasi index bc3a265..b8b8723 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/rofi/themes/common.rasi +++ b/platforms/home-manager/modules/nmasur/presets/programs/rofi/themes/common.rasi @@ -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; diff --git a/platforms/home-manager/modules/nmasur/presets/services/polybar.nix b/platforms/home-manager/modules/nmasur/presets/services/polybar.nix index 063466e..081a318 100644 --- a/platforms/home-manager/modules/nmasur/presets/services/polybar.nix +++ b/platforms/home-manager/modules/nmasur/presets/services/polybar.nix @@ -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; };