reduce notification spam in volume/brightness
Added a second parameter to notifications (actually a first, "app-name"), so they can be *grouped* when there is more than one, reducing the clutter on the screen, using the mako config parameter " group-by=app-name " with proper quotes (i hope), case and cute icon ;) added "group-by = app-name" directive in mako config Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
parent
2c4da8fa0b
commit
5b705dc91b
3 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@ background-color=#ffffff
|
||||||
text-color=#000000
|
text-color=#000000
|
||||||
border-color=#000000
|
border-color=#000000
|
||||||
layer=overlay
|
layer=overlay
|
||||||
|
group-by=app-name
|
||||||
|
|
||||||
[urgency=low]
|
[urgency=low]
|
||||||
default-timeout=3000
|
default-timeout=3000
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
. "$(dirname "$0")/sxmo_common.sh"
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
notify() {
|
notify() {
|
||||||
light | xargs notify-send
|
light | xargs notify-send " Brightness"
|
||||||
}
|
}
|
||||||
|
|
||||||
setvalue() {
|
setvalue() {
|
||||||
|
|
|
@ -12,7 +12,7 @@ notify() {
|
||||||
awk '{ s += $1; c++ } END { print s/c }' |
|
awk '{ s += $1; c++ } END { print s/c }' |
|
||||||
xargs printf %.0f
|
xargs printf %.0f
|
||||||
)"
|
)"
|
||||||
dunstify -i 0 -u normal -r 998 "♫ $VOL"
|
dunstify -i 0 -u normal -r 998 "♫ Volume" "$VOL"
|
||||||
sxmo_statusbarupdate.sh
|
sxmo_statusbarupdate.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue