summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorCraig Jennings <craigmartinjennings@gmail.com>2023-07-23 12:05:47 -0500
committerCraig Jennings <craigmartinjennings@gmail.com>2023-07-23 12:05:47 -0500
commitc41ac9002c08a8b16521161c8a3daf2a004483c7 (patch)
treec180a52f3b01caa47c4751c3ec3597b932bbd3e8 /config.def.h
parentf1f3dad880045cbf0b53e463ae0733ced6b237f4 (diff)
parent49dd3cde1a957cf554fa1f36c72ba3227888c24c (diff)
Merge branch 'main' of cjennings.net:dwm
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h36
1 files changed, 14 insertions, 22 deletions
diff --git a/config.def.h b/config.def.h
index ba484f2..802d633 100644
--- a/config.def.h
+++ b/config.def.h
@@ -38,31 +38,25 @@ typedef struct {
const void *cmd;
} Sp;
-/*
- Kitty does not take the -g flag, so geometry has to be set by
- overriding the config file settings. Example below:
-const char *spcmd1[] = {"kitty", "--class", "spaudio", "-o", "initial_window_width=120c", "-o", "initial_window_height=35c", "-e", "pulsemixer", NULL };
-const char *spcmd2[] = {"kitty", "--class", "spnet", "-o", "initial_window_width=120c", "-o", "initial_window_height=35c", "-e", "nmtui", NULL };
-const char *spcmd3[] = {"kitty", "--class", "spmp", "-o", "initial_window_width=120c", "-o", "initial_window_height=35c", "-e", "ncmpcpp", NULL };
-const char *spcmd4[] = {"kitty", "--class", "spbt", "-o", "initial_window_width=120c", "-o", "initial_window_height=35c", "-e", "tremc", NULL };
-const char *spcmd5[] = {"kitty", "--class", "spterm", "-o", "initial_window_width=120c", "-o", "initial_window_height=35c", "-e", "tmux", NULL };
-const char *spcmd6[] = {"kitty", "--class", "spfm", "-o", "initial_window_width=120c", "-o", "initial_window_height=35c", "-e", "lf", NULL };
-const char *spcmd6[] = {"kitty", "--class", "spmon", "-o", "initial_window_width=120c", "-o", "initial_window_height=35c", "-e", "htop", NULL };
-*/
+const char *spcmd1[] = {"wezterm", "start", "--class", "spaudio", "-e", "mixertui", NULL };
+const char *spcmd2[] = {"wezterm", "start", "--class", "spmon", "-e", "htop", NULL };
+const char *spcmd3[] = {"wezterm", "start", "--class", "spmp", "-e", "ncmpcpp", NULL };
+const char *spcmd4[] = {"wezterm", "start", "--class", "spbt", "-e", "tremc", NULL };
+const char *spcmd5[] = {"wezterm", "start", "--class", "spterm", "-e", "tmux", NULL };
+const char *spcmd6[] = {"wezterm", "start", "--class", "spfm", "-e", "lf", NULL };
/*
- St and terminals which take a -g flag should take this format:
-*/
+ St and Xterm take a -g flag:
const char *spcmd1[] = {"st", "-n", "spaudio", "-g", "120x35", "-e", "mixertui", NULL };
-const char *spcmd2[] = {"st", "-n", "spnet", "-g", "80x40", "-e", "nmtui", NULL };
+const char *spcmd2[] = {"st", "-n", "spmon", "-g", "120x35", "-e", "htop", NULL };
const char *spcmd3[] = {"st", "-n", "spmp", "-g", "120x35", "-e", "ncmpcpp", NULL };
const char *spcmd4[] = {"st", "-n", "spbt", "-g", "120x35", "-e", "tremc", NULL };
const char *spcmd5[] = {"st", "-n", "spterm", "-g", "120x35", "-e", "tmux", NULL };
const char *spcmd6[] = {"st", "-n", "spfm", "-g", "120x35", "-e", "lf", NULL };
-const char *spcmd7[] = {"st", "-n", "spmon", "-g", "120x35", "-e", "htop", NULL };
+*/
/*...and this is how to add a gui app to a scratchpad
const char *spcmd5[] = {"keepassxc", NULL };
@@ -71,12 +65,11 @@ const char *spcmd7[] = {"st", "-n", "spmon", "-g", "120x35", "-e", "htop",
static Sp scratchpads[] = {
/* name cmd */
{"spaudio", spcmd1},
- {"spnet", spcmd2},
+ {"spmon", spcmd2},
{"spmp", spcmd3},
{"spbt", spcmd4},
{"spterm", spcmd5},
{"spfm", spcmd6},
- {"spmon", spcmd7},
/* {"keepassxc", spcmd3}, */
};
@@ -102,8 +95,8 @@ static const Rule rules[] = {
{ "Alarm-clock-applet", NULL, NULL, 0, 1, 0, 0, -1 },
{ "Firefox", NULL, NULL, 0, 0, 0, -1, -1 },
{ "st", NULL, NULL, 0, 0, 1, 0, -1 },
- { "kitty", NULL, NULL, 0, 0, 1, 0, -1 },
{ "XTerm", NULL, NULL, 0, 0, 1, 0, -1 },
+ { "wezterm", NULL, NULL, 0, 0, 1, 0, -1 },
{ NULL, "spaudio", NULL, SPTAG(0), 1, 0, 0, -1 },
{ NULL, "spnet", NULL, SPTAG(1), 1, 0, 0, -1 },
{ NULL, "spmp", NULL, SPTAG(2), 1, 0, 0, -1 },
@@ -147,8 +140,8 @@ static const Layout layouts[] = {
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 *termcmd[] = { "st", NULL };
-static const char *editorcmd[] = { "emacs", NULL };
+static const char *termcmd[] = { "wezterm", NULL };
+static const char *editorcmd[] = { "em", NULL };
static const char *browsercmd[] = { "firefox", NULL };
static const char *calccmd[] = { "gnome-calculator", NULL };
@@ -197,12 +190,11 @@ static Key keys[] = {
{ MODKEY, XK_equal, setgaps, {.i = +5 } },
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
{ MODKEY, XK_a, togglescratch, {.ui = 0 } },
- { MODKEY, XK_n, togglescratch, {.ui = 1 } },
+ { MODKEY, XK_m, togglescratch, {.ui = 1 } },
{ MODKEY, XK_slash, togglescratch, {.ui = 2 } },
{ MODKEY|ShiftMask, XK_b, togglescratch, {.ui = 3 } },
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 4 } },
{ MODKEY, XK_f, togglescratch, {.ui = 5 } },
- { MODKEY, XK_m, togglescratch, {.ui = 6 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)