diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2025-01-27 10:59:27 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-27 10:59:27 +0900 |
| commit | 1436fe7b03be17f824ffecc5926184ef7837077d (patch) | |
| tree | 7154800e8c56ee1f74aa080cc485ce9d98a68f20 /config/hypr/scripts/Volume.sh | |
| parent | 6c4db42efd6519f13b7e3b6375c16b8d2cb928f9 (diff) | |
| parent | 31b1aa05196433e7c287eee68bdbce84b8be351a (diff) | |
Merge pull request #532 from JaKooLit/main
main to development synchronization
Diffstat (limited to 'config/hypr/scripts/Volume.sh')
| -rwxr-xr-x | config/hypr/scripts/Volume.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh index ac1367b7..b205f8f9 100755 --- a/config/hypr/scripts/Volume.sh +++ b/config/hypr/scripts/Volume.sh @@ -11,7 +11,7 @@ get_volume() { if [[ "$volume" -eq "0" ]]; then echo "Muted" else - echo "$volume%" + echo "$volume %" fi } @@ -34,7 +34,7 @@ notify_user() { if [[ "$(get_volume)" == "Muted" ]]; then notify-send -e -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" " Volume:" " Muted" else - notify-send -e -h int:value:"$(get_volume | sed 's/%//')" -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" " Volume:" " $(get_volume) %" && + notify-send -e -h int:value:"$(get_volume | sed 's/%//')" -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" " Volume Level:" " $(get_volume)" && "$sDIR/Sounds.sh" --volume fi } @@ -60,7 +60,7 @@ dec_volume() { # Toggle Mute toggle_mute() { if [ "$(pamixer --get-mute)" == "false" ]; then - pamixer -m && notify-send -e -u low -i "$iDIR/volume-mute.png" " Muted" + pamixer -m && notify-send -e -u low -i "$iDIR/volume-mute.png" " Mute" elif [ "$(pamixer --get-mute)" == "true" ]; then pamixer -u && notify-send -e -u low -i "$(get_icon)" " Volume:" " Switched ON" fi @@ -90,7 +90,7 @@ get_mic_volume() { if [[ "$volume" -eq "0" ]]; then echo "Muted" else - echo "$volume%" + echo "$volume %" fi } @@ -98,7 +98,7 @@ get_mic_volume() { notify_mic_user() { volume=$(get_mic_volume) icon=$(get_mic_icon) - notify-send -e -h int:value:"$volume" -h "string:x-canonical-private-synchronous:volume_notif" -u low -i "$icon" " Mic-Level:" " $volume %" + notify-send -e -h int:value:"$volume" -h "string:x-canonical-private-synchronous:volume_notif" -u low -i "$icon" " Mic Level:" " $volume" } # Increase MIC Volume @@ -140,4 +140,4 @@ elif [[ "$1" == "--mic-dec" ]]; then dec_mic_volume else get_volume -fi +fi
\ No newline at end of file |
