cmus-control
cmus-control copied to clipboard
Control cmus with Media Keys :rewind: :arrow_forward: :fast_forward: under OS X.
Cmus Control
Control cmus with Media Keys :rewind: :arrow_forward: :fast_forward: under macOS.
Project Outlines
The project outlines as described in my blog post about Open Source Software Collaboration.
- The main purpose of this software is to provide support for cmus under macOS. Cmus can be controlled by the Media Keys of your Apple Keyboard.
- The feature-set is restricted because this software already provides the features what it was made of. But still, feel free to request features.
Requirements
- At least macOS 10.8.
cmaketo build it.- Since Cmus Control doesn't have the behavior of changing any foreign processes it's highly recommended to deactivate the Remote Control Daemon.
- cmus installed. ;)
Install
You can either install Cmus Control via Homebrew or manually. The preferred method of installation is via Homebrew.
Homebrew installation
-
Add the
thefox/brewerytap to brew.$ brew tap thefox/brewery -
Actual installation
$ brew install cmus-control -
After a successful installation follow the Caveats output, start the service:
$ brew services start thefox/brewery/cmus-controlOr, if you don't want/need a background service you can just run
$ cmuscontrold
Manual installation
- You need to install cmake:
brew install cmake - Run
make installto compile Cmus Control Daemon and installcmuscontroldunder/usr/local/binpath. A launchd.plist file namedat.fox21.cmuscontrold.plistwill be created under~/Library/LaunchAgentsto start Cmus Control Daemon automatically on login.
If you just want to compile Cmus Control Daemon without installing run make. The binary will be created at build/release/bin/cmuscontrold.
Uninstall
Just run make uninstall. Doing so
cmuscontroldwill be unloaded vialaunchctl;~/Library/LaunchAgents/at.fox21.cmuscontrold.plistwill be removed;/usr/local/bin/cmuscontroldwill be removed.
Load/Unload
After a successful manual installation the cmuscontrold is loaded/started automatically with launchctl. You can unload the daemon manually:
$ make unload
Or load it manually:
$ make load
Re-build
After changing the source code you might want to re-build the binary and re-install it.
make unload
make -C build/release
make install