diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2020-11-01 22:38:05 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2020-11-01 22:38:05 -0500 |
| commit | 542a91c18cc823abe24c74fab5cc1e710704004d (patch) | |
| tree | b89658f6b171542db55df6f10bacbde17b8a55a4 | |
| parent | 53a51c602342e302005800bbe7e986b0cbb72eac (diff) | |
| download | dwm-542a91c18cc823abe24c74fab5cc1e710704004d.tar.gz dwm-542a91c18cc823abe24c74fab5cc1e710704004d.tar.xz | |
Some more tag rules. Add hotkeys for screenshots and file browsing.
| -rw-r--r-- | config.h | 24 |
1 files changed, 16 insertions, 8 deletions
@@ -8,8 +8,8 @@ static const unsigned int borderpx = 1; /* 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[] = { FONT_CURIE }; -static const char dmenufont[] = FONT_CURIE; +static const char *fonts[] = { FONT_SCIENTIFICA }; +static const char dmenufont[] = FONT_SCIENTIFICA; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; @@ -30,10 +30,14 @@ static const Rule rules[] = { * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, + { "St", NULL, NULL, 1<<0, 0, -1 }, + { "Thunar", NULL, NULL, 1<<1, 0, -1 }, + { "Gimp", NULL, NULL, 1<<2, 0, -1 }, { "Pavucontrol", NULL, NULL, 1<<6, 0, -1 }, + { "Blueman-manager",NULL, NULL, 1<<6, 0, -1 }, { "Evolution", NULL, NULL, 1<<6, 0, -1 }, { "Google-chrome", NULL, NULL, 1<<7, 0, -1 }, + { "Chromium", NULL, NULL, 1<<7, 0, -1 }, { "Firefox", NULL, NULL, 1<<8, 0, -1 }, }; @@ -69,19 +73,23 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -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 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 const char *screenshot_cmd[] = { "xfce4-screenshooter", NULL }; +static const char *file_cmd[] = { "thunar", 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|ShiftMask, XK_p, spawn, {.v = screenshot_cmd } }, { MODKEY, XK_o, spawn, {.v = passcmd_type } }, { MODKEY|ShiftMask, XK_s, spawn, {.v = snip_cmd } }, + { MODKEY|ControlMask, XK_f, spawn, {.v = file_cmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, |
