diff options
author | jao <jao@gnu.org> | 2021-04-03 01:59:26 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-04-03 01:59:26 +0100 |
commit | d96ee795eb8f69dd422bd2aba40599e4d7239568 (patch) | |
tree | 56fd49217836d9b863b75b5e562252d8bd87ff0a | |
parent | 9e1c2b791842cadb5b9eb6225e80ee4e2771d7c7 (diff) | |
download | elibs-d96ee795eb8f69dd422bd2aba40599e4d7239568.tar.gz elibs-d96ee795eb8f69dd422bd2aba40599e4d7239568.tar.bz2 |
synchronous brightness and volume commands
-rw-r--r-- | init.org | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 () |