diff options
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 71 |
1 files changed, 46 insertions, 25 deletions
@@ -2,42 +2,40 @@ #include <X11/XF86keysym.h> -static const char normfgcolor[] = "#bbbbbb"; -static const char selbordercolor[] = "#005577"; -static const char selbgcolor[] = "#005577"; -static const char urgbordercolor[] = "#ff0000"; /* appearance */ -static const unsigned int borderpx = 1; /* border pixel of windows */ -static const unsigned int gappx = 6; /* gaps between windows */ -static const unsigned int snap = 32; /* snap pixel */ +static unsigned int borderpx = 1; /* border pixel of windows */ +static unsigned int gappx = 6; /* gaps between windows */ +static unsigned int snap = 32; /* snap pixel */ static const int swallowfloating = 0; static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */ static const unsigned int systrayspacing = 2; /* systray spacing */ static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/ static const int showsystray = 1; /* 0 means no systray */ -static const int showbar = 1; /* 0 means no bar */ -static const int topbar = 1; /* 0 means bottom bar */ +static int showbar = 1; /* 0 means no bar */ +static int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "mononoki Nerd Font Mono:size=12", "symbola:size=10" }; static const char dmenufont[] = "mononoki Nerd Font Mono:size=12"; -static const char col_gray1[] = "#151219"; -static const char col_gray2[] = "#6e6f6c"; -static const char col_gray3[] = "#898883"; -static const char col_gray4[] = "#c5c3bc"; -static const char col_cyan[] = "#2783a1"; -static const char col_other[] = "#675f58"; +static char normbgcolor[] = "#151219"; +static char normbordercolor[] = "#6e6f6c"; +static char normfgcolor[] = "#898883"; +static char selfgcolor[] = "#c5c3bc"; +static char selbordercolor[] = "#2783a1"; +static char selbgcolor[] = "#675f58"; +static char urgfgcolor[] = "#c5c3bc"; +static char urgbordercolor[] = "#2783a1"; +static char urgbgcolor[] = "#675f58"; -static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { col_gray4, col_gray1, col_gray3 }, // unfocused wins - [SchemeSel] = { col_gray4, col_gray2, col_gray4 }, // the focused win - [SchemeUrg] = { col_gray4, col_gray1, col_other }, +static char *colors[][3] = { + /* fg bg border */ + [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor }, // unfocused wins + [SchemeSel] = { selfgcolor, selbgcolor, selbordercolor }, // the focused win + [SchemeUrg] = { urgfgcolor, urgbgcolor, urgbordercolor }, }; typedef struct { const char *name; const void *cmd; } Sp; -<<<<<<< HEAD const char *spcmd0[] = { "st", "-g", "100x33", "-c", "sphtop", "-e", "htop", NULL }; const char *spcmd1[] = { "st", "-g", "100x33", "-c", "spterm", NULL }; const char *spcmd2[] = { "st", "-g", "100x33", "-c", "sppmxr", "-e", "pulsemixer", NULL }; @@ -108,9 +106,9 @@ static const Rule rules[] = { }; /* layout(s) */ -static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ -static const int nmaster = 1; /* number of clients in master area */ -static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ +static float mfact = 0.50; /* factor of master area size [0.05..0.95] */ +static int nmaster = 1; /* number of clients in master area */ +static int resizehints = 1; /* 1 means respect size hints in tiled resizals */ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ static int attachbelow = 1; /* 1 means attach after the currently active window */ @@ -137,7 +135,7 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; /* static const char *rmenucmd[] = { "/usr/sbin/j4-dmenu-desktop", NULL }; */ /* static const char *passmenu[] = { "passmenu", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; */ static const char *termcmd[] = { "st", NULL }; @@ -159,6 +157,29 @@ static const char *sxhkdsig[] = { "doas", "pkill", "-HUP", "swhkd", NULL }; /* static const char *xidletog[] = { "xidletog", NULL }; */ /* static const char *xkillcmd[] = { "xkill", NULL }; */ +/* + * Xresources preferences to load at startup + */ +ResourcePref resources[] = { + { "normbgcolor", STRING, &normbgcolor }, + { "normbordercolor", STRING, &normbordercolor }, + { "normfgcolor", STRING, &normfgcolor }, + { "selbgcolor", STRING, &selbgcolor }, + { "selbordercolor", STRING, &selbordercolor }, + { "selfgcolor", STRING, &selfgcolor }, + { "urgbgcolor", STRING, &urgbgcolor }, + { "urgbordercolor", STRING, &urgbordercolor }, + { "urgfgcolor", STRING, &urgfgcolor }, + { "borderpx", INTEGER, &borderpx }, + { "gappx", INTEGER, &borderpx }, + { "snap", INTEGER, &snap }, + { "showbar", INTEGER, &showbar }, + { "topbar", INTEGER, &topbar }, + { "nmaster", INTEGER, &nmaster }, + { "resizehints", INTEGER, &resizehints }, + { "mfact", FLOAT, &mfact }, +}; + static Key keys[] = { /* modifier key function argument */ /* { MODKEY, XK_d, spawn, {.v = dmenucmd } }, */ |