From b4a904bfd4d41bf591181d95166cb8270ca661bc Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 8 Nov 2020 14:29:30 +0530 Subject: added scripts to pause and unpause popup notifications --- scripts/brightness_indicator_deadd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/brightness_indicator_deadd (limited to 'scripts/brightness_indicator_deadd') 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") -- cgit v1.2.3