Another script I made for myself that might be useful to others.
Changes the volume of the application that currently has focus. I use this for altering the volume of games (rather than messing about with mixers/game settings) and raising web video's volume's beyond the player's max.
Make keybindings to execute like `applicationvolume +5` and `applicationvolume -5`
https://gitlab.com/uoou/dotfiles/-/blob/master/stow/bin/home/drew/.local/bin/applicationvolume
Needs: pactl, xprop, xdotool
(more details in comments...)
It also has a second (less useful) mode of operation with two parameters. You can use it like:
`applicationvolume Spotify 50` (value can be relative or absolute in all cases).
The application name (`Spotify` in this case) is as-per the output of `pactl list sink-inputs | grep "application\.name"` (when audio is playing).