diff options
author | zachir <zachir@librem.one> | 2021-03-20 23:17:37 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2021-03-20 23:17:37 -0500 |
commit | dad17ed7e8f24740110d4b64633d0193a84935e0 (patch) | |
tree | 159d03f159f7b43e105cbd545d4971f8babe3374 /config.def.h | |
parent | 83e1c9d0268af712e9f56ab1515d9d21d062f5fb (diff) |
Add scratchpads (htop, term, pulsemixer, bluetoothctl, ncmpcpp)
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h index 8bfef3e..9b6eba9 100644 --- a/config.def.h +++ b/config.def.h @@ -24,6 +24,19 @@ static const char *colors[][3] = { [SchemeSel] = { col_gray4, col_cyan, col_cyan }, }; +typedef struct { + const char *name; + const void *cmd; +} Sp; +const char *spcmd1[] = {"st", "-n", "sphtop", "-g", "120x34", NULL }; +const char *spcmd2[] = {"st", "-n", "spst", "-g", "120x34", NULL }; +const char *spcmd3[] = {"st", "-n", "sppm", "-g", "120x34", NULL }; +static Sp scratchpads[] = { + {"sphtop", spcmd1}, + {"spst", spcmd2}, + {"sppm", spcmd3}, +}; + /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; @@ -33,10 +46,13 @@ 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 }, - { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1, -1 }, - { "st", NULL, NULL, 0, 0, 1, -1, -1 }, - { NULL, NULL, "Event Tester", 0, 1, 0, 1, -1 }, /* xev */ + { "Gimp", NULL, NULL, 0, 1, 0, 0, -1 }, + { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1, -1 }, + { "st", NULL, NULL, 0, 0, 1, -1, -1 }, + { NULL, NULL, "Event Tester", 0, 1, 0, 1, -1 }, /* xev */ + { NULL, "sphtop", NULL, SPTAG(0), 1, 1, 1, -1 }, + { NULL, "spst", NULL, SPTAG(1), 1, 1, 1, -1 }, + { NULL, "sppm", NULL, SPTAG(2), 1, 1, 1, -1 }, }; /* layout(s) */ @@ -68,6 +84,7 @@ 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 *termcmd[] = { "st", NULL }; + static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, @@ -97,6 +114,9 @@ static Key keys[] = { { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + { MODKEY, XK_y, togglescratch, {.ui = 0 } }, + { MODKEY, XK_u, togglescratch, {.ui = 1 } }, + { MODKEY, XK_x, togglescratch, {.ui = 2 } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) @@ -122,7 +142,7 @@ static Button buttons[] = { { ClkStatusText, 0, Button3, sigdwmblocks, {.i = 3} }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, + { ClkClientWin, MODKEY, Button1, resizemouse, {0} }, { ClkTagBar, 0, Button1, view, {0} }, { ClkTagBar, 0, Button3, toggleview, {0} }, { ClkTagBar, MODKEY, Button1, tag, {0} }, |