From c4c2716c25936f632aa5bb8fd589a57b53714be8 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Sun, 17 Dec 2023 16:08:13 +0900 Subject: 1.) Added ChangeBlur keybinds (Super Shift B), same added in Keyhints.sh (Super H) 2.) Increased Blur Settings 3.) Tweaked and Cleaned up scripts, some small tweak only like adding a bell icon - > Gamemode toggle (Super Shift G) will now reload previous wallpaper once back to normal modified - > The pywalSwww.sh is integrated in Refresh.sh to update rofi background --- config/hypr/scripts/Volume.sh | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'config/hypr/scripts/Volume.sh') diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh index a51999df..6a50cb77 100755 --- a/config/hypr/scripts/Volume.sh +++ b/config/hypr/scripts/Volume.sh @@ -30,29 +30,35 @@ notify_user() { # Increase Volume inc_volume() { - pamixer -i 5 && notify_user + if [ "$(pamixer --get-mute)" == "true" ]; then + pamixer -u && notify_user + fi + pamixer -i 5 && notify_user } # Decrease Volume dec_volume() { - pamixer -d 5 && notify_user + if [ "$(pamixer --get-mute)" == "true" ]; then + pamixer -u && notify_user + fi + pamixer -d 5 && notify_user } # Toggle Mute toggle_mute() { if [ "$(pamixer --get-mute)" == "false" ]; then - pamixer -m && notify-send -h string:x-canonical-private-synchronous:sys-notify -u low -i "$iDIR/volume-mute.png" "Volume Switched OFF" + pamixer -m && dunstify -u low -i "$iDIR/volume-mute.png" "Volume Switched OFF" elif [ "$(pamixer --get-mute)" == "true" ]; then - pamixer -u && notify-send -h string:x-canonical-private-synchronous:sys-notify -u low -i "$(get_icon)" "Volume Switched ON" + pamixer -u && dunstify -u low -i "$(get_icon)" "Volume Switched ON" fi } # Toggle Mic toggle_mic() { if [ "$(pamixer --default-source --get-mute)" == "false" ]; then - pamixer --default-source -m && notify-send -h string:x-canonical-private-synchronous:sys-notify -u low -i "$iDIR/microphone-mute.png" "Microphone Switched OFF" + pamixer --default-source -m && dunstify -u low -i "$iDIR/microphone-mute.png" "Microphone Switched OFF" elif [ "$(pamixer --default-source --get-mute)" == "true" ]; then - pamixer -u --default-source u && notify-send -h string:x-canonical-private-synchronous:sys-notify -u low -i "$iDIR/microphone.png" "Microphone Switched ON" + pamixer -u --default-source u && dunstify -u low -i "$iDIR/microphone.png" "Microphone Switched ON" fi } # Get icons @@ -75,12 +81,18 @@ notify_mic_user() { # Increase MIC Volume inc_mic_volume() { - pamixer --default-source -i 5 && notify_mic_user + if [ "$(pamixer --default-source --get-mute)" == "true" ]; then + pamixer --default-source -u && notify_mic_user + fi + pamixer --default-source -i 5 && notify_mic_user } # Decrease MIC Volume dec_mic_volume() { - pamixer --default-source -d 5 && notify_mic_user + if [ "$(pamixer --default-source --get-mute)" == "true" ]; then + pamixer --default-source -u && notify_mic_user + fi + pamixer --default-source -d 5 && notify_mic_user } # Execute accordingly -- cgit v1.2.3