Skip to content

Latest commit

 

History

History
47 lines (43 loc) · 1.59 KB

README.org

File metadata and controls

47 lines (43 loc) · 1.59 KB

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)
        ("C-c C-f" . playerctl-seek-foward)
        ("C-c C-b" . playerctl-seek-backward)
        )
)

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