Xfce is one of the greatest desktop environments ever. It is beautiful, lean, and thus it is also very fast.
One of its great customizable aspects is the assignment of commands for Keyboard Shortcuts (Xfce Menu > Settings > Keyboard > Application Shortcuts).
I immediately found out two nice applications for it: screenshot and sound attenuation. This post gives you the hint on the sound attenuation command when using ALSA (Advanced Linux Sound Architecture).
I usually cycle between 40% of the card’s volume when attenuated and 80% when playing audio normally. So I took the keys F9 and F10, respectively, and assigned them the following ALSA commands, also respectively:
and
The “Master” simple mixer control name I knew via listing the simple mixer controls available via the
command. Do the same and substitute “Master” in the commands above with whatever value you see in place of the blue value below (“Master”, in this example, matching the “Master” in the above commands):
Simple mixer control 'Master',0
Simple mixer control 'PCM',0
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Default PCM',0
Simple mixer control 'Digital',0
Simple mixer control 'Ext Mic',0
Simple mixer control 'ExtMic',0
Simple mixer control 'Int Mic',0
Simple mixer control 'IntMic',0
Enjoy! :)