aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2018-10-27 11:44:23 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2018-10-27 11:44:23 +0200
commit394003e76522eb73ea7f1f92fd55550ec75e58fa (patch)
tree334a35710ad70be1531684809280cfbd7f312a95
parent756ba9ed665a4624217c9db42704ef014129c27b (diff)
Added pulseaudio to laptop config
-rw-r--r--config-laptop.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/config-laptop.h b/config-laptop.h
index 6734688..ad18d4f 100644
--- a/config-laptop.h
+++ b/config-laptop.h
@@ -10,6 +10,10 @@
#define TPAD 0x1008FF4A /* Trackpad lock */
#define PRINT 0x1008FF5D /* Print screen */
+// audio output key bindings
+//#define ALSA
+#define PULSEAUDIO
+
/* appearance */
static const char font[] = "DVIcons:size=8";
@@ -117,9 +121,16 @@ static const char *editorcmd[] = { "gedit", NULL };
static const char *scrotcmd[] = { "scrot", "/home/eddy/screenshots/%Y-%m-%d-%H:%M:%S.png", NULL };
static const char *lockcmd[] = { "i3lock", "-c", "000000", NULL };
+#if defined(ALSA)
static const char *lowervolumecmd[] = { "amixer", "-q", "set", "Master", "2dB-", NULL };
static const char *raisevolumecmd[] = { "amixer", "-q", "set", "Master", "2dB+", NULL };
static const char *mutevolumecmd[] = { "amixer", "-q", "set", "Master", "toggle", NULL };
+#elif defined(PULSEAUDIO)
+static const char *lowervolumecmd[] = { "pactl", "set-sink-volume", "0", "+2%", NULL };
+static const char *raisevolumecmd[] = { "pactl", "set-sink-volume", "0", "-2%", NULL };
+static const char *mutevolumecmd[] = { "pactl", "set-sink-mute", "0", "toggle", NULL };
+#endif
+
static const char *raisebrightness[] = { "xbacklight", "-set", "20", NULL };
static const char *lowerbrightness[] = { "xbacklight", "-set", "1", NULL };
static const char *toggletrackpad[] = { "toggle-trackpad", NULL };