|
|
|
|
@ -42,17 +42,19 @@ notify_user() {
|
|
|
|
|
# Increase Volume |
|
|
|
|
inc_volume() { |
|
|
|
|
if [ "$(pamixer --get-mute)" == "true" ]; then |
|
|
|
|
pamixer -u && notify_user |
|
|
|
|
toggle_mute |
|
|
|
|
else |
|
|
|
|
pamixer -i 5 && notify_user |
|
|
|
|
fi |
|
|
|
|
pamixer -i 5 && notify_user |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Decrease Volume |
|
|
|
|
dec_volume() { |
|
|
|
|
if [ "$(pamixer --get-mute)" == "true" ]; then |
|
|
|
|
pamixer -u && notify_user |
|
|
|
|
toggle_mute |
|
|
|
|
else |
|
|
|
|
pamixer -d 5 && notify_user |
|
|
|
|
fi |
|
|
|
|
pamixer -d 5 && notify_user |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Toggle Mute |
|
|
|
|
@ -102,17 +104,19 @@ notify_mic_user() {
|
|
|
|
|
# Increase MIC Volume |
|
|
|
|
inc_mic_volume() { |
|
|
|
|
if [ "$(pamixer --default-source --get-mute)" == "true" ]; then |
|
|
|
|
pamixer --default-source -u && notify_mic_user |
|
|
|
|
toggle_mic |
|
|
|
|
else |
|
|
|
|
pamixer --default-source -i 5 && notify_mic_user |
|
|
|
|
fi |
|
|
|
|
pamixer --default-source -i 5 && notify_mic_user |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Decrease MIC Volume |
|
|
|
|
dec_mic_volume() { |
|
|
|
|
if [ "$(pamixer --default-source --get-mute)" == "true" ]; then |
|
|
|
|
pamixer --default-source -u && notify_mic_user |
|
|
|
|
toggle-mic |
|
|
|
|
else |
|
|
|
|
pamixer --default-source -d 5 && notify_mic_user |
|
|
|
|
fi |
|
|
|
|
pamixer --default-source -d 5 && notify_mic_user |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Execute accordingly |
|
|
|
|
|