You are not logged in.

#1 2020-11-28 07:10:19

pratik
Member
Registered: 2020-11-13
Posts: 4

[SOLVED] Emojis not working in dwm

I am using dwmblocks to display my emoji, but they don't show up. I have noto-fonts-emoji and libxft-bgra-git installed, but the status bar just shows a rectangular box instead of the emoji. If the git version of libxft-bgra isn't the one that fixes the issue, then I have another problem here. Using yay to install the libxft-bgra package, it prompts me to import the keys. However when I click yes, it gives me an error saying:

gpg: keyserver receive failed: General error
problem importing keys 

The only solution that I can think of now is that I need to patch dwm to be able to use such emojis. However, I don't want to go looking out for it since I'm not sure what the issue really is. Please provide me suggestions as to what I should do, or try to fix.

Last edited by pratik (2020-12-07 07:52:00)

Offline

#2 2020-11-28 19:40:20

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 340
Website

Re: [SOLVED] Emojis not working in dwm

If you use rofi check https://github.com/Mange/rofi-emoji

St tet

Offline

#3 2020-11-28 22:06:49

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: [SOLVED] Emojis not working in dwm

You need to remove the check that disables color pictures from dwm: https://git.suckless.org/dwm/file/drw.c.html#l136
The same code is in dmenu as well.

Last edited by progandy (2020-11-28 22:07:59)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2020-11-29 14:08:45

pratik
Member
Registered: 2020-11-13
Posts: 4

Re: [SOLVED] Emojis not working in dwm

progandy wrote:

You need to remove the check that disables color pictures from dwm: https://git.suckless.org/dwm/file/drw.c.html#l136
The same code is in dmenu as well.

I'm not sure how much of the code I should remove. Can you please help?

Offline

#5 2020-11-29 14:27:05

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: [SOLVED] Emojis not working in dwm

You'll have to remove line 136 to 147


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#6 2020-11-29 14:34:16

pratik
Member
Registered: 2020-11-13
Posts: 4

Re: [SOLVED] Emojis not working in dwm

I removed those lines and recompiled, yet when I tried to use xsetroot to display a script, that also outputs an emoji, it still displays the same old rectangular box (with no glyphs or emoji). Nothing crashes or anything but the emojis don't appear as they should.

Last edited by pratik (2020-11-29 14:37:42)

Offline

#7 2020-11-29 14:55:05

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: [SOLVED] Emojis not working in dwm

Youmight have to set the font as well. I don't know how fontconfig fallback would have to be configured, but it seems you can do it directly in the dwm config.

https://github.com/LukeSmithxyz/dwm/com … c947cf9658


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#8 2020-11-29 15:09:48

pratik
Member
Registered: 2020-11-13
Posts: 4

Re: [SOLVED] Emojis not working in dwm

Solved! What I did was install the joypixels fonts that Luke was using and then made the edits in my config.h and the emojis show up well. I guess it was the fonts? Anyway, thank you. Have a good day!

Last edited by pratik (2020-12-07 07:53:35)

Offline

Board footer

Powered by FluxBB