Fixed broken notifications
This commit is contained in:
@@ -7,7 +7,7 @@ function send_notification {
|
||||
icon="$HOME/.local/share/assets/brightness.svg"
|
||||
brightness=$(brightnessctl i | grep -oP '\(\K[^%\)]+')
|
||||
bar=$(seq -s "─" 0 $((brightness / 5)) | sed 's/[0-9]//g')
|
||||
dunstify "Brightness $brightness%" -i $icon -r 5555 -u normal -h int:value:$(($brightness))
|
||||
notify-send "Brightness $brightness%" -i $icon -r 5555 -u normal -h int:value:$(($brightness))
|
||||
}
|
||||
|
||||
case $1 in
|
||||
@@ -19,4 +19,4 @@ case $1 in
|
||||
brightnessctl set "${BRIGHTNESS_STEPS:-5}%-" -q
|
||||
send_notification
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
Reference in New Issue
Block a user