Introduce Serpensortia theme, enhance Hyprland scripts, and improve configuration modularity
This commit is contained in:
@@ -12,17 +12,19 @@ case "$1" in
|
||||
;;
|
||||
mute)
|
||||
wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print int($2*100)}')
|
||||
mute=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -q MUTED && echo "yes" || echo "no")
|
||||
if [[ "$mute" == "yes" ]]; then
|
||||
dunstify -t $TIME \
|
||||
-a "Volume" \
|
||||
-h string:x-dunst-stack-tag:$msgTag \
|
||||
"Muted"
|
||||
"muted"
|
||||
else
|
||||
dunstify -t $TIME \
|
||||
-a "Volume" \
|
||||
-h string:x-dunst-stack-tag:$msgTag \
|
||||
"Unmuted"
|
||||
-h int:value:"$volume" \
|
||||
"unmuted"
|
||||
fi
|
||||
exit 0
|
||||
;;
|
||||
@@ -40,5 +42,5 @@ if [[ "$mute" != "yes" ]]; then
|
||||
-a "Volume" \
|
||||
-h string:x-dunst-stack-tag:$msgTag \
|
||||
-h int:value:"$volume" \
|
||||
"Volume: $volume%"
|
||||
"$1"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user