From e34303bfe1c9f39cc9de437713291ea5357c5e05 Mon Sep 17 00:00:00 2001 From: mrsu Date: Thu, 13 Jun 2024 11:46:54 +0100 Subject: [PATCH] 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 --- config.def.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 20889b8..5d1b442 100644 --- a/config.def.h +++ b/config.def.h @@ -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 } }, };