15edbe62cb
Instead of the pulseaudio one
12 lines
276 B
Bash
Executable file
12 lines
276 B
Bash
Executable file
#!/bin/sh
|
|
|
|
volume (){
|
|
vol=$(pamixer --get-volume-human)
|
|
mic_vol=$(pamixer --default-source --get-volume-human)
|
|
echo "{\"speaker\": \"${vol^}\", \"mic\": \"${mic_vol^}\"}"
|
|
}
|
|
|
|
volume
|
|
pw-mon --color=never | grep --line-buffered "changed" | while read -r line; do
|
|
volume
|
|
done
|