doom: Add personal/music module

main
earnest ma 2022-03-07 20:55:01 -05:00
parent 7fc6de4e6f
commit 1bf9fd108d
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
4 changed files with 26 additions and 0 deletions

View File

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

View File

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

View File

@ -0,0 +1,4 @@
;;; personal/music/doctor.el -*- lexical-binding: t; -*-
(unless (executable-find "playerctl")
(warn! "Couldn't find playerctl executable"))

View File

@ -0,0 +1,4 @@
;; -*- no-byte-compile: t; -*-
;;; personal/music/packages.el
(package! playerctl :pin "4c3a6132616fd28f902590bf6e63332e6055492b")