summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init.org11
1 files changed, 10 insertions, 1 deletions
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 ()