From e99e6731f5d645c1e3d938e24ed2b9923a978322 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Wed, 28 Feb 2024 20:06:28 +0100 Subject: [PATCH 1/5] rmb layoutmenu, float toggle keybind --- config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index a5bc748..2bb5c31 100644 --- a/config.h +++ b/config.h @@ -351,7 +351,7 @@ static const Key keys[] = { { MODKEY | ShiftMask, XK_j, pushstack, {.i = INC(+1)} }, { MODKEY, XK_k, focusstack, {.i = INC(-1)} }, { MODKEY | ShiftMask, XK_k, pushstack, {.i = INC(-1)} }, - // { MODKEY, XK_x, spawn, {.v = (const char *[]){NULL}} }, + { MODKEY, XK_x, togglefloating, {0} }, // { MODKEY | ShiftMask, XK_x, spawn, {.v = (const char *[]){NULL}} }, { MODKEY, XK_b, togglescratch, {.v = spinet} }, // { MODKEY | ShiftMask, XK_b, spawn, {.v = (const char *[]){NULL}} }, @@ -430,7 +430,7 @@ static const Key keys[] = { /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ static const Button buttons[] = { /* click event mask button function argument */ - { ClkLtSymbol, 0, Button1, layoutmenu, {0} }, + { ClkLtSymbol, 0, Button3, layoutmenu, {0} }, // { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, // { ClkWinTitle, 0, Button2, zoom, {0} }, { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, From 2727ce50c74a03a16613fad910ff6004e59ac1d3 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Thu, 29 Feb 2024 02:21:52 +0100 Subject: [PATCH 2/5] add gdu scratchpad --- config.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index 2bb5c31..a3eed99 100644 --- a/config.h +++ b/config.h @@ -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 *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 *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 *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 }; @@ -176,6 +177,7 @@ static const Rule rules[] = { 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 = "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 = "spwiki", .scratchkey = 'w', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") 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, XK_w, togglescratch, {.v = spwiki} }, // { 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, XK_z, spawn, {.v = (const char *[]){NULL}} }, + { MODKEY, XK_z, togglescratch, {.v = spdisk} }, // { MODKEY | ShiftMask, XK_z, spawn, {.v = (const char *[]){NULL}} }, { MODKEY, XK_space, spawn, {.v = termcmd} }, { MODKEY | ShiftMask, XK_space, togglescratch, {.v = spterm} }, From e382f460ca031c13f4d19541f84c900ed9f89a60 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Mon, 11 Mar 2024 00:40:16 +0100 Subject: [PATCH 3/5] update todo --- todo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo b/todo index 2ddcf7b..e62119b 100644 --- a/todo +++ b/todo @@ -1,3 +1,3 @@ # TODO: customize layoutmenu patch -# BUG: Renewing DWM doesn't kill autostart processes # TODO: increase stext buffer size for sb-cpu +# TODO: focus master hotkey From b806a347ecb79f5ae8c9b361f46f8406f1b49dc5 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 12 Mar 2024 20:33:13 +0100 Subject: [PATCH 4/5] change stcratchtag rules --- config.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/config.h b/config.h index a3eed99..e142cc7 100644 --- a/config.h +++ b/config.h @@ -142,15 +142,15 @@ static const char *const autostart[] = { 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 *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 *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 *spwiki[] = { "w", TERM, "-n", "spwiki", TERM_FLAG_EXEC, "zk", "edit", "-i", NULL }; -static const char *spcalc[] = { "c", TERM, "-n", "spcalc", TERM_FLAG_EXEC, "bc", "-li", NULL }; +static const char *spterm[] = { "t", TERM, "-c", "spterm", TERM_FLAG_EXEC, "tmux", NULL }; +static const char *spfile[] = { "f", TERM, "-c", "spfile", TERM_FLAG_EXEC, "lfX", NULL }; +static const char *spproc[] = { "p", TERM, "-c", "spproc", TERM_FLAG_EXEC, "btm", NULL }; +static const char *spdisk[] = { "d", TERM, "-c", "spdisk", TERM_FLAG_EXEC, "gdu", NULL }; +static const char *spvolm[] = { "v", TERM, "-c", "spvolm", TERM_FLAG_EXEC, "ncpamixer", NULL }; +static const char *sphelp[] = { "h", TERM, "-c", "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, "-c", "spinet", TERM_FLAG_EXEC, "nmtui", NULL }; +static const char *spwiki[] = { "w", TERM, "-c", "spwiki", TERM_FLAG_EXEC, "zk", "edit", "-i", NULL }; +static const char *spcalc[] = { "c", TERM, "-c", "spcalc", TERM_FLAG_EXEC, "bc", "-li", NULL }; static char *tagicons[][NUMTAGS] = { @@ -173,15 +173,15 @@ static const Rule rules[] = { RULE(.class = "mpv", .isfloating = 0) RULE(.class = "Ferdium", .monitor = 1, .tags = 1 << 0) RULE(.class = "Thunderbird", .monitor = 1, .tags = 1 << 1) - RULE(.instance = "sphelp", .scratchkey = 'h', .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 = "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 = "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 = "spinet", .scratchkey = 'i', .isfloating = 1, .floatpos = "100% 100% 800W 800H") + RULE(.class = "sphelp", .scratchkey = 'h', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 40% 80%") + RULE(.class = "spcalc", .scratchkey = 'c', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 40% 80%") + RULE(.class = "spterm", .scratchkey = 't', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") + RULE(.class = "spfile", .scratchkey = 'f', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") + RULE(.class "spdisk", .scratchkey = 'd', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") + RULE(.class "spproc", .scratchkey = 'p', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") + RULE(.class "spwiki", .scratchkey = 'w', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") + RULE(.class "spvolm", .scratchkey = 'v', .isfloating = 1, .floatpos = "100% 100% 900W 600H") + RULE(.class "spinet", .scratchkey = 'i', .isfloating = 1, .floatpos = "100% 100% 800W 800H") }; /* Bar rules allow you to configure what is shown where on the bar, as well as From 2e3b59765c35692436760ac5cab41e33be024671 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 12 Mar 2024 20:34:37 +0100 Subject: [PATCH 5/5] fix typo --- config.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config.h b/config.h index e142cc7..446fea4 100644 --- a/config.h +++ b/config.h @@ -177,11 +177,11 @@ static const Rule rules[] = { RULE(.class = "spcalc", .scratchkey = 'c', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 40% 80%") RULE(.class = "spterm", .scratchkey = 't', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") RULE(.class = "spfile", .scratchkey = 'f', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") - RULE(.class "spdisk", .scratchkey = 'd', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") - RULE(.class "spproc", .scratchkey = 'p', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") - RULE(.class "spwiki", .scratchkey = 'w', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") - RULE(.class "spvolm", .scratchkey = 'v', .isfloating = 1, .floatpos = "100% 100% 900W 600H") - RULE(.class "spinet", .scratchkey = 'i', .isfloating = 1, .floatpos = "100% 100% 800W 800H") + RULE(.class = "spdisk", .scratchkey = 'd', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") + RULE(.class = "spproc", .scratchkey = 'p', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") + RULE(.class = "spwiki", .scratchkey = 'w', .isfloating = 1, .iscentered = 1, .floatpos = "50% 50% 80% 80%") + RULE(.class = "spvolm", .scratchkey = 'v', .isfloating = 1, .floatpos = "100% 100% 900W 600H") + RULE(.class = "spinet", .scratchkey = 'i', .isfloating = 1, .floatpos = "100% 100% 800W 800H") }; /* Bar rules allow you to configure what is shown where on the bar, as well as