From 542a91c18cc823abe24c74fab5cc1e710704004d Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sun, 1 Nov 2020 22:38:05 -0500 Subject: Some more tag rules. Add hotkeys for screenshots and file browsing. --- config.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 2dc1dea..5824210 100644 --- a/config.h +++ b/config.h @@ -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 } }, -- cgit v1.2.3