add gdu scratchpad
ci/woodpecker/tag/woodpecker Pipeline was successful Details

This commit is contained in:
Luca Bilke 2024-02-29 02:21:52 +01:00
parent e99e6731f5
commit 2727ce50c7
No known key found for this signature in database
GPG Key ID: AD6630D0A1E650AC
1 changed files with 4 additions and 2 deletions

View File

@ -145,6 +145,7 @@ static const char *const autostart[] = {
static const char *spterm[] = { "t", TERM, "-n", "spterm", TERM_FLAG_EXEC, "tmux", NULL }; static const char *spterm[] = { "t", TERM, "-n", "spterm", TERM_FLAG_EXEC, "tmux", NULL };
static const char *spfile[] = { "f", TERM, "-n", "spfile", TERM_FLAG_EXEC, "lfX", NULL }; static const char *spfile[] = { "f", TERM, "-n", "spfile", TERM_FLAG_EXEC, "lfX", NULL };
static const char *spproc[] = { "p", TERM, "-n", "spproc", TERM_FLAG_EXEC, "btm", NULL }; static const char *spproc[] = { "p", TERM, "-n", "spproc", TERM_FLAG_EXEC, "btm", NULL };
static const char *spdisk[] = { "d", TERM, "-n", "spdisk", TERM_FLAG_EXEC, "gdu", NULL };
static const char *spvolm[] = { "v", TERM, "-n", "spvolm", TERM_FLAG_EXEC, "ncpamixer", NULL }; static const char *spvolm[] = { "v", TERM, "-n", "spvolm", TERM_FLAG_EXEC, "ncpamixer", NULL };
static const char *sphelp[] = { "h", TERM, "-n", "sphelp", TERM_FLAG_EXEC, "/bin/sh", "-c", "glow -p -s $XDG_CONFIG_HOME/glow/style.json /usr/share/dwm/dwm.md", NULL }; static const char *sphelp[] = { "h", TERM, "-n", "sphelp", TERM_FLAG_EXEC, "/bin/sh", "-c", "glow -p -s $XDG_CONFIG_HOME/glow/style.json /usr/share/dwm/dwm.md", NULL };
static const char *spinet[] = { "i", TERM, "-n", "spinet", TERM_FLAG_EXEC, "nmtui", NULL }; static const char *spinet[] = { "i", TERM, "-n", "spinet", TERM_FLAG_EXEC, "nmtui", NULL };
@ -176,6 +177,7 @@ static const Rule rules[] = {
RULE(.instance = "spcalc", .scratchkey = 'c', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 40% 80%") RULE(.instance = "spcalc", .scratchkey = 'c', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 40% 80%")
RULE(.instance = "spterm", .scratchkey = 't', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") RULE(.instance = "spterm", .scratchkey = 't', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%")
RULE(.instance = "spfile", .scratchkey = 'f', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") RULE(.instance = "spfile", .scratchkey = 'f', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%")
RULE(.instance = "spdisk", .scratchkey = 'd', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%")
RULE(.instance = "spproc", .scratchkey = 'p', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") RULE(.instance = "spproc", .scratchkey = 'p', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%")
RULE(.instance = "spwiki", .scratchkey = 'w', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") RULE(.instance = "spwiki", .scratchkey = 'w', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%")
RULE(.instance = "spvolm", .scratchkey = 'v', .isfloating = 1, .floatpos = "100% 100% 900W 600H") RULE(.instance = "spvolm", .scratchkey = 'v', .isfloating = 1, .floatpos = "100% 100% 900W 600H")
@ -359,9 +361,9 @@ static const Key keys[] = {
// { MODKEY | ShiftMask, XK_m, spawn, {.v = (const char *[]){NULL}} }, // { MODKEY | ShiftMask, XK_m, spawn, {.v = (const char *[]){NULL}} },
{ MODKEY, XK_w, togglescratch, {.v = spwiki} }, { MODKEY, XK_w, togglescratch, {.v = spwiki} },
// { MODKEY | ShiftMask, XK_w, spawn, {.v = (const char *[]){NULL}} }, // { MODKEY | ShiftMask, XK_w, spawn, {.v = (const char *[]){NULL}} },
{ MODKEY, XK_v, togglescratch, {.v = spcalc }}, { MODKEY, XK_v, togglescratch, {.v = spcalc} },
// { MODKEY | ShiftMask, XK_v, spawn, {.v = (const char *[]){NULL}} }, // { MODKEY | ShiftMask, XK_v, spawn, {.v = (const char *[]){NULL}} },
// { MODKEY, XK_z, spawn, {.v = (const char *[]){NULL}} }, { MODKEY, XK_z, togglescratch, {.v = spdisk} },
// { MODKEY | ShiftMask, XK_z, spawn, {.v = (const char *[]){NULL}} }, // { MODKEY | ShiftMask, XK_z, spawn, {.v = (const char *[]){NULL}} },
{ MODKEY, XK_space, spawn, {.v = termcmd} }, { MODKEY, XK_space, spawn, {.v = termcmd} },
{ MODKEY | ShiftMask, XK_space, togglescratch, {.v = spterm} }, { MODKEY | ShiftMask, XK_space, togglescratch, {.v = spterm} },