01-31-2021, 10:39 AM
(This post was last modified: 01-31-2021, 10:41 AM by ReleaseTheGeese.)
@KC9UDX , thanks for sharing that script. It reminds me somewhat of a similar hack I've done with Fluxbox to control MPD and take screenshots using ImageMagick. Though this uses 'aplay' on Linux, it could easily be tweaked to use mixerctl on NetBSD.
With regards to your script requiring sudo, it ought to be possible to edit /etc/sudoers by running 'visudo' on NetBSD and allow NOPASSWD for 'sysctl'. I typically also allow my login to run poweroff/reboot with NOPASSWD too. I haven't yet tried NOPASSWD on BSD but I'd make a high bet it works the same way.
With regards to your script requiring sudo, it ought to be possible to edit /etc/sudoers by running 'visudo' on NetBSD and allow NOPASSWD for 'sysctl'. I typically also allow my login to run poweroff/reboot with NOPASSWD too. I haven't yet tried NOPASSWD on BSD but I'd make a high bet it works the same way.