Skip to content

Commit 146afbc

Browse files
committed
Add surf kbds and sync dmenu colors
1 parent 081316b commit 146afbc

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

config.h

+13-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ static const int showbar = 1; /* 0 means no bar */
88
static const int topbar = 1; /* 0 means bottom bar */
99
static const int user_bh = 48; /* 0 means that dwm will calculate bar height, >= 1 means dwm will user_bh as bar height */
1010

11-
static const char *fonts[] = { "monospace:size=14" };
11+
static const char *fonts[] = { "monospace:size=14", "Symbola:size=14" };
1212
static const char dmenufont[] = "monospace:size=14";
1313
static const char col_gray1[] = "#222222";
1414
static const char col_gray2[] = "#444444";
@@ -17,13 +17,15 @@ static const char col_gray4[] = "#eeeeee";
1717
static const char col_cyan[] = "#005577";
1818

1919
// Custom colors: https://www.color-hex.com/color/00539b
20-
static const char col_oceanblue[] = "#00539b";
20+
static const char col_oceanblue[] = "#00539b";
21+
static const char col_draculapurple[] = "#6272A4";
22+
static const char * const col_main = col_oceanblue;
2123

2224
static const char *colors[][3] = {
2325
/* fg bg border */
2426
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
2527
// [SchemeSel] = { col_gray4, col_cyan, col_cyan },
26-
[SchemeSel] = { col_gray4, col_oceanblue, col_oceanblue },
28+
[SchemeSel] = { col_gray4, col_main, col_main },
2729
};
2830

2931
/* tagging */
@@ -42,6 +44,7 @@ static const Rule rules[] = {
4244
{ "jetbrains-idea", NULL, NULL, 1 << 7, 0, -1 },
4345
{ "jetbrains-clion", NULL, NULL, 1 << 7, 0, -1 },
4446
{ "Thunderbird", NULL, NULL, 1 << 6, 0, -1 },
47+
{ "Discord", NULL, NULL, 1 << 6, 0, -1 },
4548
};
4649

4750
/* layout(s) */
@@ -74,15 +77,18 @@ static const Layout layouts[] = {
7477

7578
/* commands */
7679
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
77-
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
80+
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_main, "-sf", col_gray4, NULL };
7881
static const char *termcmd[] = { "st", NULL };
7982
// static const char *termcmd[] = { "gnome-terminal", NULL };
8083

8184
// Custom apps/commands/hotkeys
8285
// static const char *firefoxcmd[] = { "/usr/bin/firefox", NULL };
8386
static const char *bravecmd[] = { "/usr/bin/brave-browser", NULL };
8487
//static const char *surfcmd[] = { "/home/lorenzo/bin/surf-open.sh", NULL };
85-
static const char *surfcmd[] = { "/home/lorenzo/bin/open-web", NULL };
88+
static const char *surfcmd[] = { "surf", NULL };
89+
static const char *surfhistcmd[] = { "/home/lorenzo/bin/open-web-history", NULL };
90+
static const char *surfbookcmd[] = { "/home/lorenzo/bin/open-web", NULL };
91+
8692
static const char *emacscmd[] = { "/usr/bin/emacs", NULL };
8793
static const char *nautiluscmd[] = { "/usr/bin/nautilus", NULL };
8894
static const char *screenshotcmd[] = { "/usr/bin/gnome-screenshot", "-i", NULL };
@@ -145,6 +151,8 @@ static Key keys[] = {
145151
// { MODKEY, XK_w, spawn, {.v = firefoxcmd} },
146152
{ MODKEY, XK_w, spawn, {.v = bravecmd} },
147153
{ MODKEY|ShiftMask, XK_w, spawn, {.v = surfcmd} },
154+
{ MODKEY, XK_s, spawn, {.v = surfbookcmd} },
155+
{ MODKEY|ShiftMask, XK_s, spawn, {.v = surfhistcmd} },
148156
{ MODKEY, XK_e, spawn, {.v = emacscmd} },
149157
{ MODKEY, XK_o, spawn, {.v = nautiluscmd} },
150158
{ MODKEY|ShiftMask, XK_o, spawn, {.v = screenshotcmd} },

0 commit comments

Comments
 (0)