From d96ee795eb8f69dd422bd2aba40599e4d7239568 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 3 Apr 2021 01:59:26 +0100 Subject: synchronous brightness and volume commands --- init.org | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/init.org b/init.org index a3e5fd1..dbf4bff 100644 --- a/init.org +++ b/init.org @@ -230,6 +230,15 @@ (cadr) (string-trim)))) + (defun jao-bright-up () + (interactive) + (jao-exec-string "brightnessctl -q s %%5+") + (jao-bright-show)) + + (defun jao-bright-down () + (interactive) + (jao-exec-string "brightnessctl -q s %%5-") + (jao-bright-show)) #+end_src *** Keyboard and hydra #+begin_src emacs-lisp @@ -3707,7 +3716,7 @@ (string-to-number level))))) (defun jao-mixer-set (dev v) - (start-process "amixer" nil "amixer" "sset" dev v) + (jao-exec-string "amixer sset %s %s" dev v) (jao-mixer-get-level dev)) (defun jao-mixer-master-toggle () -- cgit v1.2.3