diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-11-08 14:29:30 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-11-08 14:29:30 +0530 |
commit | b4a904bfd4d41bf591181d95166cb8270ca661bc (patch) | |
tree | dddd142cf8bee8be278f551c05533884f9329649 /scripts/brightness_indicator_deadd | |
parent | f9b768d95b526c730018f4f4d3635e779faedbf7 (diff) |
added scripts to pause and unpause popup notifications
Diffstat (limited to 'scripts/brightness_indicator_deadd')
-rwxr-xr-x | scripts/brightness_indicator_deadd | 14 |
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") |