integrate with private dotfiles

This commit is contained in:
Akbar Rahman 2021-03-07 16:22:15 +00:00
parent ff32a1cceb
commit 3ca1fbf41f
3 changed files with 6 additions and 2 deletions

View File

@ -16,7 +16,9 @@ options:
@echo "CC = $(CC)"
config.h:
cp config.def.h config.h
sed "s/HOSTNAME/$(shell cat /etc/hostname)/; \
s/FONT/\"$(shell ../getfont.sh freedesktop)\"/" \
config.def.h > config.h
.c.o:
$(CC) $(STCFLAGS) -c $<

2
README
View File

@ -13,6 +13,8 @@ Installation
Edit config.mk to match your local setup (st is installed into
the /usr/local namespace by default).
Copy config.def.h to config.h and replace `FONT` with font of choice.
Afterwards enter the following command to build and install st (if
necessary as root):

View File

@ -5,7 +5,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = "Inconsolata:pixelsize=17:antialias=true:autohint=true";
static char *font = FONT;
static int borderpx = 2;
/*