aboutsummaryrefslogtreecommitdiff
path: root/scripts/brightness_indicator_deadd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/brightness_indicator_deadd')
-rwxr-xr-xscripts/brightness_indicator_deadd14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/brightness_indicator_deadd b/scripts/brightness_indicator_deadd
new file mode 100755
index 00000000..9ee4fb2d
--- /dev/null
+++ b/scripts/brightness_indicator_deadd
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+if [ "$1" == "inc" ]; then
+ xbacklight -inc 5
+fi
+
+if [ "$1" == "dec" ]; then
+ xbacklight -lower 5
+fi
+
+BRIGHTNESS=$(xbacklight -get)
+NOTI_ID=$(notify-send.py "Bildschirmhelligkeit" "$BRIGHTNESS/100" \
+ --hint string:image-path:video-display boolean:transient:true \
+ --replaces-process "brightness-popup")