aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-10-30 17:51:30 -0400
committerMitch Riedstra <mitch@riedstra.us>2020-10-30 17:51:30 -0400
commit39c1871b919a7cc361d2cae8154af7a4d7d08c74 (patch)
treefecee2abc4f102091a031fc4c4429519713af221 /config.h
parent5b952170a499513300505b667e53db69933ad168 (diff)
downloaddwm-39c1871b919a7cc361d2cae8154af7a4d7d08c74.tar.gz
dwm-39c1871b919a7cc361d2cae8154af7a4d7d08c74.tar.xz
Tweak some of the bindings, also automatically tag some applications.
Diffstat (limited to 'config.h')
-rw-r--r--config.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/config.h b/config.h
index 41e3a5c..9e7e60c 100644
--- a/config.h
+++ b/config.h
@@ -26,9 +26,12 @@ static const Rule rules[] = {
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
- /* class instance title tags mask isfloating monitor */
- { "Gimp", NULL, NULL, 0, 1, -1 },
- { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
+ /* class instance title tags mask isfloating monitor */
+ { "Gimp", NULL, NULL, 0, 1, -1 },
+ { "Pavucontrol", NULL, NULL, 1<<6, 0, -1 },
+ { "Evolution", NULL, NULL, 1<<6, 0, -1 },
+ { "Google-chrome", NULL, NULL, 1<<7, 0, -1 },
+ { "Firefox", NULL, NULL, 1<<8, 0, -1 },
};
/* layout(s) */
@@ -56,15 +59,23 @@ static const Layout layouts[] = {
#include "selfrestart.c"
+#define DMENU_FLAGS "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4
+
/* 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", DMENU_FLAGS, NULL };
static const char *termcmd[] = { "st", NULL };
+static const char *passcmd[] = { "passmenu", DMENU_FLAGS, NULL };
+static const char *passcmd_type[] = { "passmenu", "--type", DMENU_FLAGS, NULL };
+static const char *snip_cmd[] = { "snipmenu", DMENU_FLAGS, NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
+ { MODKEY, XK_p, spawn, {.v = passcmd } },
+ { MODKEY, XK_o, spawn, {.v = passcmd_type } },
+ { MODKEY|ShiftMask, XK_s, spawn, {.v = snip_cmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
@@ -72,7 +83,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_j, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
- { MODKEY|ShiftMask, XK_f, zoom, {0} },
+ { MODKEY|ShiftMask, XK_f, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_q, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },