Ported randr code to wip branch, plus some fixes.

This commit is contained in:
John Vogel 2014-02-09 18:54:33 -05:00
parent dcb0416af7
commit 59fb6c5dfe
3 changed files with 420 additions and 412 deletions

View File

@ -1,6 +1,6 @@
CC ?= gcc
STRIP ?= strip
CFLAGS = -std=c99 -fshort-wchar -Os
CFLAGS = -std=c99 -O2
LDFLAGS = -lxcb -lxcb-xinerama -lxcb-randr
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\
-Wsign-conversion -Wconversion -Wimplicit-function-declaration
@ -31,9 +31,9 @@ debug: ${EXEC}
debug: CC += ${CFDEBUG}
clean:
rm -rf ./*.o
rm -rf ./${EXEC}
rm -rf ./config.h
rm -f ./config.h
rm -f ./*.o
rm -f ./${EXEC}
install: bar
test -d ${DESTDIR}${BINDIR} || mkdir -p ${DESTDIR}${BINDIR}

810
bar.c

File diff suppressed because it is too large Load Diff

View File

@ -1,21 +1,7 @@
/* The height of the bar (in pixels) */
#define BAR_HEIGHT 18
/* The width of the bar. Set to -1 to fit screen */
#define BAR_WIDTH -1
/* Offset from the left. Set to 0 to have no effect */
#define BAR_OFFSET 0
/* Choose between an underline or an overline */
#define BAR_UNDERLINE 1
/* The thickness of the underline (in pixels). Set to 0 to disable. */
#define BAR_UNDERLINE_HEIGHT 2
/* Default bar position, overwritten by '-b' switch */
#define BAR_BOTTOM 0
/* The fonts used for the bar, comma separated. Only the first 2 will be used. */
#define BAR_FONT "-*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1","fixed"
/* Some fonts don't set the right width for some chars, pheex it */
#define BAR_FONT_FALLBACK_WIDTH 6
/* Define the opacity of the bar (requires a compositor such as compton) */
#define BAR_OPACITY 1.0 /* 0 is invisible, 1 is opaque */
/* Color palette */
#define BACKGROUND 0x232c31
#define COLOR0 0x2d3c46