Recently, I purchased new over-ear headphones that have some really powerful speakers. I usually have to listen at ~4% volume to use them comfortably.
Each time I restart my computer, they move back to 100% and almost kill my eardrums.
The good thing is, I've fixed that with a script that runs on startup (through amixer setting headphone volume).
Unfortunately, sometimes one application or another will set my volume to 100% and play something and it is incredibly painful.
My goal is to limit the maximum volume for my headphones to be around 6% of the normal volume, but if possible in a way that won't require a restart, in case I do need to plug in normal headphones (if that's not possible a restart is okay too).
Answers such as Setting maximum volume won't work for me, because my speakers are fairly quiet, and I only want the headphones to be affected.
I've scoured the interwebs for this, and if anyone has any advice that would be wonderful.
My regular desktop environment is Gnome 3, however sometimes I do switch around, or just not use a GUI at all, so if possible I would love a solution that is DE-agnostic.
AlsaMixer calls my sound card "HDA Intel PCH" with an "Intel PantherPoint HDMI" chip.
In case it is helpful, here is my uname -r: 3.18.6-1-ARCH