summaryrefslogtreecommitdiffhomepage
path: root/attic
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-09-05 15:27:48 +0100
committerjao <jao@gnu.org>2022-09-05 15:27:48 +0100
commitff6d46eb611b82ea48746ba4bdf9a563298ac519 (patch)
tree543a79ce3fa945406a52c7a0a409b9b04edab6c8 /attic
parentffb5fb51f9dd63d87c17a05ff43188869a50c6b3 (diff)
downloadelibs-ff6d46eb611b82ea48746ba4bdf9a563298ac519.tar.gz
elibs-ff6d46eb611b82ea48746ba4bdf9a563298ac519.tar.bz2
player-specific volume controls not used
Diffstat (limited to 'attic')
-rw-r--r--attic/misc.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/attic/misc.el b/attic/misc.el
index a720042..d448ae7 100644
--- a/attic/misc.el
+++ b/attic/misc.el
@@ -301,6 +301,24 @@
(goto-char (point-min))
(when (re-search-forward "^[Mm]essage-[Ii][Dd]: <?\\([^><]+\\)>?" nil t)
(match-string 1))))
+;;; old volume controls
+(defun jao-player-volume-delta (raise)
+ (jao-player-vol-delta (if raise 5 -5))
+ (sit-for 0.05)
+ (jao-player-show-volume))
+
+(defun jao-player-volume-raise ()
+ (interactive)
+ (jao-player-volume-delta t))
+
+(defun jao-player-volume-lower ()
+ (interactive)
+ (jao-player-volume-delta nil))
+
+(defun jao-player-show-volume ()
+ (interactive)
+ (jao-notify "Volume" (format "%s%%" (jao-player-volume))))
+
;;; snippets
(defun jao-sway-run-or-focus-tidal ()
(interactive)