summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2021-06-17 21:28:59 -0500
committerzachir <zachir@librem.one>2021-06-17 21:33:22 -0500
commitb7cef58e4f3c1caf3e361957aaeac263c94eefb9 (patch)
tree5cde73ce23ba5209caf93e117bfa75f49b20e238
parent631bcee3d0ea470171f23c041b3babdaaadd0d0d (diff)
Use class for scratchpad instead of title, add ping scratchpad, and binding for tcl layout
-rw-r--r--config.h44
1 files changed, 20 insertions, 24 deletions
diff --git a/config.h b/config.h
index 4eff169..34c086b 100644
--- a/config.h
+++ b/config.h
@@ -30,22 +30,13 @@ 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 *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 };
+const char *spcmd1[] = { "st", "-g", "150x50", "-c", "sphtop", "-e", "htop", NULL };
+const char *spcmd2[] = { "st", "-g", "150x50", "-c", "spterm", NULL };
+const char *spcmd3[] = { "st", "-g", "150x50", "-c", "sppm", "-e", "pulsemixer", NULL };
+const char *spcmd4[] = { "st", "-g", "150x50", "-c", "spbt", "-e", "bluetoothctl", NULL };
+const char *spcmd5[] = { "st", "-g", "150x50", "-c", "spncmp", "-e", "ncmpcpp", NULL };
+const char *spcmd6[] = { "st", "-g", "150x50", "-c", "spmutt", "-e", "neomutt", NULL };
+const char *spcmd7[] = { "st", "-g", "150x50", "-c", "spping", "-e", "ping", "1.1.1.1", NULL };
static Sp scratchpads[] = {
{ "sphtop", spcmd1 },
{ "spterm", spcmd2 },
@@ -53,7 +44,7 @@ static Sp scratchpads[] = {
{ "spbt", spcmd4 },
{ "spncmp", spcmd5 },
{ "spmutt", spcmd6 },
- { "spng", spcmd7 },
+ { "spping", spcmd7 },
};
/* tagging */
@@ -89,13 +80,14 @@ static const Rule rules[] = {
{ NULL, NULL, "steam", 4, 0, 0, 0, -1 },
{ "Lutris", NULL, NULL, 2, 0, 0, 0, -1 },
{ "lutris", NULL, NULL, 2, 0, 0, 0, -1 },
- { NULL, "sphtop",NULL, SPTAG(0),1, 1, 1, -1 },
- { NULL, "spterm",NULL, SPTAG(1),1, 1, 1, -1 },
- { NULL, "sppm", NULL, SPTAG(2),1, 1, 1, -1 },
- { 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 },
+ { "sphtop", NULL, NULL, SPTAG(0),1, 1, 1, -1 },
+ { "spterm", NULL, NULL, SPTAG(1),1, 1, 1, -1 },
+ { "sppm", NULL, NULL, SPTAG(2),1, 1, 1, -1 },
+ { "spbt", NULL, NULL, SPTAG(3),1, 1, 1, -1 },
+ { "spncmp", NULL, NULL, SPTAG(4),1, 1, 1, -1 },
+ { "spmutt", NULL, NULL, SPTAG(5),1, 1, 1, -1 },
+ { "spping", NULL, NULL, SPTAG(6),1, 1, 1, -1 },
+ { NULL, "monero-wallet-gui",NULL, 256, 1, 0, 0, -1 },
};
/* layout(s) */
@@ -104,11 +96,13 @@ static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static int attachbelow = 1; /* 1 means attach after the currently active window */
+#include "tcl.c"
static const Layout layouts[] = {
/* symbol arrange function */
{ "[]=", tile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
+ { "|||", tcl },
};
/* key definitions */
@@ -190,6 +184,7 @@ static Key keys[] = {
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_s, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
+ { MODKEY, XK_e, setlayout, {.v = &layouts[3]} },
/* { MODKEY|ShiftMask, XK_space, setlayout, {-1} }, */
{ MODKEY, XK_space, togglefloating, {0} },
{ MODKEY, XK_f, togglefullscr, {0} },
@@ -279,6 +274,7 @@ tagall(const Arg *arg)
/* trigger signals using `xsetroot -name "fsignal:<signame> [<type> <value>]"` */
static Signal signals[] = {
/* signum function */
+ { "togglescratch", togglescratch },
{ "focusstack", focusstack },
{ "setmfact", setmfact },
{ "togglebar", togglebar },