UPDATE 2019-06-24. I created my own fork for this very purpose. See how I forked lemonbar-xft.
Lemonbar is a lightweight program that draws a panel on the viewport. The information on display is whatever is pipped to it.
Upstream lemonbar
lacks support for proportional fonts and the
corresponding interface with fontconfig
.
This is a disappointment because fixed/bitmap typefaces leave much to be desired:
terminus
, fixed
, times
;There is a popular alternative by GitHub user krypt-n that provides
Xft support, but seems to have been
discontinued.
So I have decided to pick it up and maintain it. To make sure it syncs
with upstream’s master
branch and builds correctly.
So let us get going. First we need to get the build dependencies for Debian 10 Buster:
sudo apt install build-essential libx11-dev libxft-dev libx11-xcb-dev libxcb-randr0-dev libxcb-xinerama0-dev
Now clone my lemonbar-xft
fork:
git clone https://gitlab.com/protesilaos/lemonbar-xft.git
Switch to that directory:
cd lemonbar-xft
Compile it and install it system-wide:
make
sudo make install
Or if you are like me, compile it just for your current user, by placing
the artifacts in your home directory. This assumes you have configured
$HOME/bin
to be part of PATH
.
make PREFIX="$HOME" install
Uninstalling it requires the same steps, except you just pass the
uninstall
argument.
Done! Now lemonbar
can use any typeface supported by fontconfig
.
Make sure you apt remove lemonbar
in case you had the upstream
package.
I generally stick to the packages provided by Debian. This is an exception because:
The above granted, I am still not sure whether I will make changes to my
custom desktop session, which
still uses upstream lemonbar
. I might just add a reference in my
Prot’s Dots For Debian for users that
want to follow the instruction documented herein.