From 95b2cf4422a6a85a371de9b048e7645895713b86 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 9 Aug 2022 23:23:03 -0500 Subject: renumber spcmd, add two more (todo and tremc) --- config.h | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/config.h b/config.h index 644913b..adea87d 100644 --- a/config.h +++ b/config.h @@ -30,23 +30,27 @@ typedef struct { const char *name; const void *cmd; } Sp; -const char *spcmd1[] = { "st", "-g", "100x33", "-c", "sphtop", "-e", "htop", NULL }; -const char *spcmd2[] = { "st", "-g", "100x33", "-c", "spterm", NULL }; -const char *spcmd3[] = { "st", "-g", "100x33", "-c", "sppmxr", "-e", "pulsemixer", NULL }; -const char *spcmd4[] = { "st", "-g", "100x33", "-c", "spxmrw", "-e", "xmrzachir", NULL }; -const char *spcmd5[] = { "st", "-g", "100x33", "-c", "spncmp", "-e", "ncmpcpp", NULL }; -const char *spcmd6[] = { "st", "-g", "100x33", "-c", "spmutt", "-e", "zsh", "-c", "neomutt", NULL }; -const char *spcmd7[] = { "st", "-g", "100x33", "-c", "spxmpp", "-e", "profanity", NULL }; -const char *spcmd8[] = { "st", "-g", "100x33", "-c", "spircc", "-e", "irssi", NULL }; +const char *spcmd0[] = { "st", "-g", "100x33", "-c", "sphtop", "-e", "htop", NULL }; +const char *spcmd1[] = { "st", "-g", "100x33", "-c", "spterm", NULL }; +const char *spcmd2[] = { "st", "-g", "100x33", "-c", "sppmxr", "-e", "pulsemixer", NULL }; +const char *spcmd3[] = { "st", "-g", "100x33", "-c", "spblue", "-e", "bluetoothctl", NULL }; +const char *spcmd4[] = { "st", "-g", "100x33", "-c", "spncmp", "-e", "ncmpcpp", NULL }; +const char *spcmd5[] = { "st", "-g", "100x33", "-c", "spmutt", "-e", "zsh", "-c", "neomutt", NULL }; +const char *spcmd6[] = { "st", "-g", "100x33", "-c", "spxmpp", "-e", "profanity", NULL }; +const char *spcmd7[] = { "st", "-g", "100x33", "-c", "spircc", "-e", "irssi", NULL }; +const char *spcmd8[] = { "st", "-g", "100x33", "-c", "sptodo", "-e", "todo", NULL }; +const char *spcmd9[] = { "st", "-g", "100x33", "-c", "sptrmc", "-e", "tremc", NULL }; static Sp scratchpads[] = { - { "sphtop", spcmd1 }, - { "spterm", spcmd2 }, - { "sppmxr", spcmd3 }, - { "spxmrw", spcmd4 }, - { "spncmp", spcmd5 }, - { "spmutt", spcmd6 }, - { "spxmpp", spcmd7 }, - { "spircc", spcmd8 }, + { "sphtop", spcmd0 }, + { "spterm", spcmd1 }, + { "sppmxr", spcmd2 }, + { "spblue", spcmd3 }, + { "spncmp", spcmd4 }, + { "spmutt", spcmd5 }, + { "spxmpp", spcmd6 }, + { "spircc", spcmd7 }, + { "sptodo", spcmd8 }, + { "sptrmc", spcmd9 }, }; /* tagging */ @@ -90,6 +94,8 @@ static const Rule rules[] = { { "spmutt", NULL, NULL, SPTAG(5), 1, 1, 1, -1 }, { "spxmpp", NULL, NULL, SPTAG(6), 1, 1, 1, -1 }, { "spircc", NULL, NULL, SPTAG(7), 1, 1, 1, -1 }, + { "sptodo", NULL, NULL, SPTAG(8), 1, 1, 1, -1 }, + { "sptrmc", NULL, NULL, SPTAG(9), 1, 1, 1, -1 }, { NULL, "monero-wallet-gui",NULL, 256, 1, 0, 0, -1 }, }; @@ -128,7 +134,7 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, /* static const char *passmenu[] = { "passmenu", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; */ static const char *termcmd[] = { "st", NULL }; /* static const char *termcmd[] = { "alacritty", NULL }; */ -static const char *sxhkdsig[] = { "pkill", "-USR1", "sxhkd", NULL }; +static const char *sxhkdsig[] = { "doas", "pkill", "-HUP", "swhkd", NULL }; /* static const char *mpdtoggle[] = { "playerctl", "--player=mpd,mpv,%any", "play-pause", NULL }; */ /* static const char *mpdnext[] = { "playerctl", "--player=mpd,mpv,%any", "next", NULL }; */ /* static const char *mpdprev[] = { "playerctl", "--player=mpd,mpv,%any", "previous", NULL }; */ @@ -161,6 +167,8 @@ static Key keys[] = { { MODKEY|ControlMask, XK_a, togglescratch, {.ui = 5 } }, { MODKEY|ControlMask, XK_s, togglescratch, {.ui = 6 } }, { MODKEY|ControlMask, XK_d, togglescratch, {.ui = 7 } }, + { MODKEY|ControlMask, XK_f, togglescratch, {.ui = 8 } }, + { MODKEY|ControlMask, XK_g, togglescratch, {.ui = 9 } }, { MODKEY, XK_Escape, spawn, {.v = sxhkdsig } }, // { 0, XF86XK_AudioPlay, spawn, {.v = mpdtoggle } }, // { 0, XF86XK_AudioNext, spawn, {.v = mpdnext } }, -- cgit v1.2.3