dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit a600f5aec5cc04f64a19140285cb31d59fd4ef90
parent 1523d5864fb87f2e186c3c391c4e1f08c2089fd8
Author: Chris Bracken <chris@bracken.jp>
Date:   Mon, 18 May 2020 09:25:38 -0700

Eliminate hardcoding of dmenu font

This was added in 4290347 in response to font config changes made in
85e35e0, where the preferred font for serif, sans-serif, and monospace
were set to the Twitter Color Emoji font in an attempt to get emoji
working. That patch alone got most emoji working, but the DejaVu fonts
include a few black-and white glyphs for some basic emoji, which were
taking precedence, since DejaVu fonts are set as the highest strong
bindings to the above-listed aliases.

In 1e1e922, I made the preferred font bindings strong for the Twitter
Color Emoji font, which overrode DejaVu, but made Twitter Color Emoji
the default font for everything on the system. This actually *mostly*
worked because any glyph that wasn't an emoji would just fall back to
the next-highest match, but appears to have mangled font spacing in
monospace fonts.

I fixed all of this in 3a4fb62 by making Noto fonts (which don't include
any emoji codepoints, but do have otherwise broad coverage) to be the
highest-precendence fonts for each alias and Twitter Color Emoji to be
the second-best match. This appears to have resolved the issue
altogether.

Diffstat:
M.config/i3/config | 2+-
M.config/i3/exit_check.sh | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.config/i3/config b/.config/i3/config @@ -51,7 +51,7 @@ set $term urxvt # Your preferred application launcher. # Note: it's recommended that you pass the final command to i3. -set $menu dmenu_path | dmenu -fn "DejaVu Sans Mono-12" | xargs i3-msg exec -- +set $menu dmenu_path | dmenu | xargs i3-msg exec -- # Set lock screen handler. set $lock_screen i3lock -c 000000 diff --git a/.config/i3/exit_check.sh b/.config/i3/exit_check.sh @@ -7,7 +7,7 @@ unset XMODIFIERS while [ "$choice" != "no" ] && [ "$choice" != "yes" ]; do - choice=$(echo -e 'no\nyes' | dmenu -fn "DejaVu Sans Mono-12" -p "Really exit?") + choice=$(echo -e 'no\nyes' | dmenu -p "Really exit?") done if [ "$choice" = "yes" ]; then i3-msg exit