doom: Add personal/music module
parent
7fc6de4e6f
commit
1bf9fd108d
|
@ -186,6 +186,9 @@
|
|||
;;(rss +org) ; emacs as an RSS reader
|
||||
;;twitter ; twitter client https://twitter.com/vnought
|
||||
|
||||
:personal
|
||||
music
|
||||
|
||||
:config
|
||||
;;literate
|
||||
(default +bindings +smartparens))
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
;;; personal/music/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package! playerctl
|
||||
:when (executable-find "playerctl")
|
||||
:config
|
||||
;; keybindings
|
||||
;; k prefix looks like it isn't defined, so let's borrow it for now
|
||||
(map! :n "SPC k SPC" #'playerctl-play-pause-song
|
||||
:n "SPC k s" #'playerctl-stop-song
|
||||
:n "SPC k S" #'playerctl-status
|
||||
:n "SPC k m" #'playerctl-metadata ; currently broken
|
||||
:n "SPC k n" #'playerctl-next-song
|
||||
:n "SPC k N" #'playerctl-seek-forward
|
||||
:n "SPC k p" #'playerctl-previous-song
|
||||
:n "SPC k P" #'playerctl-seek-backward))
|
|
@ -0,0 +1,4 @@
|
|||
;;; personal/music/doctor.el -*- lexical-binding: t; -*-
|
||||
|
||||
(unless (executable-find "playerctl")
|
||||
(warn! "Couldn't find playerctl executable"))
|
|
@ -0,0 +1,4 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; personal/music/packages.el
|
||||
|
||||
(package! playerctl :pin "4c3a6132616fd28f902590bf6e63332e6055492b")
|
Loading…
Reference in New Issue