summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2025-11-08 17:35:17 +0100
committerfilip <“filip.rabiega@gmail.com”>2025-11-08 17:35:17 +0100
commitfb90e71fdda7f764c6c1809f8ba15c7ca6a828b6 (patch)
tree44c7a1d04d8e658439dba51a3226ad8c7efa072e /config.def.h
parent262b9b157414f9cf19973e20b6e45d2370924386 (diff)
downloadchaddwm-fb90e71fdda7f764c6c1809f8ba15c7ca6a828b6.tar.gz
chaddwm-fb90e71fdda7f764c6c1809f8ba15c7ca6a828b6.tar.bz2
chaddwm-fb90e71fdda7f764c6c1809f8ba15c7ca6a828b6.zip
added sound control
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h112
1 files changed, 60 insertions, 52 deletions
diff --git a/config.def.h b/config.def.h
index 381deeb..19c5766 100644
--- a/config.def.h
+++ b/config.def.h
@@ -37,15 +37,15 @@ static const char *colors[][3] = {
/* tagging */
static const char *tags[] = { "1", "2", "3" };
-static const char *defaulttagapps[] = { "librewolf", "tabbed -c -r 2 st -w '' -e /usr/bin/zsh", "zathura" };
+static const char *defaulttagapps[] = { "librewolf", "st", "zathura" };
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
- /* class instance title tags mask isfloating monitor */
- { "Gimp", NULL, NULL, 0, 1, -1 },
+ /* class instance title tags mask isfloating monitor */
+ { "Gimp", NULL, NULL, 0, 1, -1 },
{ "Librewolf", NULL, NULL, 1 << 8, 0, -1 },
};
@@ -78,58 +78,66 @@ static const Layout layouts[] = {
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
-static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_black, "-nf", col_white, "-sb", col_green, "-sf", col_white, NULL };
-static const char *termcmd[] = { "tabbed", "-c", "-r", "2", "st", "-w", "''", "-e", "/usr/bin/zsh", NULL };
-static const char *mansplaincmd[] = { "mansplain" };
-static const char *launchcmd[] = { "launch" };
-static const char *maimcmd[] = { "maimpick" };
-static const char *slpcmd[] = { "slp" };
-static const char *viacmd[] = { "via" };
+static const char *termcmd[] = { "tabbed", "-c", "-r", "2", "st", "-w", "''", "-e", "/usr/bin/zsh", NULL };
+static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_black, "-nf", col_white, "-sb", col_green, "-sf", col_white, NULL };
+static const char *mansplaincmd[] = { "mansplain", NULL };
+static const char *notesplaincmd[] = { "notesplain", NULL };
+static const char *launchcmd[] = { "launch", NULL };
+static const char *maimcmd[] = { "maimpick", NULL };
+static const char *slpcmd[] = { "slp", NULL };
+static const char *viacmd[] = { "via", NULL };
+static const char *volumeupcmd[] = { "volume", "up", NULL };
+static const char *volumedowncmd[] = { "volume", "down", NULL };
+static const char *volumemutecmd[] = { "volume", "mute", NULL };
// static const char *termcmd[] = { "st", NULL };
static const Key keys[] = {
- /* modifier key function argument */
- { MODKEY, XK_p, spawn, {.v = launchcmd } },
- { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
- { MODKEY|ShiftMask, XK_s, spawn, {.v = maimcmd } },
- { MODKEY, XK_s, spawn, {.v = slpcmd } },
- { MODKEY, XK_u, spawndefault, {0} },
- { MODKEY, XK_b, togglebar, {0} },
- { MODKEY, XK_j, focusstack, {.i = +1 } },
- { MODKEY, XK_k, focusstack, {.i = -1 } },
- { MODKEY, XK_i, incnmaster, {.i = +1 } },
- { MODKEY, XK_d, incnmaster, {.i = -1 } },
- { MODKEY, XK_h, setmfact, {.f = -0.05} },
- { MODKEY, XK_l, setmfact, {.f = +0.05} },
- { MODKEY, XK_Return, zoom, {0} },
- { MODKEY, XK_q, view, {0} },
- { MODKEY|ShiftMask, XK_c, killclient, {0} },
- { MODKEY, XK_f, setlayout, {.v = &layouts[0]} },
- { MODKEY, XK_t, setlayout, {.v = &layouts[1]} },
- { MODKEY, XK_r, setlayout, {.v = &layouts[2]} },
- { MODKEY|ShiftMask, XK_r, setlayout, {.v = &layouts[3]} },
- { MODKEY, XK_m, spawn, {.v = mansplaincmd}},
- { MODKEY, XK_space, spawn, {.v = viacmd} },
- /* { MODKEY, XK_space, setlayout, {0} }, */
- { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
- { MODKEY|ShiftMask, XK_f, togglefullscr, {0} },
- { MODKEY, XK_0, view, {.ui = ~0 } },
- { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
- { MODKEY, XK_comma, focusmon, {.i = -1 } },
- { MODKEY, XK_period, focusmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
- { Mod1Mask, XK_Tab, altTabStart, {0} },
- TAGKEYS( XK_1, 0)
- TAGKEYS( XK_2, 1)
- TAGKEYS( XK_3, 2)
- TAGKEYS( XK_4, 3)
- TAGKEYS( XK_5, 4)
- TAGKEYS( XK_6, 5)
- TAGKEYS( XK_7, 6)
- TAGKEYS( XK_8, 7)
- TAGKEYS( XK_9, 8)
- { MODKEY|ShiftMask, XK_q, quit, {0} },
+ /* modifier key function argument */
+ { MODKEY, XK_p, spawn, {.v = launchcmd } },
+ { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
+ { MODKEY|ShiftMask, XK_s, spawn, {.v = maimcmd } },
+ { MODKEY, XK_s, spawn, {.v = slpcmd } },
+ { MODKEY, XK_u, spawndefault, {0} },
+ { MODKEY, XK_b, togglebar, {0} },
+ { MODKEY, XK_j, focusstack, {.i = +1 } },
+ { MODKEY, XK_k, focusstack, {.i = -1 } },
+ { MODKEY, XK_i, incnmaster, {.i = +1 } },
+ { MODKEY, XK_d, incnmaster, {.i = -1 } },
+ { MODKEY, XK_h, setmfact, {.f = -0.05} },
+ { MODKEY, XK_l, setmfact, {.f = +0.05} },
+ { MODKEY, XK_Return, zoom, {0} },
+ { MODKEY, XK_q, view, {0} },
+ { MODKEY|ShiftMask, XK_c, killclient, {0} },
+ { MODKEY, XK_f, setlayout, {.v = &layouts[0]} },
+ { MODKEY, XK_t, setlayout, {.v = &layouts[1]} },
+ { MODKEY, XK_r, setlayout, {.v = &layouts[2]} },
+ { MODKEY|ShiftMask, XK_r, setlayout, {.v = &layouts[3]} },
+ { MODKEY, XK_m, spawn, {.v = mansplaincmd}},
+ { MODKEY, XK_n, spawn, {.v = notesplaincmd}},
+ { MODKEY, XK_space, spawn, {.v = viacmd }},
+ { MODKEY, XK_Page_Up, spawn, {.v = volumeupcmd} },
+ { MODKEY, XK_Page_Down, spawn, {.v = volumedowncmd}},
+ { MODKEY|ShiftMask, XK_m, spawn, {.v = volumemutecmd}},
+ /* { MODKEY, XK_space, setlayout, {0} }, */
+ { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
+ { MODKEY|ShiftMask, XK_f, togglefullscr, {0} },
+ { MODKEY, XK_0, view, {.ui = ~0 } },
+ { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
+ { MODKEY, XK_comma, focusmon, {.i = -1 } },
+ { MODKEY, XK_period, focusmon, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
+ { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
+ { Mod1Mask, XK_Tab, altTabStart, {0} },
+ TAGKEYS( XK_1, 0)
+ TAGKEYS( XK_2, 1)
+ TAGKEYS( XK_3, 2)
+ TAGKEYS( XK_4, 3)
+ TAGKEYS( XK_5, 4)
+ TAGKEYS( XK_6, 5)
+ TAGKEYS( XK_7, 6)
+ TAGKEYS( XK_8, 7)
+ TAGKEYS( XK_9, 8)
+ { MODKEY|ShiftMask, XK_q, quit, {0}},
};
/* button definitions */