From 1ff1457cda8975dced546e9e9ccc09947e8f4f2e Mon Sep 17 00:00:00 2001 From: amolinae06 Date: Fri, 23 May 2025 15:30:25 -0600 Subject: [PATCH] enabled user config --- .gitignore | 1 - config.h | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 config.h diff --git a/.gitignore b/.gitignore index 0cfdee3..d577a31 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ dam -config.h *.o *-protocol.* diff --git a/config.h b/config.h new file mode 100644 index 0000000..ac04204 --- /dev/null +++ b/config.h @@ -0,0 +1,32 @@ +/* appearance */ +static int showbar = 1; /* 0 means no bar */ +static int topbar = 1; /* 0 means bottom bar */ +static const char *fonts[] = { "Inconsolata:size=12" }; +static const int user_bh = 28; /* 0 means that dam will calculate barheight, >= 1 means dwl will use user_bh as the bar height. */ +#include "/home/amolinae/.cache/hellwal/dam-colors.h" + +/* tagging */ +static char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; + +/* layout name replacement values */ +static const char *layouts[][2] = { + /* layout name replace */ + { "rivertile - left", "[]=" }, + { "rivertile - right", "=[]" }, + { "rivertile - top", "[^]" }, + { "rivertile - bottom", "[_]" }, + { NULL, "><>" }, /* no layout, last layout */ +}; + +static const char *termcmd[] = { "foot", NULL }; + +/* button definitions */ +/* click can be ClkTagBar, ClkLayout, ClkMode, ClkTitle, ClkStatus */ +static const Button buttons[] = { + /* click button function argument */ + { ClkTagBar, BTN_LEFT, command, {.s = "set-focused-tags"} }, + { ClkTagBar, BTN_RIGHT, command, {.s = "toggle-focused-tags"} }, + { ClkTagBar, BTN_MIDDLE, command, {.s = "set-view-tags"} }, + { ClkTitle, BTN_LEFT, command, {.s = "zoom"} }, + { ClkStatus, BTN_MIDDLE, spawn, {.v = termcmd } }, +};