Update scratchpad configurations and rules.

- Modify size of spterm4 and add new scratchpads spterm5 and spterm6
- Update rules to include new scratchpads
- Add keybindings for new scratchpads in the keys array
This commit is contained in:
mrsu 2024-06-13 11:46:54 +01:00
parent 658b7e2f86
commit e34303bfe1
1 changed files with 9 additions and 1 deletions

View File

@ -50,7 +50,9 @@ const char *spcmd0[] = {"st", "-n", "spterm0", "-T", "scratchpad (y)", "-g", "15
const char *spcmd1[] = {"st", "-n", "spterm1", "-T", "scratchpad (u)", "-g", "150x50", NULL };
const char *spcmd2[] = {"st", "-n", "spterm2", "-T", "scratchpad (i)", "-g", "150x50", NULL };
const char *spcmd3[] = {"st", "-n", "spterm3", "-T", "color-chooser", "-g", "90x30", "kcolorchooser", NULL };
const char *spcmd4[] = {"st", "-n", "spterm4", "-T", "clipboard-view", "-g", "140x50", "dmenu-clipper", NULL };
const char *spcmd4[] = {"st", "-n", "spterm4", "-T", "clipboard-view", "-g", "150x50", "dmenu-clipper", NULL };
const char *spcmd5[] = {"st", "-n", "spterm5", "-T", "ai-assistant", "-g", "150x50", "aichat-wrapper", NULL };
const char *spcmd6[] = {"st", "-n", "spterm6", "-T", "clipboard-image-view", "-g", "150x50", "nsxiv-clipboard-copy", "/tmp/clipboard/images", NULL };
static Sp scratchpads[] = {
/* name cmd */
{"spterm0", spcmd0},
@ -58,6 +60,8 @@ static Sp scratchpads[] = {
{"spterm2", spcmd2},
{"spterm3", spcmd3},
{"spterm4", spcmd4},
{"spterm5", spcmd5},
{"spterm6", spcmd6},
};
@ -79,6 +83,8 @@ static const Rule rules[] = {
{ NULL, "spterm2", NULL, SPTAG(2), 1, 1, 0 -1 },
{ NULL, "spterm3", NULL, SPTAG(3), 1, 1, 0 -1 },
{ NULL, "spterm4", NULL, SPTAG(4), 1, 1, 0 -1 },
{ NULL, "spterm5", NULL, SPTAG(5), 1, 1, 0 -1 },
{ NULL, "spterm6", NULL, SPTAG(6), 1, 1, 0 -1 },
{ NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
};
@ -157,6 +163,8 @@ static const Key keys[] = {
{ MODKEY, XK_i, togglescratch, {.ui = 2 } },
{ MODKEY, XK_c, togglescratch, {.ui = 3 } },
{ MODKEY|ShiftMask, XK_c, togglescratch, {.ui = 4 } },
{ MODKEY, XK_a, togglescratch, {.ui = 5 } },
{ MODKEY, XK_p, togglescratch, {.ui = 6 } },
{ MODKEY, XK_o, togglescratch, {.ui = -1 } },
};