Fixed system notifications

This commit is contained in:
Tibo De Peuter 2022-06-03 11:20:17 +02:00
parent 312d3521d6
commit 85cc441958
2 changed files with 5 additions and 5 deletions

View file

@ -18,7 +18,7 @@ while getopts ":bv" options; do
value=$( brightnessctl | grep -o "[0-9]*%" )
title="Brightness: ${value}"
timeout=2000
class='top-center'
category='sysinfo'
;;
v)
# Get volume
@ -32,7 +32,7 @@ while getopts ":bv" options; do
title="Volume: ${value:-'0%'}"
timeout=2000
class='top-center'
category='sysinfo'
;;
*)
panic
@ -60,7 +60,7 @@ fi
# Send message
notify-send "${title}" "${message}" \
-t "${timeout:=5000}" \
-c "${class:=''}" \
-c "${category:=''}" \
-h int:value:"${width:=0}" \
-h string:x-canonical-private-synchronous:byMe # Replace if previous still exists