Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thomas-louvigne/playerctl.el

Play music from emacs with playerctl
https://github.com/thomas-louvigne/playerctl.el

emacs playerctl

Last synced: 3 months ago
JSON representation

Play music from emacs with playerctl

Awesome Lists containing this project

README

        

#+TITLE: Playerctl.el
* What
- [[https://github.com/acrisci/playerctl][Playerctl]], let you control your music player (Spotify, vlc, audacious, bmp, xmms2, and others) from shell.
- playerctl.el is just a simple binding to play your music from emacs

* Use
In your emacs.d/init.el :

** Classic install
#+begin_example
#+begin_src el
(require 'playerctl)
(define-key global-map (kbd "C-c C-SPC") 'playerctl-play-pause-song)
(define-key global-map (kbd "C-c C-n") 'playerctl-next-song)
#+end_src el
#+end_example

** Use-package install
#+begin_example
#+begin_src el
(use-package playerctl
:bind(
("C-c C-SPC" . playerctl-play-pause-song)
("C-c C-n" . playerctl-next-song)
("C-c C-p" . playerctl-previous-song)
("C-c C-f" . playerctl-seek-foward)
("C-c C-b" . playerctl-seek-backward)
)
)
#+end_src el
#+end_example

** Commands
- ~[M-x] playerctl-play-pause-song~ : Creat joy or stop noise
- ~[M-x] playerctl-next-song~ : change your univers
- ~[M-x] playerctl-previous-song~ : Your best wish was yesterday
- ~[M-x] playerctl-stop-song~ : Push back your brain in real world
- ~[M-x] playerctl-status~ : Give you the status of the player
- ~[M-x] playerctl-volume-up~ : Turn volume up
- ~[M-x] playerctl-volume-down~ : Turns volume down
- ~[M-x] playerctl-seek-forward~ : Seeks forward
- ~[M-x] playerctl-seek-backward~ : Seeks backward
- ~[M-x] playerctl-metadata~ : Show metadata (player name, status, artist, album, and title)
* Need to do :
- Write a true documentation
- Check if playerctl is installed
- Put status / artist / song in statusbar