Compare commits

..

2 Commits

Author SHA1 Message Date
dddc54c15e
update 2022-12-12 15:59:14 +01:00
b5d419b69d
update 2022-12-08 22:52:36 +00:00
6 changed files with 34 additions and 22 deletions

View File

@ -57,27 +57,33 @@ static const Layout layouts[] = {
/* 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", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; 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[] = { "kitty", NULL }; static const char *termcmd[] = { "alacritty", NULL };
static const char *slockcmd[] = { "slock", NULL }; static const char *slockcmd[] = { "slock", NULL };
static const char *brightness[2][3] = {{"backlight_control", "+5", NULL}, {"backlight_control", "-5", NULL}}; // Brightness commands
static const char *brightness[3][4] = { {
"xbacklight", "-inc", "5"
}, {
"xbacklight", "-dec", "5"
}
};
// Volume Commands // Volume Commands
static const char *volume[3][4] = { { static const char *volume[3][4] = { {
"amixer", "set", "Master", "10%+" "pamixer", "-i", "10"
},{ },{
"amixer", "set", "Master", "10%-" "pamixer", "-d", "10"
},{ },{
"amixer", "set", "Master", "toggle" "pamixer", "--toggle-mute"
} }
}; };
static const Key keys[] = { static const Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
{ MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } }, { MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } },
{ 0, 233, spawn, {.v = brightness[0]} }, { 0, 233, spawn, {.v = brightness[0]} },
{ 0, 232, spawn, {.v = brightness[1]} }, { 0, 232, spawn, {.v = brightness[1]} },
{ 0, 123, spawn, {.v = volume[0]} }, { 0, 123, spawn, {.v = volume[0]} },
{ 0, 122, spawn, {.v = volume[1]} }, { 0, 122, spawn, {.v = volume[1]} },
{ 0, 121, spawn, {.v = volume[2]} }, { 0, 121, spawn, {.v = volume[2]} },
{ MODKEY, 33, spawn, {.v = dmenucmd } }, // p { MODKEY, 33, spawn, {.v = dmenucmd } }, // p
{ MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, // Return { MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, // Return
{ MODKEY, 56, togglebar, {0} }, // b { MODKEY, 56, togglebar, {0} }, // b

View File

@ -57,27 +57,33 @@ static const Layout layouts[] = {
/* 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", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; 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[] = { "kitty", NULL }; static const char *termcmd[] = { "alacritty", NULL };
static const char *slockcmd[] = { "slock", NULL }; static const char *slockcmd[] = { "slock", NULL };
static const char *brightness[2][3] = {{"backlight_control", "+5", NULL}, {"backlight_control", "-5", NULL}}; // Brightness commands
static const char *brightness[3][4] = { {
"xbacklight", "-inc", "5"
}, {
"xbacklight", "-dec", "5"
}
};
// Volume Commands // Volume Commands
static const char *volume[3][4] = { { static const char *volume[3][4] = { {
"amixer", "set", "Master", "10%+" "pamixer", "-i", "10"
},{ },{
"amixer", "set", "Master", "10%-" "pamixer", "-d", "10"
},{ },{
"amixer", "set", "Master", "toggle" "pamixer", "--toggle-mute"
} }
}; };
static const Key keys[] = { static const Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
{ MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } }, { MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } },
{ 0, 233, spawn, {.v = brightness[0]} }, { 0, 233, spawn, {.v = brightness[0]} },
{ 0, 232, spawn, {.v = brightness[1]} }, { 0, 232, spawn, {.v = brightness[1]} },
{ 0, 123, spawn, {.v = volume[0]} }, { 0, 123, spawn, {.v = volume[0]} },
{ 0, 122, spawn, {.v = volume[1]} }, { 0, 122, spawn, {.v = volume[1]} },
{ 0, 121, spawn, {.v = volume[2]} }, { 0, 121, spawn, {.v = volume[2]} },
{ MODKEY, 33, spawn, {.v = dmenucmd } }, // p { MODKEY, 33, spawn, {.v = dmenucmd } }, // p
{ MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, // Return { MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, // Return
{ MODKEY, 56, togglebar, {0} }, // b { MODKEY, 56, togglebar, {0} }, // b

BIN
drw.o

Binary file not shown.

BIN
dwm

Binary file not shown.

BIN
dwm.o

Binary file not shown.

BIN
util.o

Binary file not shown.