I have a question about limiting sound output. Locking it down so that it cannot be adjusted by a non-sudo user.
Use Case:
I have an autistic step-son how likes to use youtube and does not always do a good job at controlling the volume. I'd like to set a max limit that he cannot adjust beyond, but I'm not sure where to start.
I could hide the sound icon in the system tray, but he would probably figure that out.
Hiding the icon in the tray is one thing, what bout disabling it completely?
Would he figure out how to re-enable it from the tray's configuration window? (which is not the tray overflow).
EDIT: There are ways to set default sound volumes but nothing says a user could not override it afterwards, so I doubt that would work.
If the maximum volume were tucked away in a settings menu (not just in the tray), would that be sufficient obfuscation? Or will that likely be discovered?
You can use amixer to set master volume levels from the terminal, for example to take it down to 75% I believe you would use:
@BluishHumility setting the volume from the cmd line is brilliant !!!
I'd like to implement both solutions. Disable the GUI control and then I can set the volume from the cmd line. This is something that I could add to his .bashrc
I forgot to check last night on my machine whether KDE allows this or not (I assume you run KDE). But if KDE allows to disable it (and not just hide it), when you open up Systray Configuration panel you can select individual entries’ behavior. DISABLED would be one of them in the small drop-down menu, if KDE allows it.
In the old KDE it was possible, not sure yet on the recent one, still Whoogling around.
However you could try this, but it’s from older Plasma 5 version, I cannot confirm ATM if it still works:
Edit `~/.config/kmixrc` and add the line:
showOSD=false
You're probably not clicking on the down arrow. Or you configured your systray to unhide every icon so no arrow is showing.
There is still a spot on the systray where you can right-click and access Configure System Tray... There is always that spot but it could be tiny to find depending your particular configuration.
I wonder if I can find a video somewhere I know there are some I've seen them in past.
EDIT: There is another way, choose Edit Panel.
This will edit your latte-dock top bar panel. Then when you hover mouse over the systray, you will be presented with a small double-slider icon on the left of the OSD displaying System Tray inside.
You click that double-slider and you find yourself in the same Configuration panel for systray.