rockymadden / somafm-cli

:musical_note: Listen to SomaFM in your terminal via pure bash
143 stars 12 forks source link

How to increase/decrease volume? #12

Open arozans opened 6 years ago

arozans commented 6 years ago

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.

rockymadden commented 6 years ago

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.

jcsims commented 5 years ago

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.