Nikoshi / playerctl.el

Play music from emacs with playerctl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playerctl.el

What

  • 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

(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)

Use-package install

(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)
        )
)

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

Need to do :

  • Write a true documentation
  • Check if playerctl is installed
  • Implemant status manager to display current artist and song
  • Put status / artist / song in statusbar

About

Play music from emacs with playerctl

License:Other


Languages

Language:Emacs Lisp 100.0%