summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authoraleksav013 <aleksav013@gmail.com>2021-05-18 09:02:18 +0200
committerAleksa Vuckovic <aleksa@vuckovic.cc>2023-12-06 05:05:49 +0100
commitae5f6468c73e1fbb142d4d9356945fe6ad4fb77e (patch)
tree1c0ff4140e824edd97127ff9cd80c677492318c8 /config.def.h
parent36396519d6cf427ec04d1b56ccb4259bb97c5961 (diff)
XF86keysym
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index d2e901b..841a708 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,3 +1,17 @@
+/**
+ * dwmconfig.h
+ * Hardware multimedia keys
+ */
+/* Somewhere at the beginning of config.h include: */
+
+/*
+ You obviously need the X11 development package installed, but here is the upstream copy
+ of this header if you can't bother using the contents of your own hard drive. ;-P
+ https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h
+*/
+
+#include <X11/XF86keysym.h>
+
/* See LICENSE file for copyright and license details. */
/* appearance */
@@ -5,7 +19,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
-static const char *fonts[] = { "Liberation Mono:size=10" };
+static const char *fonts[] = { "xft:Inconsolata Nerd Font Mono:style=Bold:pixelsize=14:antialias=true" /*"Liberation Mono:size=10"*/ };
static const char dmenufont[] = "monospace:size=10";
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
@@ -95,6 +109,14 @@ static const Key keys[] = {
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
+
+ { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("/usr/bin/pamixer -d 5;kill -44 $(pidof dwmblocks)") },
+ { 0, XF86XK_AudioMute, spawn, SHCMD("/usr/bin/pamixer -t;kill -44 $(pidof dwmblocks)") },
+ { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("/usr/bin/pamixer -i 5;kill -44 $(pidof dwmblocks)") },
+ { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("/usr/bin/xbacklight -inc 5;kill -40 $(pidof dwmblocks)") },
+ { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("/usr/bin/xbacklight -dec 5;kill -40 $(pidof dwmblocks)") },
+
+
};
/* button definitions */