Wikia

Music Player Daemon Community Wiki

Watchlist Recent changes

Hack:mpc-pause

mpc-pause was created to emulate the --pause-play command line feature found in xmms.


#!/bin/sh
# vim: ft=sh
MPC=/usr/bin/mpc
if [ "$($MPC status | grep pause | cut -d ' ' -f1)" == "[paused]" ]; then 
   $MPC play 1>/dev/null
else
   $MPC pause 1>/dev/null
fi

You can bind a key (using your desired method) to the Pause key on the keyboard, for example.

This is now done in mpc (known as mpc toggle)

Pages on Music Player Daemon Community Wiki

Add a Page
543pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
114photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki