falconindy / ponymix

CLI volume control for PulseAudio
MIT License
177 stars 27 forks source link

"is-muted" should output "0" or "1" additionally #37

Closed blueyed closed 9 years ago

blueyed commented 9 years ago

While the exit code is good in general, it would be helpful if it also would output it ("0" or "1").

I am using this currently:

local mute = mute or awful.util.pread("ponymix is-muted; echo $?")
holomorph commented 9 years ago

Why not os.execute

falconindy commented 9 years ago

Why not indeed. pread is the wrong API.