diff options
author | julian T <julian@jtle.dk> | 2018-12-20 18:01:00 +0100 |
---|---|---|
committer | julian T <julian@jtle.dk> | 2018-12-20 18:01:00 +0100 |
commit | 28ba57f1e557eb5408ba666d15af2797e0a1d841 (patch) | |
tree | 1ca3bd929312b76cd905ff294945db19349bed28 /config.h | |
parent | 0f7c157efaa0c2febf0531bfa6d2b6c29c492c06 (diff) |
Changes colors and added mediakeys
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 } } }; |