add pango fix to asciidoc, fix Makefile

This commit is contained in:
NBonaparte 2018-01-28 15:22:19 -08:00
parent e3a47512a7
commit 57b3a7512c
2 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,6 @@ VERSION ?= $(shell git describe)
CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_POSIX_C_SOURCE=199309L -DYA_INTERNAL -DYA_DYN_COL \
-DYA_ENV_VARS -DYA_INTERNAL_EWMH -DYA_ICON -DYA_NOWIN_COL -DYA_MUTEX -DYA_VAR_WIDTH \
-DYA_BSPWM
<<<<<<< HEAD
CFLAGS += -std=c99 -Iinclude -pedantic -Wall -flto -O2 `pkg-config --cflags pango pangocairo libconfig gdk-pixbuf-2.0 alsa`
DEPS += pango pangocairo libconfig gdk-pixbuf-2.0 alsa
@ -14,10 +13,6 @@ endif
LDFLAGS += -flto -O2
LDLIBS += -liw -lxcb -lpthread -lxcb-randr -lxcb-ewmh -lxcb-icccm -lxkbcommon -lxkbcommon-x11 -lxcb-xkb -lm `pkg-config --libs $(DEPS)`
=======
CFLAGS += -std=c99 -Iinclude -pedantic -Wall -Os `pkg-config --cflags pango pangocairo libconfig gdk-pixbuf-2.0 alsa`
LDLIBS += -liw -lxcb -lpthread -lxcb-randr -lxcb-ewmh -lxcb-icccm -lm `pkg-config --libs pango pangocairo libconfig gdk-pixbuf-2.0 alsa`
>>>>>>> remove monospace, add to readme
PROGRAM := yabar
DOCS := $(PROGRAM).1
PREFIX ?= /usr

View file

@ -191,6 +191,11 @@ command-button4: "pactl set-sink-volume 0 +10%";
command-button5: "pactl set-sink-volume 0 -10%";
----
* *Pango fix*: When using some symbolic fonts, there can be occasional issues where space characters become unknown glyphs. This fix makes Pango use fallbacks properly (NOTE: the regular font should be specified first, then the symbolic font as shown in the Font section). Example:
----
fix-pango: true;
----
Yabar sets a handful of environment variables before executing your commands/scripts that are defined in the 'command-button{1-5}' entry. Such env variables can be useful when drawing your window on the corresponding button press or determining where the click occured. Current env variables are:
----
$YABAR_BLOCK_X # beginning x axis for the block