fix: concat audio and brightness, add notifications

This commit is contained in:
Fabio Lenherr 2022-09-04 00:14:34 +02:00
parent 63c6e4214e
commit 64fe6f4e84
No known key found for this signature in database
GPG key ID: 868FFD689D878939
14 changed files with 185 additions and 71 deletions

12
eww/scripts/change-brightness Executable file
View file

@ -0,0 +1,12 @@
#! /bin/bash
set_brightness() {
brightnessctl set "$1"
CURRENT=$(brightnessctl -m -d intel_backlight | awk -F, '{print substr($4, 0, length($4)-1)}')
dunstify -a "changeBrightness" -r 3 -u low -i brightness-high -h int:value:"$CURRENT" "Brightness: ${CURRENT}%"
}
if [ "$1" == "brightness" ]; then
set_brightness "$2"
fi