dotfiles

[void/arch] linux dotfiles
git clone git://git.mdnr.space/dotfiles
Log | Files | Refs

commit ac9e28c952df1bb2241bd3f96db61fdae492a38c
parent 9a6b6c1749dcf87d76a1c6d9b9f4fef14a0915ed
Author: mehdi-norouzi <mehdeenoroozi@gmail.com>
Date:   Thu, 15 Jun 2023 11:06:00 +0330

dwm: add shortcut for diary note scratch

Diffstat:
Msuckless/.local/src/dwm/config.h | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/suckless/.local/src/dwm/config.h b/suckless/.local/src/dwm/config.h @@ -35,10 +35,13 @@ 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", "spnote", "-g", "120x34", "-e", "nvim", "-c VimwikiMakeDiaryNote", NULL }; + static Sp scratchpads[] = { /* name cmd */ {"spterm", spcmd1}, {"spcalc", spcmd2}, + {"spnote", spcmd3}, }; /* tagging */ @@ -57,6 +60,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, "spnote", NULL, SPTAG(2), 1, 1, 0, -1 }, }; /* layout(s) */ @@ -218,7 +222,9 @@ static const Key keys[] = { /* V is automatically bound above in STACKKEYS */ { MODKEY, XK_b, togglebar, {0} }, /* { MODKEY|ShiftMask, XK_b, spawn, SHCMD("") }, */ - { MODKEY, XK_n, spawn, {.v = (const char*[]){ TERMINAL, "-e", "nvim", "-c", "VimwikiIndex", NULL } } }, +/* { MODKEY, XK_n, spawn, {.v = (const char*[]){ TERMINAL, "-e", "nvim", "-c", "VimwikiIndex", NULL } } }, */ + { MODKEY, XK_n, togglescratch, {.ui = 2} }, + { MODKEY|ShiftMask, XK_n, spawn, SHCMD(TERMINAL " -e newsboat ; pkill -RTMIN+6 dwmblocks") }, { MODKEY, XK_m, spawn, {.v = (const char*[]){ TERMINAL, "-e", "ncmpcpp", NULL } } }, { MODKEY|ShiftMask, XK_m, spawn, SHCMD("pamixer -t; kill -44 $(pidof dwmblocks)") },