From cec41fd490017a81181b71c576b4783f9afd3d45 Mon Sep 17 00:00:00 2001 From: gutmet Date: Fri, 19 Mar 2021 17:12:34 +0100 Subject: [PATCH] added pcmanfm --- CHANGES | 1 + config.def.h | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 7d675d3..4b9bdfd 100644 --- a/CHANGES +++ b/CHANGES @@ -20,3 +20,4 @@ This version of dwm differs from the original on suckless.org as follows: - added ControlMask to spawning via dmenu, so both terminal and dmenu spawn use same masking - added key Mod+Ctrl+l to lock screen with slock - added gutmet's dmenu_charinput to Mod+e to enter special unicode chars +- added pcmanfm to Mod+o and marked it as shell for window swallowing diff --git a/config.def.h b/config.def.h index ac4c423..4d7b348 100644 --- a/config.def.h +++ b/config.def.h @@ -33,8 +33,9 @@ static const Rule rules[] = { * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating isterminal noswallow monitor */ - { "Gimp", NULL, NULL, 0, 1, 0, 0, -1 }, - { "st-256color", NULL, NULL, 0, 0, 1, 0, -1 }, + { "Gimp", NULL, NULL, 0, 1, 0, 0, -1 }, + { "st-256color", NULL, NULL, 0, 0, 1, 0, -1 }, + { "Pcmanfm", NULL, NULL, 0, 0, 1, 0, -1 }, }; /* layout(s) */ @@ -68,10 +69,12 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, static const char *termcmd[] = { "st", NULL }; static const char *lockcmd[] = { "slock", NULL }; static const char *charsearchcmd[] = { "dmenu_charinput", dmenumon, NULL }; +static const char *filemanagercmd[] = { "pcmanfm", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_e, spawn, {.v = charsearchcmd } }, + { MODKEY, XK_o, spawn, {.v = filemanagercmd } }, { MODKEY|ControlMask, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ControlMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY|ControlMask, XK_l, spawn, {.v = lockcmd } },