diff options
-rw-r--r-- | config-laptop.h | 11 |
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 }; |