diff options
author | ZachIR <zachir@librem.one> | 2021-06-04 16:09:57 -0500 |
---|---|---|
committer | ZachIR <zachir@librem.one> | 2021-06-04 16:09:57 -0500 |
commit | 409a12708a63591dec68c57037f658ff75aebbb5 (patch) | |
tree | 3c36f5c304e1d89d42d1969f3137a41921d649f8 | |
parent | eec9aa04786c0240c690e6a9997b0167f558f571 (diff) |
Change scratchpads to use Alacritty, add scratchpad for 'ping', don't use tabbed, and fix env issue with neomutt
-rw-r--r-- | config.h | 27 |
1 files changed, 20 insertions, 7 deletions
@@ -30,12 +30,22 @@ typedef struct { const char *name; const void *cmd; } Sp; -const char *spcmd1[] = { "st", "-g", "150x50", "-n", "sphtop", "-e", "htop", NULL }; -const char *spcmd2[] = { "st", "-g", "150x50", "-n", "spterm", NULL }; -const char *spcmd3[] = { "st", "-g", "150x50", "-n", "sppm", "-e", "pulsemixer", NULL }; -const char *spcmd4[] = { "st", "-g", "150x50", "-n", "spbt", "-e", "bluetoothctl", NULL }; -const char *spcmd5[] = { "st", "-g", "150x50", "-n", "spncmp", "-e", "ncmpcpp", NULL }; -const char *spcmd6[] = { "st", "-g", "150x50", "-n", "spmutt", "-e", "neomutt", NULL }; +/* + * const char *spcmd1[] = { "st", "-g", "150x50", "-n", "sphtop", "-e", "htop", NULL }; + * const char *spcmd2[] = { "st", "-g", "150x50", "-n", "spterm", NULL }; + * const char *spcmd3[] = { "st", "-g", "150x50", "-n", "sppm", "-e", "pulsemixer", NULL }; + * const char *spcmd4[] = { "st", "-g", "150x50", "-n", "spbt", "-e", "bluetoothctl", NULL }; + * const char *spcmd5[] = { "st", "-g", "150x50", "-n", "spncmp", "-e", "ncmpcpp", NULL }; + * const char *spcmd6[] = { "st", "-g", "150x50", "-n", "spmutt", "-e", "neomutt", NULL }; + * const char *spcmd7[] = { "st", "-g", "150x50", "-n", "spng", "-e", "ping", "1.1.1.1", NULL }; + */ +const char *spcmd1[] = { "alacritty", "--class", "sphtop", "-e", "htop", NULL }; +const char *spcmd2[] = { "alacritty", "--class", "spterm", NULL }; +const char *spcmd3[] = { "alacritty", "--class", "sppm", "-e", "pulsemixer", NULL }; +const char *spcmd4[] = { "alacritty", "--class", "spbt", "-e", "bluetoothctl", NULL }; +const char *spcmd5[] = { "alacritty", "--class", "spncmp", "-e", "ncmpcpp", NULL }; +const char *spcmd6[] = { "alacritty", "--class", "spmutt", "-e", "zsh", "-c", "neomutt", NULL }; +const char *spcmd7[] = { "alacritty", "--class", "spng", "-e", "ping", "1.1.1.1", NULL }; static Sp scratchpads[] = { { "sphtop", spcmd1 }, { "spterm", spcmd2 }, @@ -43,6 +53,7 @@ static Sp scratchpads[] = { { "spbt", spcmd4 }, { "spncmp", spcmd5 }, { "spmutt", spcmd6 }, + { "spng", spcmd7 }, }; /* tagging */ @@ -84,6 +95,7 @@ static const Rule rules[] = { { NULL, "spbt", NULL, SPTAG(3),1, 1, 1, -1 }, { NULL, "spncmp",NULL, SPTAG(4),1, 1, 1, -1 }, { NULL, "spmutt",NULL, SPTAG(5),1, 1, 1, -1 }, + { NULL, "spng", NULL, SPTAG(6),1, 1, 1, -1 }, }; /* layout(s) */ @@ -115,7 +127,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* static const char *rmenucmd[] = { "/usr/sbin/j4-dmenu-desktop", NULL }; */ /* 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[] = { "tabbed", "-c", "st", "-w", NULL }; +static const char *termcmd[] = { "alacritty", 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 }; */ @@ -146,6 +158,7 @@ static Key keys[] = { { MODKEY|ControlMask, XK_v, togglescratch, {.ui = 3 } }, { MODKEY|ControlMask, XK_b, togglescratch, {.ui = 4 } }, { MODKEY|ControlMask, XK_a, togglescratch, {.ui = 5 } }, + { MODKEY|ControlMask, XK_s, togglescratch, {.ui = 6 } }, // { 0, XF86XK_AudioPlay, spawn, {.v = mpdtoggle } }, // { 0, XF86XK_AudioNext, spawn, {.v = mpdnext } }, // { 0, XF86XK_AudioPrev, spawn, {.v = mpdprev } }, |