sway_volume: replace notification icon, again
This commit is contained in:
parent
4475967df9
commit
b0c05d7aa4
1 changed files with 4 additions and 3 deletions
|
@ -3,8 +3,10 @@ source $HOME/.config/sway/bin/sway_helpers
|
||||||
SINK=$(pactl info | grep "Default Sink" | cut -d ' ' -f 3)
|
SINK=$(pactl info | grep "Default Sink" | cut -d ' ' -f 3)
|
||||||
ICON_PATH=$HOME/.local/share/icons/Tela-circle-dark/16/actions
|
ICON_PATH=$HOME/.local/share/icons/Tela-circle-dark/16/actions
|
||||||
NOTIFY_APP="dunstify -a volume -h string:x-dunst-stack-tag:volume"
|
NOTIFY_APP="dunstify -a volume -h string:x-dunst-stack-tag:volume"
|
||||||
VOL1=""
|
# echo -e '\u25cf'
|
||||||
VOL2=""
|
VOL1="●"
|
||||||
|
# echo -e '\u25cc'
|
||||||
|
VOL2="◌"
|
||||||
|
|
||||||
|
|
||||||
function getProgressString() {
|
function getProgressString() {
|
||||||
|
@ -33,7 +35,6 @@ function notify() {
|
||||||
if [ "$MUTE" = "yes" ]; then
|
if [ "$MUTE" = "yes" ]; then
|
||||||
ICON=$ICON_PATH/audio-volume-muted.svg
|
ICON=$ICON_PATH/audio-volume-muted.svg
|
||||||
TITLE="${VOLUME}%"
|
TITLE="${VOLUME}%"
|
||||||
M=""
|
|
||||||
elif [ $VOLUME -le 33 ]; then
|
elif [ $VOLUME -le 33 ]; then
|
||||||
ICON=$ICON_PATH/audio-volume-low.svg
|
ICON=$ICON_PATH/audio-volume-low.svg
|
||||||
TITLE="${VOLUME}%"
|
TITLE="${VOLUME}%"
|
||||||
|
|
Loading…
Reference in a new issue