diff options
Diffstat (limited to 'configs/shared/.emacs.d/wpc/playback.el')
-rw-r--r-- | configs/shared/.emacs.d/wpc/playback.el | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/configs/shared/.emacs.d/wpc/playback.el b/configs/shared/.emacs.d/wpc/playback.el index 9ab1e30ef0ac..e7ad4b2481a4 100644 --- a/configs/shared/.emacs.d/wpc/playback.el +++ b/configs/shared/.emacs.d/wpc/playback.el @@ -6,20 +6,36 @@ ;;; Code: +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Dependencies +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(require 'prelude) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Library +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + (defun playback/prev () "Move to the previous song." (interactive) - (shell-command "playerctl previous")) + (prelude/start-process + :name "playback/prev" + :command "playerctl previous")) (defun playback/next () "Move to the next song." (interactive) - (shell-command "playerctl next")) + (prelude/start-process + :name "playback/next" + :command "playerctl next")) (defun playback/play-pause () "Play or pause the current song." (interactive) - (shell-command "playerctl play-pause")) + (prelude/start-process + :name "playback/play-pause" + :command "playerctl play-pause")) (provide 'playback) ;;; playback.el ends here |