From 531bc97df642c381f2d51c108083b44a11900760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Uruba?= Date: Sun, 22 Nov 2020 14:39:18 +0100 Subject: [PATCH] change colour scheme, add rofi shortcut --- config.h | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/config.h b/config.h index 9c2c4c8..cbbb302 100644 --- a/config.h +++ b/config.h @@ -1,21 +1,27 @@ /* See LICENSE file for copyright and license details. */ /* appearance */ -static const unsigned int borderpx = 2; /* border pixel of windows */ -static const unsigned int snap = 32; /* snap pixel */ -static const int showbar = 1; /* 0 means no bar */ -static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10" }; -static const char dmenufont[] = "monospace:size=10"; -static const char col_gray1[] = "#222222"; -static const char col_gray2[] = "#444444"; -static const char col_gray3[] = "#bbbbbb"; -static const char col_gray4[] = "#eeeeee"; -static const char col_cyan[] = "#005577"; -static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, +static const unsigned int borderpx = 2; /* border pixel of windows */ +static const unsigned int snap = 32; /* snap pixel */ +static const int showbar = 1; /* 0 means no bar */ +static const int topbar = 1; /* 0 means bottom bar */ +static const char *fonts[] = { "monospace:size=10" }; +static const char dmenufont[] = "monospace:size=10"; +static const char col_gray1[] = "#222222"; +static const char col_gray2[] = "#444444"; +static const char col_gray3[] = "#bbbbbb"; +static const char col_gray4[] = "#eeeeee"; +static const char col_white[] = "#ffffff"; +static const char col_black[] = "#000000"; +static const char col_cyan[] = "#005577"; +static const char col_primary[] = "#f890e7"; +static const char col_text_primary[] = "#8b008b"; +static const char col_secondary[] = "#0bd3d3"; +static const char col_text_secondary[] = "#34495e"; +static const char *colors[][3] = { + /* fg bg border */ + [SchemeNorm] = { col_text_primary, col_primary, col_primary }, + [SchemeSel] = { col_text_secondary, col_secondary, col_secondary }, }; /* tagging */ @@ -57,6 +63,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 *roficmd[] = { "rofi", "-show", "drun", NULL }; static const char *termcmd[] = { "st", NULL }; static const char *backlightupcmd[] = { "light", "-A", "5", NULL }; static const char *backlightdowncmd[] = { "light", "-U", "5", NULL }; @@ -64,6 +71,7 @@ static const char *backlightdowncmd[] = { "light", "-U", "5", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, + { MODKEY, XK_e, spawn, {.v = roficmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } },