Add keybinfings
This commit is contained in:
parent
fe0b3cd2cd
commit
560e005686
12
config.def.h
12
config.def.h
@ -4,7 +4,7 @@
|
|||||||
static const unsigned int borderpx = 1; /* border pixel of windows */
|
static const unsigned int borderpx = 1; /* border pixel of windows */
|
||||||
static const unsigned int snap = 32; /* snap pixel */
|
static const unsigned int snap = 32; /* snap pixel */
|
||||||
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 = 0; /* 0 means bottom bar */
|
||||||
static const char *fonts[] = { "SauceCodePro Nerd Font Mono:size=20:antialias:true:autohint:true" };
|
static const char *fonts[] = { "SauceCodePro Nerd Font Mono:size=20:antialias:true:autohint:true" };
|
||||||
static const char color_black[] = "#1D2021";
|
static const char color_black[] = "#1D2021";
|
||||||
static const char color_green[] = "#98971A";
|
static const char color_green[] = "#98971A";
|
||||||
@ -60,6 +60,11 @@ static const char *termcmd[] = { "/usr/bin/xterm", NULL };
|
|||||||
static const char *lockcmd[] = { "/usr/bin/slock", NULL };
|
static const char *lockcmd[] = { "/usr/bin/slock", NULL };
|
||||||
static const char *mailcmd[] = { "/usr/bin/thunderbird", NULL };
|
static const char *mailcmd[] = { "/usr/bin/thunderbird", NULL };
|
||||||
static const char *webcmd[] = { "/usr/lib/firefox/firefox", NULL };
|
static const char *webcmd[] = { "/usr/lib/firefox/firefox", NULL };
|
||||||
|
static const char *volup[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL};
|
||||||
|
static const char *voldown[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL};
|
||||||
|
static const char *volmute[] = { "/usr/bin/pactl", "set-sink-mute", "0", "toggle", NULL};
|
||||||
|
static const char *brightup[] = { "/usr/bin/xbacklight", "-inc", "10%", NULL};
|
||||||
|
static const char *brightdown[] = { "/usr/bin/xbacklight", "-dec", "10%", NULL};
|
||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
@ -69,6 +74,11 @@ static Key keys[] = {
|
|||||||
{ MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } },
|
{ MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } },
|
||||||
{ MODKEY|ShiftMask, XK_m, spawn, {.v = mailcmd } },
|
{ MODKEY|ShiftMask, XK_m, spawn, {.v = mailcmd } },
|
||||||
{ MODKEY|ShiftMask, XK_w, spawn, {.v = webcmd } },
|
{ MODKEY|ShiftMask, XK_w, spawn, {.v = webcmd } },
|
||||||
|
{ 0, 0x1008ff02, spawn, {.v = brightup } },
|
||||||
|
{ 0, 0x1008ff03, spawn, {.v = brightdown } },
|
||||||
|
{ 0, 0x1008ff11, spawn, {.v = voldown } },
|
||||||
|
{ 0, 0x1008ff12, spawn, {.v = volmute } },
|
||||||
|
{ 0, 0x1008ff13, spawn, {.v = volup } },
|
||||||
{ MODKEY, XK_b, togglebar, {0} },
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||||
|
Loading…
Reference in New Issue
Block a user