prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland
GNU General Public License v3.0
6.33k stars 748 forks source link

icons in rofi are not centered #796

Closed katanayka closed 4 months ago

katanayka commented 7 months ago

Hello, just yesterday I installed hyprdots, I encountered a problem, the icons in rofi are not centered. This applies to all themes image

katanayka commented 7 months ago

I just noticed, most likely this is due to the fact that the buttons themselves are not round, but oval

kRHYME7 commented 6 months ago

@TurtleMeds Hello @katanayka ,👋 This is a normal behavior and I can't find a configuration regarding centering the text. Rofi is text-based and those Icons are just glyphs. and most of them aren't centered at all.

I will try to dig deeper into configuring rofi.

TurtleMeds commented 6 months ago

This also applies to some waybar configs

sujer-ux commented 6 months ago

Specifically for rofi, I was able to correct the centering using the special symbol U+2009 - ( ).

Yes, this is not entirely correct, but it works.

~/.config/rofi/config.rasi

// Config //
configuration {
modi:                        "drun,filebrowser,window,run";
show-icons:                  true;
display-drun:                " ";
display-run:                 " ";
display-filebrowser:         " ";
display-window:              " ";
drun-display-format:         "{name}";
window-format:               "{w}{t}";
font:                        "JetBrainsMono Nerd Font 10";
icon-theme:                  "Tela-circle-dracula";
}

240224_13h56m44s_screenshot

kRHYME7 commented 6 months ago

Can we use that for waybar that used glyphs?

sujer-ux commented 6 months ago

Can we use that for waybar that used glyphs?

You can add this special character to any module, in the "format" line, for example:

"custom/rofi": {
    "format": " ",
    "on-click": "~/.config/hypr/scripts/rofilaunch.sh d",
    "tooltip": false,
},

изображение