Compare commits
No commits in common. "dddc54c15e47daec8805e2101efed7ea0f15e15c" and "4d41dd530c41226ab6617ac4b3c5cf765a2c672e" have entirely different histories.
dddc54c15e
...
4d41dd530c
28
config.def.h
28
config.def.h
@ -57,33 +57,27 @@ 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_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
|
||||
static const char *termcmd[] = { "alacritty", NULL };
|
||||
static const char *termcmd[] = { "kitty", NULL };
|
||||
static const char *slockcmd[] = { "slock", NULL };
|
||||
// Brightness commands
|
||||
static const char *brightness[3][4] = { {
|
||||
"xbacklight", "-inc", "5"
|
||||
}, {
|
||||
"xbacklight", "-dec", "5"
|
||||
}
|
||||
};
|
||||
static const char *brightness[2][3] = {{"backlight_control", "+5", NULL}, {"backlight_control", "-5", NULL}};
|
||||
// Volume Commands
|
||||
static const char *volume[3][4] = { {
|
||||
"pamixer", "-i", "10"
|
||||
"amixer", "set", "Master", "10%+"
|
||||
},{
|
||||
"pamixer", "-d", "10"
|
||||
"amixer", "set", "Master", "10%-"
|
||||
},{
|
||||
"pamixer", "--toggle-mute"
|
||||
"amixer", "set", "Master", "toggle"
|
||||
}
|
||||
};
|
||||
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
{ MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } },
|
||||
{ 0, 233, spawn, {.v = brightness[0]} },
|
||||
{ 0, 232, spawn, {.v = brightness[1]} },
|
||||
{ 0, 123, spawn, {.v = volume[0]} },
|
||||
{ 0, 122, spawn, {.v = volume[1]} },
|
||||
{ 0, 121, spawn, {.v = volume[2]} },
|
||||
{ MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } },
|
||||
{ 0, 233, spawn, {.v = brightness[0]} },
|
||||
{ 0, 232, spawn, {.v = brightness[1]} },
|
||||
{ 0, 123, spawn, {.v = volume[0]} },
|
||||
{ 0, 122, spawn, {.v = volume[1]} },
|
||||
{ 0, 121, spawn, {.v = volume[2]} },
|
||||
{ MODKEY, 33, spawn, {.v = dmenucmd } }, // p
|
||||
{ MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, // Return
|
||||
{ MODKEY, 56, togglebar, {0} }, // b
|
||||
|
28
config.h
28
config.h
@ -57,33 +57,27 @@ 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_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
|
||||
static const char *termcmd[] = { "alacritty", NULL };
|
||||
static const char *termcmd[] = { "kitty", NULL };
|
||||
static const char *slockcmd[] = { "slock", NULL };
|
||||
// Brightness commands
|
||||
static const char *brightness[3][4] = { {
|
||||
"xbacklight", "-inc", "5"
|
||||
}, {
|
||||
"xbacklight", "-dec", "5"
|
||||
}
|
||||
};
|
||||
static const char *brightness[2][3] = {{"backlight_control", "+5", NULL}, {"backlight_control", "-5", NULL}};
|
||||
// Volume Commands
|
||||
static const char *volume[3][4] = { {
|
||||
"pamixer", "-i", "10"
|
||||
"amixer", "set", "Master", "10%+"
|
||||
},{
|
||||
"pamixer", "-d", "10"
|
||||
"amixer", "set", "Master", "10%-"
|
||||
},{
|
||||
"pamixer", "--toggle-mute"
|
||||
"amixer", "set", "Master", "toggle"
|
||||
}
|
||||
};
|
||||
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
{ MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } },
|
||||
{ 0, 233, spawn, {.v = brightness[0]} },
|
||||
{ 0, 232, spawn, {.v = brightness[1]} },
|
||||
{ 0, 123, spawn, {.v = volume[0]} },
|
||||
{ 0, 122, spawn, {.v = volume[1]} },
|
||||
{ 0, 121, spawn, {.v = volume[2]} },
|
||||
{ MODKEY|ShiftMask, 46, spawn, {.v = slockcmd } },
|
||||
{ 0, 233, spawn, {.v = brightness[0]} },
|
||||
{ 0, 232, spawn, {.v = brightness[1]} },
|
||||
{ 0, 123, spawn, {.v = volume[0]} },
|
||||
{ 0, 122, spawn, {.v = volume[1]} },
|
||||
{ 0, 121, spawn, {.v = volume[2]} },
|
||||
{ MODKEY, 33, spawn, {.v = dmenucmd } }, // p
|
||||
{ MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, // Return
|
||||
{ MODKEY, 56, togglebar, {0} }, // b
|
||||
|
Loading…
Reference in New Issue
Block a user