summaryrefslogtreecommitdiff
path: root/brightness
diff options
context:
space:
mode:
Diffstat (limited to 'brightness')
-rwxr-xr-xbrightness7
1 files changed, 4 insertions, 3 deletions
diff --git a/brightness b/brightness
index 8835859..fc152f3 100755
--- a/brightness
+++ b/brightness
@@ -1,5 +1,6 @@
#!/bin/sh
-monitor="eDP-1"
-
-xrandr --output $monitor --brightness "$1"
+case "$1" in
+ up) sudo brightnessctl s "10%+" ;;
+ down) sudo brightnessctl s "10%-" ;;
+esac