Skip to content

Commit

Permalink
Added config.h.def to help with PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
moetunes committed Aug 11, 2012
1 parent 0715579 commit 6da7431
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
21 changes: 2 additions & 19 deletions bipolarbar.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,25 +29,6 @@
#include <sys/time.h> #include <sys/time.h>
#include <unistd.h> #include <unistd.h>


/***************** DEFINES ***********************/
#define TOP_BAR 0 // 0=Bar at top, 1=Bar at bottom
#define BAR_HEIGHT 18
#define BAR_WIDTH 0 // 0=Full width or use num pixels
// If font isn't found "fixed" will be used
#define FONT "-*-terminusmod.icons-medium-r-*-*-12-*-*-*-*-*-*-*,-*-stlarch-medium-r-*-*-12-*-*-*-*-*-*-*"
#define FONTS_ERROR 1 // 0 to have missing fonts error shown
// colours are for background and the text
#define colour0 "#001020" // &0 Default Background colour
#define colour1 "#ffffff" // &1 Default foreground colour
#define colour2 "#002030" // &2
#define colour3 "#665522"
#define colour4 "#898900"
#define colour5 "#776644"
#define colour6 "#887733"
#define colour7 "#998866"
#define colour8 "#999999"
#define colour9 "#000055" // &9

typedef struct { typedef struct {
unsigned long color; unsigned long color;
GC gc; GC gc;
Expand All @@ -64,6 +45,8 @@ typedef struct {
unsigned int descent; unsigned int descent;
} Iammanyfonts; } Iammanyfonts;


#include "config.h"

static void get_font(); static void get_font();
static void update_right(); static void update_right();
static void print_text(); static void print_text();
Expand Down
23 changes: 23 additions & 0 deletions config.h.def
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,23 @@
/* config.h for bipolarbar.c */
#ifndef CONFIG_H
#define CONFIG_H

#define TOP_BAR 0 // 0=Bar at top, 1=Bar at bottom
#define BAR_HEIGHT 18
#define BAR_WIDTH 0 // 0=Full width or use num pixels
// If font isn't found "fixed" will be used
#define FONT "-*-terminusmod.icons-medium-r-*-*-12-*-*-*-*-*-*-*,-*-stlarch-medium-r-*-*-12-*-*-*-*-*-*-*"
#define FONTS_ERROR 1 // 0 to have missing fonts error shown
// colours are for background and the text
#define colour0 "#001020" // &0 Default Background colour
#define colour1 "#ffffff" // &1 Default foreground colour
#define colour2 "#002030" // &2
#define colour3 "#665522"
#define colour4 "#898900"
#define colour5 "#776644"
#define colour6 "#887733"
#define colour7 "#998866"
#define colour8 "#999999"
#define colour9 "#000055" // &9

#endif

0 comments on commit 6da7431

Please sign in to comment.