Voidrice: Emoji font not respected by dwm.

Created on 20 Jun 2020  路  11Comments  路  Source: LukeSmithxyz/voidrice

dwm bar no longer prefers color emojis using this fonts.conf. Not sure which update broke this.

Most helpful comment

I just figured out the problem.
I had changed the font array in dwm's config.h after I installed, disabling emojis.
It worked before without it, but now you need to include an emoji font in the dwm font array.

All 11 comments

I don't think it is related to voidrice.

What fonts are you using?

It looks like noto is probably the root issue?

same here i dont have color emoji in dmenu, what font is need in here? i have noto-fonts-emoji, ttf-joypixels and symbola installed.

Same @hoaxdream , I think it is linked to noto-fonts and was hoping @Sife-ops might have some feedback

i change to old script and specifiy specific font which is JoyPixels and its working but its not working if i set Noto Color Emoji or JoyPixels in fonts.conf

chosen=$(grep -v "#" ~/.local/share/emoji | dmenu -i -l 20 -fn JoyPixels-18)

btw here is the old script

#!/usr/bin/env sh

xclip -h >/dev/null || exit

chosen=$(grep -v "#" ~/.local/share/emoji | dmenu -i -l 20 -fn JoyPixels-18)

[ "$chosen" != "" ] || exit

c=$(echo "$chosen" | sed "s/ .*//")
echo "$c" | tr -d '\n' | xclip -selection clipboard
notify-send "'$c' copied to clipboard." &

s=$(echo "$chosen" | sed "s/.*; //" | awk '{print $1}')
echo "$s" | tr -d '\n' | xclip
notify-send "'$s' copied to primary." &

I just figured out the problem.
I had changed the font array in dwm's config.h after I installed, disabling emojis.
It worked before without it, but now you need to include an emoji font in the dwm font array.

@Sife-ops thank you so much for sharing. Hope I didn't wake you! (5am on east coast)

confirm working. thanks @Sife-ops

I'm a literal moron for not noticing this and am embarrassed for even opening a thread here. Please, don't thank me.

@Sife-ops where exactly did you add the emojis array? I checked your dwm config.def.h but couldn't find it

Okay, I just updated it, but you would find the solution if you just checked the font array for LUK's dwm.

Was this page helpful?
0 / 5 - 0 ratings