Introduction
Introduction Statistics Contact Development Disclaimer Help
tAdd bindings for controlling remote mpd - dwm - [fork] customized build of dwm…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit b6024f867f246210ef7afcb7577e74249bc0ee35
parent 984baf23f974c47a28cefe78cef012ffdd9e7827
Author: Anders Damsgaard <[email protected]>
Date: Wed, 12 Aug 2020 19:11:03 +0200
Add bindings for controlling remote mpd
Diffstat:
M config.h | 12 ++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/config.h b/config.h
t@@ -77,6 +77,7 @@ static char dmenumon[2] = "0";
#define ALTTERMINAL "st-light"
#define EDITOR "vi"
#define BROWSER "surf-open.sh"
+#define MPD_REMOTE "mini"
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define TERMCMD(...) {TERMINAL, "-e", __VA_ARGS__, NULL}
t@@ -126,12 +127,18 @@ static const char *todocmd[] = DUPLEXATTACHCMD…
static const char *calendarcmd[] = DUPLEXATTACHCMD("calendar", "calendar…
static const char *mixercmd[] = TERMCMD("audiomixer");
static const char *musiccmd[] = TERMCMD("ncmpc");
+static const char *music_remote_cmd[] = TERMCMD("ncmpc", "-h", MPD_REMOTE);
static const char *mpdtogglecmd[] = {"mpc", "toggle", NULL};
static const char *mpdnextcmd[] = {"mpc", "next", NULL};
static const char *mpdprevcmd[] = {"mpc", "prev", NULL};
static const char *mpdstopcmd[] = {"mpc", "stop", NULL};
+static const char *mpd_remote_togglecmd[] = {"mpc", "toggle", "-h", MPD_REMO…
+static const char *mpd_remote_nextcmd[] = {"mpc", "next", "-h", MPD_REMOTE…
+static const char *mpd_remote_prevcmd[] = {"mpc", "prev", "-h", MPD_REMOTE…
+static const char *mpd_remote_stopcmd[] = {"mpc", "stop", "-h", MPD_REMOTE…
+
static const char *audioextvolupcmd[] = {"sndioctl", "output.level=+0.05…
static const char *audioextvoldncmd[] = {"sndioctl", "output.level=-0.05…
static const char *audioextmutecmd[] = {"sndioctl", "output.mute=!", NU…
t@@ -167,6 +174,7 @@ static Key keys[] = {
{ MODKEY|ControlMask|ShiftMask, XK_a, spawn, {.v = mixer…
{ MODKEY|MODALTKEY, XK_b, togglebar, {0} },
{ MODKEY|ControlMask|ShiftMask, XK_b, spawn, {.v = mpdpr…
+ { MODKEY|ControlMask, XK_b, spawn, {.v = mpd_r…
{ MODKEY, XK_c, spawn, {.v = showc…
{ MODKEY|ShiftMask, XK_c, spawn, {.v = calen…
{ MODKEY, XK_d, spawn, {.v = todoc…
t@@ -186,17 +194,21 @@ static Key keys[] = {
{ MODKEY, XK_m, spawn, {.v = mailc…
{ MODKEY|ShiftMask, XK_m, setlayout, {.v = &layo…
{ MODKEY|ControlMask|ShiftMask, XK_m, spawn, {.v = music…
+ { MODKEY|ControlMask, XK_m, spawn, {.v = music…
{ MODKEY, XK_n, spawn, {.v = newsc…
{ MODKEY|ControlMask|ShiftMask, XK_n, spawn, {.v = mpdne…
+ { MODKEY|ControlMask, XK_n, spawn, {.v = mpd_r…
{ MODKEY, XK_o, spawn, {.v = castc…
{ MODKEY|ShiftMask, XK_o, spawn, {.v = topcm…
{ MODKEY, XK_p, spawn, {.v = passc…
{ MODKEY|ShiftMask, XK_p, spawn, {.v = passe…
{ MODKEY|ControlMask|ShiftMask, XK_p, spawn, {.v = mpdto…
+ { MODKEY|ControlMask, XK_p, spawn, {.v = mpd_r…
{ MODKEY, XK_q, killclient, {0} },
{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ MODKEY, XK_r, spawn, {.v = scree…
{ MODKEY|ControlMask|ShiftMask, XK_s, spawn, {.v = mpdst…
+ { MODKEY|ControlMask, XK_s, spawn, {.v = mpd_r…
{ MODKEY, XK_t, spawn, {.v = textc…
{ MODKEY|ShiftMask, XK_t, setlayout, {.v = &layo…
{ MODKEY, XK_u, spawn, {.v = plumb…
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.