add slock, change colour scheme

This commit is contained in:
Václav Uruba 2021-01-09 14:51:49 +01:00
parent 1563961034
commit 7cafbc6907
Signed by: uruba
GPG Key ID: 0059B34D61727BB0

View File

@ -11,17 +11,14 @@ 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 col_dmenu_nb[] = "#0a4158";
static const char col_dmenu_nf[] = "#ff9636";
static const char col_dmenu_sb[] = "#ff9636";
static const char col_dmenu_sf[] = "#0a4158";
static const char col_primary[] = "#0a4158";
static const char col_text_primary[] = "#ff9636";
static const char col_secondary[] = "#ff9636";
static const char col_text_secondary[] = "#0a4158";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_text_primary, col_primary, col_primary },
@ -38,7 +35,7 @@ static const Rule rules[] = {
*/
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 },
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
{ "Firefox", NULL, NULL, 1, 0, -1 },
};
/* layout(s) */
@ -66,12 +63,13 @@ 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", col_dmenu_nb, "-nf", col_dmenu_nf, "-sb", col_dmenu_sb, "-sf", col_dmenu_sf, 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 };
static const char *pavucontrolcmd[] = { "pavucontrol-qt", NULL };
static const char *slockcmd[] = { "slock", NULL };
static Key keys[] = {
/* modifier key function argument */
@ -114,6 +112,8 @@ static Key keys[] = {
{ MODKEY, XK_minus, spawn, {.v = backlightdowncmd } },
/* PulseAudio */
{ MODKEY, XK_v, spawn, {.v = pavucontrolcmd } },
/* slock */
{ MODKEY, XK_s, spawn, {.v = slockcmd } },
};
/* button definitions */