From 3c2742f85c71fb5ba0be3a73bc971e772862fd04 Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: Mar 20 2024 08:25:44 +0000 Subject: config.h.example --- diff --git a/.gitignore b/.gitignore index 224fa4b..d19feaf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ * !*.* *.kdev4 +config.h + diff --git a/build.sh b/build.sh index fd14353..7db689b 100755 --- a/build.sh +++ b/build.sh @@ -2,6 +2,12 @@ set -e +if [ ! -f "config.h" ]; then + echo "copy config.h from example" + cp config.h.example config.h +fi + + FLAGS="$(pkg-config --cflags --libs x11 xft xtst)" FLAGS="$FLAGS -Wall" if [ "$1" = "debug" ]; then diff --git a/config.h b/config.h deleted file mode 100644 index 0e48a56..0000000 --- a/config.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef CONFIG_H -#define CONFIG_H - - -//#define NOBORDER -//#define LOCK_SIZE -//#define DOCK -//#define TOP_RESIZE - -#define WIDTH_SCALE 1/1 // (nominator)/(denomitator) -#define HEIGHT_SCALE 1/3 - -#define TITLE "coolkbd" -#define MIN_WIDTH 200 -#define MIN_HEIGHT 100 -#define LONGPRESS_MS 1500 - -#define FONTS { "DejaVu Sans:bold", "DejaVu Sans", "DejaVu" } -#define FONT_SIZES { 2, 3, 4, 6, 8, 10, 12, 16, 18, 24, 32, 40, 48 } -#define FONT_MAX_SIZES 16 - -#define LABEL_MAXLEN 32 - -#define KEY_BORDER 2 // see also S in layout.defs.h - - -#endif diff --git a/config.h.example b/config.h.example new file mode 100644 index 0000000..0e48a56 --- /dev/null +++ b/config.h.example @@ -0,0 +1,27 @@ +#ifndef CONFIG_H +#define CONFIG_H + + +//#define NOBORDER +//#define LOCK_SIZE +//#define DOCK +//#define TOP_RESIZE + +#define WIDTH_SCALE 1/1 // (nominator)/(denomitator) +#define HEIGHT_SCALE 1/3 + +#define TITLE "coolkbd" +#define MIN_WIDTH 200 +#define MIN_HEIGHT 100 +#define LONGPRESS_MS 1500 + +#define FONTS { "DejaVu Sans:bold", "DejaVu Sans", "DejaVu" } +#define FONT_SIZES { 2, 3, 4, 6, 8, 10, 12, 16, 18, 24, 32, 40, 48 } +#define FONT_MAX_SIZES 16 + +#define LABEL_MAXLEN 32 + +#define KEY_BORDER 2 // see also S in layout.defs.h + + +#endif