From 28ba57f1e557eb5408ba666d15af2797e0a1d841 Mon Sep 17 00:00:00 2001 From: julian T Date: Thu, 20 Dec 2018 18:01:00 +0100 Subject: Changes colors and added mediakeys --- config.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index b85e6c4..ef67809 100644 --- a/config.h +++ b/config.h @@ -10,8 +10,8 @@ static const char dmenufont[] = "monospace:size=10"; static const char normbordercolor[] = "#444444"; static const char normbgcolor[] = "#222222"; static const char normfgcolor[] = "#bbbbbb"; -static const char selbordercolor[] = "#005577"; -static const char selbgcolor[] = "#005577"; +static const char selbordercolor[] = "#668166"; +static const char selbgcolor[] = "#668166"; static const char selfgcolor[] = "#eeeeee"; static const unsigned int borderpx = 3; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ @@ -85,6 +85,9 @@ static const char *mutevol[] = { "/usr/bin/pactl", "set-sink-mute", "0", "togg static const char *brightup[] = { "xbacklight", "-inc", "5", NULL}; static const char *brightdown[] = { "xbacklight", "-dec", "5", NULL}; static const char *exitXsession[] = { "/home/julian/.dwmSession.sh", "-e" }; +static const char *musicPause[] = {"dbus-send", "--print-reply", "--dest=org.mpris.MediaPlayer2.spotify", "/org/mpris/MediaPlayer2", "org.mpris.MediaPlayer2.Player.PlayPause"}; +static const char *musicPrev[] = {"dbus-send", "--print-reply", "--dest=org.mpris.MediaPlayer2.spotify", "/org/mpris/MediaPlayer2", "org.mpris.MediaPlayer2.Player.Previous"}; +static const char *musicNext[] = {"dbus-send", "--print-reply", "--dest=org.mpris.MediaPlayer2.spotify", "/org/mpris/MediaPlayer2", "org.mpris.MediaPlayer2.Player.Next"}; #define MODKEY Mod1Mask #define TAGKEYS(KEY,TAG) \ @@ -144,7 +147,10 @@ static Key keys[] = { { 0, XF86XK_AudioMute, spawn, {.v = mutevol } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightup } }, - { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdown } } + { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdown } }, + { 0, XF86XK_AudioPlay , spawn, {.v = musicPause } }, + { 0, XF86XK_AudioNext , spawn, {.v = musicNext } }, + { 0, XF86XK_AudioPrev , spawn, {.v = musicPrev } } }; -- cgit v1.2.3