mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Added muteinputs and modified sb-volume
This commit is contained in:
parent
499aeaed3a
commit
2a7059eaba
@ -13,8 +13,6 @@ case $BLOCK_BUTTON in
|
|||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ $(pamixer --get-mute) = true ] && echo 🔇 && exit
|
|
||||||
|
|
||||||
vol="$(pamixer --get-volume)"
|
vol="$(pamixer --get-volume)"
|
||||||
|
|
||||||
if [ "$vol" -gt "70" ]; then
|
if [ "$vol" -gt "70" ]; then
|
||||||
@ -27,4 +25,11 @@ else
|
|||||||
echo 🔇 && exit
|
echo 🔇 && exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$icon$vol%"
|
source="$(pamixer --list-sources | awk '!/Built/{ if (NR==2) {print $1} }')"
|
||||||
|
if [ "$(pamixer --source $source --get-mute)" = "true" ]; then
|
||||||
|
mute="❌🎙️"
|
||||||
|
else
|
||||||
|
mute="✔️🎙️"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$icon$vol% $mute"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user