added pcmanfm

This commit is contained in:
gutmet 2021-03-19 17:12:34 +01:00
parent fa7f66966b
commit cec41fd490
2 changed files with 6 additions and 2 deletions

View File

@ -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 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 key Mod+Ctrl+l to lock screen with slock
- added gutmet's dmenu_charinput to Mod+e to enter special unicode chars - 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

View File

@ -33,8 +33,9 @@ static const Rule rules[] = {
* WM_NAME(STRING) = title * WM_NAME(STRING) = title
*/ */
/* class instance title tags mask isfloating isterminal noswallow monitor */ /* class instance title tags mask isfloating isterminal noswallow monitor */
{ "Gimp", NULL, NULL, 0, 1, 0, 0, -1 }, { "Gimp", NULL, NULL, 0, 1, 0, 0, -1 },
{ "st-256color", NULL, NULL, 0, 0, 1, 0, -1 }, { "st-256color", NULL, NULL, 0, 0, 1, 0, -1 },
{ "Pcmanfm", NULL, NULL, 0, 0, 1, 0, -1 },
}; };
/* layout(s) */ /* 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 *termcmd[] = { "st", NULL };
static const char *lockcmd[] = { "slock", NULL }; static const char *lockcmd[] = { "slock", NULL };
static const char *charsearchcmd[] = { "dmenu_charinput", dmenumon, NULL }; static const char *charsearchcmd[] = { "dmenu_charinput", dmenumon, NULL };
static const char *filemanagercmd[] = { "pcmanfm", NULL };
static Key keys[] = { static Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
{ MODKEY, XK_e, spawn, {.v = charsearchcmd } }, { MODKEY, XK_e, spawn, {.v = charsearchcmd } },
{ MODKEY, XK_o, spawn, {.v = filemanagercmd } },
{ MODKEY|ControlMask, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ControlMask, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ControlMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY|ControlMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ControlMask, XK_l, spawn, {.v = lockcmd } }, { MODKEY|ControlMask, XK_l, spawn, {.v = lockcmd } },