chore: remove trayer
This commit is contained in:
parent
049d59cb62
commit
7b555451ae
262
config.def.h
262
config.def.h
@ -4,15 +4,22 @@
|
|||||||
static const unsigned int borderpx = 1; /* border pixel of windows */
|
static const unsigned int borderpx = 1; /* border pixel of windows */
|
||||||
static const unsigned int gappx = 6; /* gaps between windows */
|
static const unsigned int gappx = 6; /* gaps between windows */
|
||||||
static const unsigned int snap = 32; /* snap pixel */
|
static const unsigned int snap = 32; /* snap pixel */
|
||||||
static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
|
static const unsigned int systraypinning =
|
||||||
static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */
|
0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor
|
||||||
static const unsigned int systrayspacing = 4; /* systray spacing */
|
X */
|
||||||
static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
|
static const unsigned int systrayonleft =
|
||||||
|
0; /* 0: systray in the right corner, >0: systray on left of status text */
|
||||||
|
static const unsigned int systrayspacing = 3; /* systray spacing */
|
||||||
|
static const int systraypinningfailfirst =
|
||||||
|
1; /* 1: if pinning fails, display systray on the first monitor, False:
|
||||||
|
display systray on the last monitor*/
|
||||||
static const int showsystray = 1; /* 0 means no systray */
|
static const int showsystray = 1; /* 0 means no systray */
|
||||||
static const int showbar = 1; /* 0 means no bar */
|
static const int showbar = 1; /* 0 means no bar */
|
||||||
static const int topbar = 1; /* 0 means bottom bar */
|
static const int topbar = 1; /* 0 means bottom bar */
|
||||||
static const char *fonts[] = {"FiraCode Nerd Font:size=10:antialias=true:hinting=true"};
|
static const char *fonts[] = {
|
||||||
static const char dmenufont[] = "FiraCode Nerd Font:size=10:antialias=true:hinting=true";
|
"FiraCode Nerd Font:size=10:antialias=true:hinting=true"};
|
||||||
|
static const char dmenufont[] =
|
||||||
|
"FiraCode Nerd Font:size=10:antialias=true:hinting=true";
|
||||||
|
|
||||||
static const char norm_fg[] = "#D5C4A1";
|
static const char norm_fg[] = "#D5C4A1";
|
||||||
static const char norm_bg[] = "#262626";
|
static const char norm_bg[] = "#262626";
|
||||||
@ -39,7 +46,8 @@ static const Rule rules[] = {
|
|||||||
* WM_CLASS(STRING) = instance, class
|
* WM_CLASS(STRING) = instance, class
|
||||||
* WM_NAME(STRING) = title
|
* WM_NAME(STRING) = title
|
||||||
*/
|
*/
|
||||||
/* class instance title tags mask isfloating monitor */
|
/* class instance title tags mask isfloating
|
||||||
|
monitor */
|
||||||
{"firefox", NULL, NULL, 1 << 0, 0, -1},
|
{"firefox", NULL, NULL, 1 << 0, 0, -1},
|
||||||
{"thunderbird", NULL, NULL, 1 << 6, 0, -1},
|
{"thunderbird", NULL, NULL, 1 << 6, 0, -1},
|
||||||
{"org.mozilla.Thunderbird", NULL, NULL, 1 << 6, 0, -1},
|
{"org.mozilla.Thunderbird", NULL, NULL, 1 << 6, 0, -1},
|
||||||
@ -53,9 +61,12 @@ static const Rule rules[] = {
|
|||||||
/* layout(s) */
|
/* layout(s) */
|
||||||
static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */
|
static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */
|
||||||
static const int nmaster = 1; /* number of clients in master area */
|
static const int nmaster = 1; /* number of clients in master area */
|
||||||
static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */
|
static const int resizehints =
|
||||||
static const int lockfullscreen =1; /* 1 will force focus on the fullscreen window */
|
0; /* 1 means respect size hints in tiled resizals */
|
||||||
static const int refreshrate = 120; /* refresh rate (per second) for client move/resize */
|
static const int lockfullscreen =
|
||||||
|
1; /* 1 will force focus on the fullscreen window */
|
||||||
|
static const int refreshrate =
|
||||||
|
120; /* refresh rate (per second) for client move/resize */
|
||||||
|
|
||||||
static const Layout layouts[] = {
|
static const Layout layouts[] = {
|
||||||
/* symbol arrange function */
|
/* symbol arrange function */
|
||||||
@ -68,19 +79,27 @@ static const Layout layouts[] = {
|
|||||||
#define MODKEY Mod1Mask
|
#define MODKEY Mod1Mask
|
||||||
#define TAGKEYS(KEY, TAG) \
|
#define TAGKEYS(KEY, TAG) \
|
||||||
&((Keychord){1, {{MODKEY, KEY}}, view, {.ui = 1 << TAG}}), \
|
&((Keychord){1, {{MODKEY, KEY}}, view, {.ui = 1 << TAG}}), \
|
||||||
&((Keychord){1, {{MODKEY|ControlMask, KEY}}, toggleview, {.ui = 1 << TAG} }), \
|
&((Keychord){ \
|
||||||
|
1, {{MODKEY | ControlMask, KEY}}, toggleview, {.ui = 1 << TAG}}), \
|
||||||
&((Keychord){1, {{MODKEY | ShiftMask, KEY}}, tag, {.ui = 1 << TAG}}), \
|
&((Keychord){1, {{MODKEY | ShiftMask, KEY}}, tag, {.ui = 1 << TAG}}), \
|
||||||
&((Keychord){1, {{MODKEY|ControlMask|ShiftMask, KEY}}, toggletag, {.ui = 1 << TAG} }),
|
&((Keychord){1, \
|
||||||
|
{{MODKEY | ControlMask | ShiftMask, KEY}}, \
|
||||||
|
toggletag, \
|
||||||
|
{.ui = 1 << TAG}}),
|
||||||
|
|
||||||
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
||||||
#define SHCMD(cmd) { .v = (const char *[]) { "/bin/sh", "-c", cmd, NULL } }
|
#define SHCMD(cmd) \
|
||||||
|
{ \
|
||||||
|
.v = (const char *[]) { "/bin/sh", "-c", cmd, NULL } \
|
||||||
|
}
|
||||||
|
|
||||||
/* some defaults */
|
/* some defaults */
|
||||||
#define TERMINAL "st"
|
#define TERMINAL "st"
|
||||||
#define STATUSBAR "dwmblocks"
|
#define STATUSBAR "dwmblocks"
|
||||||
|
|
||||||
/* commands */
|
/* commands */
|
||||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
static char dmenumon[2] =
|
||||||
|
"0"; /* component of dmenucmd, manipulated in spawn() */
|
||||||
static const char *dmenucmd[] = {"dmenu_run", NULL};
|
static const char *dmenucmd[] = {"dmenu_run", NULL};
|
||||||
static const char *slockcmd[] = {"slock", NULL};
|
static const char *slockcmd[] = {"slock", NULL};
|
||||||
static const char *termcmd[] = {TERMINAL, "-e", "tmux-worker", NULL};
|
static const char *termcmd[] = {TERMINAL, "-e", "tmux-worker", NULL};
|
||||||
@ -90,9 +109,12 @@ static const char *termcmd[] = {TERMINAL, "-e", "tmux-worker", NULL
|
|||||||
#include <X11/XF86keysym.h>
|
#include <X11/XF86keysym.h>
|
||||||
|
|
||||||
static const Keychord *keychords[] = {
|
static const Keychord *keychords[] = {
|
||||||
/* modifier key chord function argument */
|
/* modifier key chord function
|
||||||
// &((Keychord){1, {{MODKEY, XK_}}, spawn, {} }),
|
argument */
|
||||||
&((Keychord){1, {{MODKEY | ControlMask | ShiftMask, XK_apostrophe}}, quit, {0} }),
|
// &((Keychord){1, {{MODKEY, XK_}}, spawn, {}
|
||||||
|
// }),
|
||||||
|
&((Keychord){
|
||||||
|
1, {{MODKEY | ControlMask | ShiftMask, XK_apostrophe}}, quit, {0}}),
|
||||||
&((Keychord){1, {{MODKEY | ShiftMask, XK_apostrophe}}, quit, {1}}),
|
&((Keychord){1, {{MODKEY | ShiftMask, XK_apostrophe}}, quit, {1}}),
|
||||||
|
|
||||||
&((Keychord){1, {{MODKEY, XK_apostrophe}}, killclient, {0}}),
|
&((Keychord){1, {{MODKEY, XK_apostrophe}}, killclient, {0}}),
|
||||||
@ -107,8 +129,14 @@ static const Keychord *keychords[] = {
|
|||||||
&((Keychord){1, {{MODKEY | ShiftMask, XK_h}}, shiftview, {.i = -1}}),
|
&((Keychord){1, {{MODKEY | ShiftMask, XK_h}}, shiftview, {.i = -1}}),
|
||||||
&((Keychord){1, {{MODKEY | ControlMask, XK_l}}, shiftboth, {.i = +1}}),
|
&((Keychord){1, {{MODKEY | ControlMask, XK_l}}, shiftboth, {.i = +1}}),
|
||||||
&((Keychord){1, {{MODKEY | ControlMask, XK_h}}, shiftboth, {.i = -1}}),
|
&((Keychord){1, {{MODKEY | ControlMask, XK_h}}, shiftboth, {.i = -1}}),
|
||||||
&((Keychord){1, {{MODKEY | ControlMask | ShiftMask, XK_l}}, shiftswaptags, {.i = +1} }),
|
&((Keychord){1,
|
||||||
&((Keychord){1, {{MODKEY | ControlMask | ShiftMask, XK_h}}, shiftswaptags, {.i = -1} }),
|
{{MODKEY | ControlMask | ShiftMask, XK_l}},
|
||||||
|
shiftswaptags,
|
||||||
|
{.i = +1}}),
|
||||||
|
&((Keychord){1,
|
||||||
|
{{MODKEY | ControlMask | ShiftMask, XK_h}},
|
||||||
|
shiftswaptags,
|
||||||
|
{.i = -1}}),
|
||||||
|
|
||||||
&((Keychord){1, {{MODKEY, XK_j}}, focusstack, {.i = +1}}),
|
&((Keychord){1, {{MODKEY, XK_j}}, focusstack, {.i = +1}}),
|
||||||
&((Keychord){1, {{MODKEY, XK_k}}, focusstack, {.i = -1}}),
|
&((Keychord){1, {{MODKEY, XK_k}}, focusstack, {.i = -1}}),
|
||||||
@ -121,9 +149,12 @@ static const Keychord *keychords[] = {
|
|||||||
&((Keychord){1, {{MODKEY, XK_Return}}, zoom, {0}}),
|
&((Keychord){1, {{MODKEY, XK_Return}}, zoom, {0}}),
|
||||||
&((Keychord){1, {{MODKEY, XK_Tab}}, view, {0}}),
|
&((Keychord){1, {{MODKEY, XK_Tab}}, view, {0}}),
|
||||||
|
|
||||||
&((Keychord){2, {{MODKEY, XK_w}, {MODKEY, XK_t}}, setlayout, {.v = &layouts[0]} }),
|
&((Keychord){
|
||||||
&((Keychord){2, {{MODKEY, XK_w}, {MODKEY, XK_m}}, setlayout, {.v = &layouts[1]} }),
|
2, {{MODKEY, XK_w}, {MODKEY, XK_t}}, setlayout, {.v = &layouts[0]}}),
|
||||||
&((Keychord){2, {{MODKEY, XK_w}, {MODKEY, XK_f}}, setlayout, {.v = &layouts[2]} }),
|
&((Keychord){
|
||||||
|
2, {{MODKEY, XK_w}, {MODKEY, XK_m}}, setlayout, {.v = &layouts[1]}}),
|
||||||
|
&((Keychord){
|
||||||
|
2, {{MODKEY, XK_w}, {MODKEY, XK_f}}, setlayout, {.v = &layouts[2]}}),
|
||||||
&((Keychord){1, {{MODKEY, XK_F11}}, fullscreen, {0}}),
|
&((Keychord){1, {{MODKEY, XK_F11}}, fullscreen, {0}}),
|
||||||
&((Keychord){1, {{MODKEY, XK_space}}, setlayout, {0}}),
|
&((Keychord){1, {{MODKEY, XK_space}}, setlayout, {0}}),
|
||||||
&((Keychord){1, {{MODKEY | ShiftMask, XK_space}}, togglefloating, {0}}),
|
&((Keychord){1, {{MODKEY | ShiftMask, XK_space}}, togglefloating, {0}}),
|
||||||
@ -136,62 +167,158 @@ static const Keychord *keychords[] = {
|
|||||||
&((Keychord){1, {{MODKEY | ShiftMask, XK_comma}}, tagmon, {.i = -1}}),
|
&((Keychord){1, {{MODKEY | ShiftMask, XK_comma}}, tagmon, {.i = -1}}),
|
||||||
&((Keychord){1, {{MODKEY | ShiftMask, XK_period}}, tagmon, {.i = +1}}),
|
&((Keychord){1, {{MODKEY | ShiftMask, XK_period}}, tagmon, {.i = +1}}),
|
||||||
|
|
||||||
&((Keychord){1, {{MODKEY | ShiftMask, XK_s}}, spawn, {.v = (const char *[]){"sysact", NULL}} }),
|
&((Keychord){1,
|
||||||
|
{{MODKEY | ShiftMask, XK_s}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"sysact", NULL}}}),
|
||||||
|
|
||||||
&((Keychord){1, {{MODKEY | ShiftMask, XK_o}}, spawn, {.v = (const char *[]){"set-default-sink", NULL}} }),
|
&((Keychord){1,
|
||||||
&((Keychord){1, {{MODKEY | ShiftMask, XK_i}}, spawn, {.v = (const char *[]){"set-default-source", NULL}} }),
|
{{MODKEY | ShiftMask, XK_o}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"set-default-sink", NULL}}}),
|
||||||
|
&((Keychord){1,
|
||||||
|
{{MODKEY | ShiftMask, XK_i}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"set-default-source", NULL}}}),
|
||||||
|
|
||||||
&((Keychord){2, {{MODKEY, XK_m}, {MODKEY, XK_a}}, spawn, {.v = (const char *[]){"dmenumusic", NULL}} }),
|
&((Keychord){2,
|
||||||
&((Keychord){2, {{MODKEY, XK_m}, {MODKEY, XK_p}}, spawn, {.v = (const char *[]){"mpc", "toggle", NULL}} }),
|
{{MODKEY, XK_m}, {MODKEY, XK_a}},
|
||||||
&((Keychord){2, {{MODKEY, XK_m}, {MODKEY, XK_l}}, spawn, {.v = (const char *[]){"mpc", "next", NULL}} }),
|
spawn,
|
||||||
&((Keychord){2, {{MODKEY, XK_m}, {MODKEY, XK_h}}, spawn, {.v = (const char *[]){"mpc", "prev", NULL}} }),
|
{.v = (const char *[]){"dmenumusic", NULL}}}),
|
||||||
&((Keychord){1, {{MODKEY, XF86XK_AudioPlay}}, spawn, {.v = (const char *[]){"mpc", "toggle", NULL}} }),
|
&((Keychord){2,
|
||||||
&((Keychord){1, {{MODKEY, XF86XK_AudioNext}}, spawn, {.v = (const char *[]){"mpc", "next", NULL}} }),
|
{{MODKEY, XK_m}, {MODKEY, XK_p}},
|
||||||
&((Keychord){1, {{MODKEY, XF86XK_AudioPrev}}, spawn, {.v = (const char *[]){"mpc", "prev", NULL}} }),
|
spawn,
|
||||||
|
{.v = (const char *[]){"mpc", "toggle", NULL}}}),
|
||||||
|
&((Keychord){2,
|
||||||
|
{{MODKEY, XK_m}, {MODKEY, XK_l}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"mpc", "next", NULL}}}),
|
||||||
|
&((Keychord){2,
|
||||||
|
{{MODKEY, XK_m}, {MODKEY, XK_h}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"mpc", "prev", NULL}}}),
|
||||||
|
&((Keychord){1,
|
||||||
|
{{MODKEY, XF86XK_AudioPlay}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"mpc", "toggle", NULL}}}),
|
||||||
|
&((Keychord){1,
|
||||||
|
{{MODKEY, XF86XK_AudioNext}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"mpc", "next", NULL}}}),
|
||||||
|
&((Keychord){1,
|
||||||
|
{{MODKEY, XF86XK_AudioPrev}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"mpc", "prev", NULL}}}),
|
||||||
|
|
||||||
&((Keychord){2, {{MODKEY, XK_o}, {MODKEY, XK_l}}, spawn, {.v = (const char *[]){TERMINAL, "-e", "lf", NULL}} }),
|
&((Keychord){2,
|
||||||
&((Keychord){2, {{MODKEY, XK_o}, {MODKEY, XK_f}}, spawn, {.v = (const char *[]){"firefox", NULL}} }),
|
{{MODKEY, XK_o}, {MODKEY, XK_l}},
|
||||||
&((Keychord){2, {{MODKEY, XK_o}, {MODKEY, XK_n}}, spawn, {.v = (const char *[]){TERMINAL, "-e", "ncmpcpp", NULL}} }),
|
spawn,
|
||||||
&((Keychord){2, {{MODKEY, XK_o}, {MODKEY, XK_m}}, spawn, {.v = (const char *[]){TERMINAL, "-e", "gotop", NULL}} }),
|
{.v = (const char *[]){TERMINAL, "-e", "lf", NULL}}}),
|
||||||
&((Keychord){2, {{MODKEY, XK_o}, {MODKEY, XK_t}}, spawn, {.v = (const char *[]){"thunar", NULL}} }),
|
&((Keychord){2,
|
||||||
&((Keychord){2, {{MODKEY, XK_o}, {MODKEY, XK_c}}, spawn, {.v = (const char *[]){"calcurse-select", NULL}} }),
|
{{MODKEY, XK_o}, {MODKEY, XK_f}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"firefox", NULL}}}),
|
||||||
|
&((Keychord){2,
|
||||||
|
{{MODKEY, XK_o}, {MODKEY, XK_n}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){TERMINAL, "-e", "ncmpcpp", NULL}}}),
|
||||||
|
&((Keychord){2,
|
||||||
|
{{MODKEY, XK_o}, {MODKEY, XK_m}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){TERMINAL, "-e", "gotop", NULL}}}),
|
||||||
|
&((Keychord){2,
|
||||||
|
{{MODKEY, XK_o}, {MODKEY, XK_t}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"thunar", NULL}}}),
|
||||||
|
&((Keychord){2,
|
||||||
|
{{MODKEY, XK_o}, {MODKEY, XK_c}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"calcurse-select", NULL}}}),
|
||||||
|
|
||||||
&((Keychord){2, {{MODKEY, XK_d}, {MODKEY, XK_h}}, spawn, {.v = (const char *[]){"dmenuhandler", NULL}} }),
|
&((Keychord){2,
|
||||||
&((Keychord){2, {{MODKEY, XK_d}, {MODKEY, XK_m}}, spawn, {.v = (const char *[]){"mounter", NULL}} }),
|
{{MODKEY, XK_d}, {MODKEY, XK_h}},
|
||||||
&((Keychord){2, {{MODKEY, XK_d}, {MODKEY, XK_c}}, spawn, {.v = (const char *[]){"dmenumountcifs", NULL}} }),
|
spawn,
|
||||||
&((Keychord){2, {{MODKEY, XK_d}, {MODKEY, XK_u}}, spawn, {.v = (const char *[]){"unmounter", NULL}} }),
|
{.v = (const char *[]){"dmenuhandler", NULL}}}),
|
||||||
&((Keychord){2, {{MODKEY, XK_d}, {MODKEY, XK_s}}, spawn, {.v = (const char *[]){"dmenusearch", "duckduckgo", NULL}} }),
|
&((Keychord){2,
|
||||||
&((Keychord){2, {{MODKEY, XK_d}, {MODKEY, XK_l}}, spawn, {.v = (const char *[]){"linkhandler", NULL}} }),
|
{{MODKEY, XK_d}, {MODKEY, XK_m}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"mounter", NULL}}}),
|
||||||
|
&((Keychord){2,
|
||||||
|
{{MODKEY, XK_d}, {MODKEY, XK_c}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"dmenumountcifs", NULL}}}),
|
||||||
|
&((Keychord){2,
|
||||||
|
{{MODKEY, XK_d}, {MODKEY, XK_u}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"unmounter", NULL}}}),
|
||||||
|
&((Keychord){2,
|
||||||
|
{{MODKEY, XK_d}, {MODKEY, XK_s}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"dmenusearch", "duckduckgo", NULL}}}),
|
||||||
|
&((Keychord){2,
|
||||||
|
{{MODKEY, XK_d}, {MODKEY, XK_l}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"linkhandler", NULL}}}),
|
||||||
|
|
||||||
&((Keychord){2, {{MODKEY, XK_d}, {MODKEY, XK_b}}, spawn, SHCMD("dmenu-bluetooth -i -l 25") }),
|
&((Keychord){2,
|
||||||
|
{{MODKEY, XK_d}, {MODKEY, XK_b}},
|
||||||
|
spawn,
|
||||||
|
SHCMD("dmenu-bluetooth -i -l 25")}),
|
||||||
|
|
||||||
&((Keychord){1, {{MODKEY | ShiftMask, XK_t}}, spawn, SHCMD("trayer-toggle trayer --edge top --align center --widthtype request " "--padding 6 --SetDockType true --SetPartialStrut true --expand " "true --transparent true --alpha 0 --tint 0x262626 --height 18 &") }),
|
&((Keychord){1,
|
||||||
|
{{MODKEY | ControlMask, XK_period}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"sd", NULL}}}),
|
||||||
|
|
||||||
&((Keychord){1, {{MODKEY | ControlMask, XK_period}}, spawn, {.v = (const char *[]){"sd", NULL}} }),
|
&((Keychord){1,
|
||||||
|
{{MODKEY, XK_f}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"screenlayout", NULL}}}),
|
||||||
|
|
||||||
&((Keychord){1, {{MODKEY, XK_f}}, spawn, {.v = (const char *[]){"screenlayout", NULL}} }),
|
&((Keychord){1,
|
||||||
|
{{MODKEY, XK_F1}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"kbswitcher", NULL}}}),
|
||||||
|
|
||||||
&((Keychord){1, {{MODKEY, XK_F1}}, spawn, {.v = (const char *[]){"kbswitcher", NULL}} }),
|
&((Keychord){
|
||||||
|
1,
|
||||||
|
{{0, XF86XK_AudioMute}},
|
||||||
|
spawn,
|
||||||
|
SHCMD("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -37 $(pidof "
|
||||||
|
"dwmblocks)")}),
|
||||||
|
&((Keychord){
|
||||||
|
1,
|
||||||
|
{{0, XF86XK_AudioRaiseVolume}},
|
||||||
|
spawn,
|
||||||
|
SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; kill -37 $(pidof "
|
||||||
|
"dwmblocks)")}),
|
||||||
|
&((Keychord){
|
||||||
|
1,
|
||||||
|
{{0, XF86XK_AudioLowerVolume}},
|
||||||
|
spawn,
|
||||||
|
SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; kill -37 $(pidof "
|
||||||
|
"dwmblocks)")}),
|
||||||
|
&((Keychord){
|
||||||
|
1,
|
||||||
|
{{0, XF86XK_AudioMicMute}},
|
||||||
|
spawn,
|
||||||
|
SHCMD("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle; kill -37 $(pidof "
|
||||||
|
"dwmblocks)")}),
|
||||||
|
&((Keychord){
|
||||||
|
1, {{MODKEY, XK_v}}, spawn, {.v = (const char *[]){"setvol", NULL}}}),
|
||||||
|
|
||||||
&((Keychord){1, {{0, XF86XK_AudioMute}}, spawn, SHCMD("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -37 $(pidof " "dwmblocks)") }),
|
&((Keychord){1,
|
||||||
&((Keychord){1, {{0, XF86XK_AudioRaiseVolume}}, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; kill -37 $(pidof " "dwmblocks)") }),
|
{{0, XF86XK_MonBrightnessUp}},
|
||||||
&((Keychord){1, {{0, XF86XK_AudioLowerVolume}}, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; kill -37 $(pidof " "dwmblocks)") }),
|
spawn,
|
||||||
&((Keychord){1, {{0, XF86XK_AudioMicMute}}, spawn, SHCMD("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle; kill -37 $(pidof " "dwmblocks)") }),
|
{.v = (const char *[]){"mod_backlight", "up", NULL}}}),
|
||||||
&((Keychord){1, {{MODKEY, XK_v}}, spawn, {.v = (const char *[]){"setvol", NULL}} }),
|
&((Keychord){1,
|
||||||
|
{{0, XF86XK_MonBrightnessDown}},
|
||||||
|
spawn,
|
||||||
|
{.v = (const char *[]){"mod_backlight", "down", NULL}}}),
|
||||||
|
|
||||||
&((Keychord){1, {{0, XF86XK_MonBrightnessUp}}, spawn, {.v = (const char *[]){"mod_backlight", "up", NULL}} }),
|
TAGKEYS(XK_1, 0) TAGKEYS(XK_2, 1) TAGKEYS(XK_3, 2) TAGKEYS(XK_4, 3)
|
||||||
&((Keychord){1, {{0, XF86XK_MonBrightnessDown}}, spawn, {.v = (const char *[]){"mod_backlight", "down", NULL}} }),
|
TAGKEYS(XK_5, 4) TAGKEYS(XK_6, 5) TAGKEYS(XK_7, 6) TAGKEYS(XK_8, 7)
|
||||||
|
TAGKEYS(XK_9, 8)};
|
||||||
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)
|
|
||||||
};
|
|
||||||
|
|
||||||
/* button definitions */
|
/* button definitions */
|
||||||
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
|
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
|
||||||
@ -215,4 +342,3 @@ static Button buttons[] = {
|
|||||||
{ClkTagBar, MODKEY, Button1, tag, {0}},
|
{ClkTagBar, MODKEY, Button1, tag, {0}},
|
||||||
{ClkTagBar, MODKEY, Button3, toggletag, {0}},
|
{ClkTagBar, MODKEY, Button3, toggletag, {0}},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user