Skip to content

Commit

Permalink
initial remote copy
Browse files Browse the repository at this point in the history
  • Loading branch information
orsonteodoro committed Dec 29, 2013
1 parent 5ed5e90 commit 85936ff
Show file tree
Hide file tree
Showing 9 changed files with 766 additions and 11 deletions.
9 changes: 8 additions & 1 deletion config.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
*/
/* Default settings; can be overrided by command line. */

#if USE_XLIB
static Bool topbar = True; /* -b option; if False, dmenu appears at bottom */
#elif USE_WINAPI
static BOOL topbar = TRUE; /* -b option; if False, dmenu appears at bottom */
#endif
static const char *font = NULL; /* -fn option; default X11 font or font set */
static const char *prompt = NULL; /* -p option; prompt to the elft of input field */
static const char *normbgcolor = "#222222"; /* -nb option; normal background */
Expand All @@ -14,4 +18,7 @@ static const char *outbgcolor = "#00ffff";
static const char *outfgcolor = "#000000";
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
static unsigned int lines = 0;

#if USE_WINAPI
#define normbordercolor 0x00cccccc /* 0x00bbggrr */
#define selbordercolor 0x00ff6600
#endif
24 changes: 24 additions & 0 deletions config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* See LICENSE file for copyright and license details. */
/* vim: expandtab
*/
/* Default settings; can be overrided by command line. */

#if USE_XLIB
static Bool topbar = True; /* -b option; if False, dmenu appears at bottom */
#elif USE_WINAPI
static BOOL topbar = TRUE; /* -b option; if False, dmenu appears at bottom */
#endif
static const char *font = NULL; /* -fn option; default X11 font or font set */
static const char *prompt = NULL; /* -p option; prompt to the elft of input field */
static const char *normbgcolor = "#222222"; /* -nb option; normal background */
static const char *normfgcolor = "#bbbbbb"; /* -nf option; normal foreground */
static const char *selbgcolor = "#005577"; /* -sb option; selected background */
static const char *selfgcolor = "#eeeeee"; /* -sf option; selected foreground */
static const char *outbgcolor = "#00ffff";
static const char *outfgcolor = "#000000";
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
static unsigned int lines = 0;
#if USE_WINAPI
#define normbordercolor 0x00cccccc /* 0x00bbggrr */
#define selbordercolor 0x00ff6600
#endif
12 changes: 6 additions & 6 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib

# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
XINERAMAFLAGS = -DXINERAMA
#XINERAMALIBS = -lXinerama
#XINERAMAFLAGS = -DXINERAMA

# includes and libs
INCS = -I${X11INC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}
#INCS = -I${X11INC}
#LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}

# flags
CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
CFLAGS = -ansi -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
LDFLAGS = -s ${LIBS}
CFLAGS = -std=gnu99 -pedantic -Wall -Os -DUSE_WINAPI -DUSE_CYGWIN ${INCS} ${CPPFLAGS}
LDFLAGS = -s -mwindows ${LIBS}

# compiler and linker
CC = cc
Loading

0 comments on commit 85936ff

Please sign in to comment.