summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/config.h b/config.h
index a72ccc0..d6ef442 100644
--- a/config.h
+++ b/config.h
@@ -1,5 +1,5 @@
/* See LICENSE file for copyright and license details. */
-
+#include <X11/XF86keysym.h>
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int gappx = 3; /* gaps between windows */
@@ -12,7 +12,7 @@ static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display
static const int showsystray = 1; /* 0 means no systray */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
-static const char *fonts[] = { "monospace:size=10" };
+static const char *fonts[] = { "FontAwesome:size=10","monospace:size=10" };
static const char dmenufont[] = "monospace:size=10";
static char normbgcolor[] = "#222222";
static char normbordercolor[] = "#444444";
@@ -74,6 +74,13 @@ static const char scratchpadname[] = "scratchpad";
static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL };
static const char *screenshot[] = { "scrot", "-e", "mv $f ~/Bilder", NULL };
static const char *windowshot[] = { "scrot", "--focused", "-e", "mv $f ~/Bilder", NULL };
+static const char *brupcmd[] = { "xbacklight", "-inc", "5", NULL };
+static const char *brdowncmd[] = { "xbacklight", "-dec", "5", NULL };
+static const char *mutecmd[] = { "amixer", "-q", "set", "Master", "toggle", NULL };
+static const char *volupcmd[] = { "amixer", "-q", "set", "Master", "5%+", "unmute", NULL };
+static const char *voldowncmd[] = { "amixer", "-q", "set", "Master", "5%-", "unmute", NULL };
+static const char *dwmblocks[] = { "pkill", "-RTMIN+2", "dwmblocks", NULL };
+static const char *miccmd[] = { "amixer", "set", "Capture", "toggle", NULL };
static const Key keys[] = {
/* modifier key function argument */
@@ -119,6 +126,15 @@ static const Key keys[] = {
{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ 0, XK_Print, spawn, {.v = screenshot } },
{ Mod1Mask, XK_Print, spawn, {.v = windowshot } },
+ { 0, XF86XK_MonBrightnessUp, spawn, {.v = brupcmd} },
+ { 0, XF86XK_MonBrightnessDown, spawn, {.v = brdowncmd } },
+ { 0, XF86XK_AudioMute, spawn, {.v = mutecmd } },
+ { 0, XF86XK_AudioMute, spawn, {.v = dwmblocks } },
+ { 0, XF86XK_AudioLowerVolume, spawn, {.v = voldowncmd } },
+ { 0, XF86XK_AudioLowerVolume, spawn, {.v = dwmblocks } },
+ { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volupcmd } },
+ { 0, XF86XK_AudioRaiseVolume, spawn, {.v = dwmblocks } },
+ { 0, XF86XK_AudioMicMute, spawn, {.v = miccmd } },
};
/* button definitions */