This repository is forked from Amir Zamani's cmus-osx. Originaly he used eyeD3 for displaying album art. eyeD3 does not support m4a audio file type. So I changed some code of his work to display album art of m4a files. I replaced eyeD3 with mutagen package to support m4a as well as mp3.
cmus-osx
is a tiny utility to mate cmus
note and
the media keys of a Mac and OS X
notification center.
vim-cmus is a sister project for
nvim
/vim
integration ofcmus
.
links media keys of a Mac to cmus
:
optionally, links cmus
to OS X
notification center (by installing 3rdparty
dependencies, the album art will also be displayed):
after cloning this repository, simply find setup.py
:
$> git clone https://github.com/azadkuh/cmus-osx
$> cd cmus-osx
# on cmus-osx directory
$cmus-osx/> ./setup.py install
# to uninstall
$cmus-osx/> ./setup.py uninstall
the default installation path is /usr/local/bin
.
to install on another location simply pass your path:
# install on a custom directory
$cmus-osx/> ./setup install /opt/bin
on your terminal, just launch cmus-osx.py
instead of cmus
:
$> cmus-osx.py
now everything (media keys and notification center) should just works.
in order to use cmus-osx
you need:
-
OS X
(a Mac machine) andcmus
! to installcmus
just use brew or consult cmus installation -
pyobjc
aspython
andobjective-c
bridge.
$> pip install -U pyobjc
more info on installing pyobjc
- optionally
mutagen
for displaying the album art of the current songs.
$> pip install mutagen
if you like to hack into cmus-osx
please see here
cmus
is a fantastic console music player for Unix-like operating systems.
cmus is small, clean, powerful and no-nonsense.
Distributed under the MIT license. Copyright (c) 2016, Amir Zamani.