Settings Related to Dwm

Using emoji in the status bar

  1. Install libxft-bgra in AUR:

    Use yay to install package from AUR: yay -S libxft-bgra. If a gpg key problem occured, just try install libxft-bgra-git package instead.

  2. Change some code in drw.c of dmenu and dwm:

    Search color fonts in those file. Find a block comment like this.

    /* Do not allow using color fonts. This is a workaround for a BadLength
     ...

    Just comment out the if block right after the comment.

    Note that some fonts can crash dwm if this step was not done. Details in ArchWiki.

  3. Change the font used in status bar of dwm

    Select a font that support emoji, like Noto Color Emoji.

  4. Restart dwm

    The default shortcut to terminate dwm is Alt+Shift+Backspace.