how to know whether a headphone is plugged in from terminal?
9028
Detecting headphone connection/disconnection in Linux
12993
How to know which program has just played sound?
27308
How can I change the default audio device from command line?
90975
audio not playing through headphones
107329
How can I find out which processes on my computer are accessing the microphone?
3472
How do I check the battery's status via the terminal?
40688
Automatically change system volume when audio device plugged in?
97861
Mute sound on Headphone unplug?
130646
How can I limit the headphone max volume on OS X?
104288
Selected Sound Output Device Not Persisting Between Reboots in gnome-control-center
134893
Is there another way to restart the sound system if pulseaudio/ALSA don't work?
55431
"Dummy Output" No sound in Ubuntu 16.04
138539
Headphone jack not working?
17196
Set HDMI sound output automatically on connect/disconnect
148594
Run a shell command AFTER a bluetooth input device is detected?
105584
How can I play a custom sound when my battery is low?
68359
18.04, 16.04 Headphones detected, but not switched on automatically after startup