Skip to content

Commit

Permalink
Memo scratchpad hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
pablojimpas committed Jul 12, 2023
1 parent 9fe8d38 commit ed0816d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ typedef struct {
} Sp;
const char *spcmd1[] = {TERMINAL, "-n", "spterm", "-g", "120x34", NULL };
const char *spcmd2[] = {TERMINAL, "-n", "spcalc", "-f", "monospace:size=16", "-g", "50x20", "-e", "bc", "-lq", NULL };
const char *spcmd3[] = {TERMINAL, "-n", "spmemo", "-f", "monospace:size=14", "-g", "120x40", "-e", "memo", NULL };
static Sp scratchpads[] = {
/* name cmd */
{"spterm", spcmd1},
{"spcalc", spcmd2},
{"spmemo", spcmd3},
};

/* tagging */
Expand All @@ -59,6 +61,7 @@ static const Rule rules[] = {
{ TERMCLASS, "bg", NULL, 1 << 7, 0, 1, 0, -1 },
{ TERMCLASS, "spterm", NULL, SPTAG(0), 1, 1, 0, -1 },
{ TERMCLASS, "spcalc", NULL, SPTAG(1), 1, 1, 0, -1 },
{ TERMCLASS, "spmemo", NULL, SPTAG(2), 1, 1, 0, -1 },
};

/* layout(s) */
Expand Down Expand Up @@ -208,6 +211,7 @@ static const Key keys[] = {
{ MODKEY, XK_apostrophe, togglescratch, {.ui = 1} },
/* { MODKEY|ShiftMask, XK_apostrophe, spawn, SHCMD("") }, */
{ MODKEY|ShiftMask, XK_apostrophe, togglesmartgaps, {0} },
{ MODKEY, XK_exclamdown, togglescratch, {.ui = 2} },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0} },

Expand Down

0 comments on commit ed0816d

Please sign in to comment.