jluttine / rofi-power-menu

Configurable power menu mode for Rofi and dmenu
MIT License
422 stars 53 forks source link

No icons #8

Open eleloi opened 2 years ago

eleloi commented 2 years ago

I'm in wayland, I launch rofi-power-menu as:

rofi -show power-menu -modi power-menu:rofi-power-menu -font "JetBrainsMono NF 16" --symbols

but it don't display icons, insted I got \u200e\uF011 I have tested with other fonts whithout sucess. What I'm doing wrong?

sapkotajeevan commented 2 years ago

I'm in wayland, I launch rofi-power-menu as:

rofi -show power-menu -modi power-menu:rofi-power-menu -font "JetBrainsMono NF 16" --symbols

but it don't display icons, insted I got \u200e\uF011 I have tested with other fonts whithout sucess. What I'm doing wrong?

Same Issue Here. Trying to find a resolution. I am thinking of adding a Glyph instead of unicodes.

ohxxm commented 2 years ago

Make sure the font is correct, by checking with fc-list. I had this issue but I had to restart, which fixed this.

ohxxm commented 2 years ago

If fixed, please close.

eleloi commented 2 years ago

fc-list|grep JetBrainsMono returns

/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Bold Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Bold
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Extra Bold Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Extra Bold,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtraBold ExtBd Nerd Font Complete.ttf: JetBrainsMonoExtraBold Nerd Font:style=Extra Bold,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtraBold ExBd I Nerd Font Complete Mono.ttf: JetBrainsMonoExtraBold Nerd Font Mono:style=Extra Bold Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Italic Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Bold Italic Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Bold Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtBd Ita Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Extra Bold Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Italic Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Bold Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Bold
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtraBold ExtBd Nerd Font Complete Mono.ttf: JetBrainsMonoExtraBold Nerd Font Mono:style=Extra Bold,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Bold Italic Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Bold Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Medium,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtBd Ita Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Extra Bold Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Medium Nerd Font Complete.ttf: JetBrainsMonoMedium Nerd Font:style=Medium,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Regular Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Med Ita Nerd Font Complete Mono.ttf: JetBrainsMonoMedium Nerd Font Mono:style=Medium Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Italic Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Medium Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Med Ita Nerd Font Complete.ttf: JetBrainsMonoMedium Nerd Font:style=Medium Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Medium Nerd Font Complete Mono.ttf: JetBrainsMonoMedium Nerd Font Mono:style=Medium,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Italic Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Medium Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtraBold ExBd I Nerd Font Complete.ttf: JetBrainsMonoExtraBold Nerd Font:style=Extra Bold Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Regular Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Extra Bold Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Extra Bold,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Medium,Regular

I test the same command with another fonts, and also changing JetBrainsMono NF with JetBrainsMono Nerd Font but same result

ohxxm commented 2 years ago

Rofi is not supported in wayland, there is a fork named wofi for this which is not supported by this script.

Chaostheorie commented 1 year ago

Just a small update in case anyone else has the same problem: In case you lack an icon font consider the patched Nerd Fonts.

In rofi font families need to be adjusted via CSS for the appropiate element (e.g., the top level window) to fix the issue of missing glyps, e.g.:

window {
  font-family: JetBrainsMono, JetBrainsMonoNerdFontMono, monospace; 
}

The CSS file with this rule should be referenced with @theme "<path to CSS file>" in the config.rasi for rofi.

Note: To find the name of a font family on Linux: fc-list | grep -i <name>. To check if a name, e.g., JetBrainsMonoNerdFontMono is matched properly, use fc-match <name>. You can '...' use single quotes for escaping whitespace.