merge latest
This commit is contained in:
@@ -20,20 +20,20 @@ function send_notification {
|
||||
# https://en.wikipedia.org/wiki/Box-drawing_character
|
||||
#bar=$(seq -s "─" $(($volume/5)) | sed 's/[0-9]//g')
|
||||
if [ "$volume" = "0" ]; then
|
||||
icon_name="/usr/share/icons/zafiro-dark/panel/16/audio-volume-off.svg"
|
||||
icon_name="/usr/share/icons/Newaita-reborn/panel/16/audio-volume-off.svg"
|
||||
dunstify "$volume"" " -i "$icon_name" -t 2000 -h int:value:"$volume" -h string:synchronous:"─" --replace=555
|
||||
else
|
||||
if [ "$volume" -lt "10" ]; then
|
||||
icon_name="/usr/share/icons/zafiro-dark/panel/16/audio-volume-low.svg"
|
||||
icon_name="/usr/share/icons/Newaita-reborn/panel/16/audio-volume-low.svg"
|
||||
dunstify "$volume"" " -i "$icon_name" --replace=555 -t 2000
|
||||
else
|
||||
if [ "$volume" -lt "30" ]; then
|
||||
icon_name="/usr/share/icons/zafiro-dark/panel/16/audio-volume-low.svg"
|
||||
icon_name="/usr/share/icons/Newaita-reborn/panel/16/audio-volume-low.svg"
|
||||
else
|
||||
if [ "$volume" -lt "70" ]; then
|
||||
icon_name="/usr/share/icons/zafiro-dark/panel/16/audio-volume-medium.svg"
|
||||
icon_name="/usr/share/icons/Newaita-reborn/panel/16/audio-volume-medium.svg"
|
||||
else
|
||||
icon_name="/usr/share/icons/zafiro-dark/panel/16/audio-volume-high.svg"
|
||||
icon_name="/usr/share/icons/Newaita-reborn/panel/16/audio-volume-high.svg"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@@ -41,7 +41,6 @@ fi
|
||||
bar=$(seq -s "─" $(($volume/5)) | sed 's/[0-9]//g')
|
||||
# Send the notification
|
||||
dunstify "$volume"" ""$bar" -i "$icon_name" -t 2000 -h int:value:"$volume" -h string:synchronous:"$bar" --replace=555
|
||||
|
||||
}
|
||||
|
||||
case $1 in
|
||||
@@ -58,7 +57,7 @@ case $1 in
|
||||
send_notification
|
||||
;;
|
||||
toggle)
|
||||
dunstify --replace 554 -i "/usr/share/icons/zafiro-dark/actions/16-Dark/media-album-track.svg" "Player Control" "Media $(playerctl status)"
|
||||
dunstify --replace 554 -i "/usr/share/icons/Newaita-reborn/actions/16-Dark/media-album-track.svg" "Player Control" "Media $(playerctl status)"
|
||||
playerctl play-pause
|
||||
;;
|
||||
mute)
|
||||
@@ -66,7 +65,7 @@ case $1 in
|
||||
amixer -D pulse set Master 1+ toggle > /dev/null
|
||||
if is_mute ; then
|
||||
DIR=`dirname "$0"`
|
||||
dunstify -i "/usr/share/icons/zafiro-dark/panel/16/audio-volume-off.svg" --replace=555 -u normal "Mute" -t 2000
|
||||
dunstify -i "/usr/share/icons/Newaita-reborn/panel/16/audio-volume-off.svg" --replace=555 -u normal "Mute" -t 2000
|
||||
else
|
||||
send_notification
|
||||
fi
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
[Icon Theme]
|
||||
Inherits=Sweet-cursors
|
||||
Reference in New Issue
Block a user