MadcowOG / dwl-bar

dwl-like bar for dwl
GNU General Public License v3.0
30 stars 10 forks source link

Issues with emojis #10

Closed ryantking closed 1 year ago

ryantking commented 1 year ago

Hello I'm having two issues with emojis when using dwl-bar:

  1. The emojis stay rendered on inactive monitors. Currently my inactive monitor has no status info on it, but the emojis are still there with no text.
  2. The emojis are the texting emojis, not the simple line drawing that they were. I assume this something to do with Pango since I assume that dwm uses XFT?

I don't know much about Linux fonts so assume there's some system setting for pango or fontconfig to get the rendering right, but not really sure where to start.

ryantking commented 1 year ago

Looks like this can be solved by using a special unicode character to force text mode output instead of emojis: https://mts.io/2015/04/21/unicode-symbol-render-text-emoji/

If anyone else runs into this, in your status bar scripts append \uFE0E to your emojis. Note that not all programs print this correctly, I converted all my scripts to use echo -e.