about summary refs log tree commit diff
path: root/users/tazjin/emacs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-03-21T11·52+0200
committertazjin <mail@tazj.in>2021-03-21T13·06+0000
commitfb39248c7b968bef8e3517aa125afc88d22fe081 (patch)
tree238a6bd115042836988f4217810b6b446fbc4c13 /users/tazjin/emacs
parent4a0d978874284730bdc93f9c4d8e27578d205c20 (diff)
chore(tazjin/emacs): Use `light` instead of `xbacklight` r/2310
The latter doesn't work with AMD devices. This will need some changes
on one of my non-NixOS machines, unfortunately ...

Change-Id: Ib9dfdb9beac67501396a06ea74a0a4371f8ad65e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2628
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'users/tazjin/emacs')
-rw-r--r--users/tazjin/emacs/config/desktop.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/tazjin/emacs/config/desktop.el b/users/tazjin/emacs/config/desktop.el
index e411da5a529a..cbbad7799047 100644
--- a/users/tazjin/emacs/config/desktop.el
+++ b/users/tazjin/emacs/config/desktop.el
@@ -22,12 +22,12 @@
 
 (defun brightness-up ()
   (interactive)
-  (shell-command "xbacklight -inc 5")
+  (shell-command "light -A 4")
   (message "Brightness increased"))
 
 (defun brightness-down ()
   (interactive)
-  (shell-command "xbacklight -dec 5")
+  (shell-command "light -U 4")
   (message "Brightness decreased"))
 
 (defun set-xkb-layout (layout)