aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-01-19 18:35:32 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-01-19 18:35:32 +0900
commit466b077ec3b504a99c72543a82720f1529cdbbfc (patch)
treef101ccc94e3e00c1285bc906b7c8d69118e23644 /config/hypr/scripts
parent2398cb234ad450dcec0e41a235c7137c3d0f831a (diff)
minor volume script correction
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/Volume.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh
index af7192c2..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
}
@@ -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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage