somafm-cli icon indicating copy to clipboard operation
somafm-cli copied to clipboard

How to increase/decrease volume?

Open arozans opened this issue 5 years ago • 2 comments

somafm starts too loud. Is there any way to set starting volume? I tried with the volume=30 in the ~/.config/mpv/mpv.conf but sadly this does not work.

arozans avatar Oct 24 '18 15:10 arozans

Interesting. Your approach is what I would suggest. I'll take a look to see if I can pass volume into MPV upon invoke. If so, we can add an optional flag to set the initial volume.

rockymadden avatar Oct 26 '18 13:10 rockymadden

I would assume the --no-config flag here: https://github.com/rockymadden/somafm-cli/blob/master/src/somafm#L73 prevents those volume settings from getting picked up.

From the mpv man page:

--no-config
       Do not load default configuration files. This prevents loading of both the user-level and system-wide mpv.conf and input.conf files. Other configuration  files  are
       blocked as well, such as resume playback files.

       NOTE:
          Files explicitly requested by command line options, like --include or --use-filedir-conf, will still be loaded.

       See also: --config-dir.

jcsims avatar Feb 16 '19 00:02 jcsims