thomas-louvigne / playerctl.el

Play music from emacs with playerctl
Other
15 stars 7 forks source link
emacs playerctl

+TITLE: Playerctl.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