Ported randr code to wip branch, plus some fixes.
This commit is contained in:
parent
dcb0416af7
commit
59fb6c5dfe
8
Makefile
8
Makefile
@ -1,6 +1,6 @@
|
|||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
STRIP ?= strip
|
STRIP ?= strip
|
||||||
CFLAGS = -std=c99 -fshort-wchar -Os
|
CFLAGS = -std=c99 -O2
|
||||||
LDFLAGS = -lxcb -lxcb-xinerama -lxcb-randr
|
LDFLAGS = -lxcb -lxcb-xinerama -lxcb-randr
|
||||||
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\
|
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\
|
||||||
-Wsign-conversion -Wconversion -Wimplicit-function-declaration
|
-Wsign-conversion -Wconversion -Wimplicit-function-declaration
|
||||||
@ -31,9 +31,9 @@ debug: ${EXEC}
|
|||||||
debug: CC += ${CFDEBUG}
|
debug: CC += ${CFDEBUG}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ./*.o
|
rm -f ./config.h
|
||||||
rm -rf ./${EXEC}
|
rm -f ./*.o
|
||||||
rm -rf ./config.h
|
rm -f ./${EXEC}
|
||||||
|
|
||||||
install: bar
|
install: bar
|
||||||
test -d ${DESTDIR}${BINDIR} || mkdir -p ${DESTDIR}${BINDIR}
|
test -d ${DESTDIR}${BINDIR} || mkdir -p ${DESTDIR}${BINDIR}
|
||||||
|
14
config.def.h
14
config.def.h
@ -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. */
|
/* The thickness of the underline (in pixels). Set to 0 to disable. */
|
||||||
#define BAR_UNDERLINE_HEIGHT 2
|
#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 */
|
/* Some fonts don't set the right width for some chars, pheex it */
|
||||||
#define BAR_FONT_FALLBACK_WIDTH 6
|
#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 */
|
/* Color palette */
|
||||||
#define BACKGROUND 0x232c31
|
#define BACKGROUND 0x232c31
|
||||||
#define COLOR0 0x2d3c46
|
#define COLOR0 0x2d3c46
|
||||||
|
Loading…
x
Reference in New Issue
Block a user