~mil/f_scripts

e69bdaf946219fdbd996aac0b1c291a35d37c626 — Miles Alan 5 months ago f0f7c5f
f_files, f_youtube: start mpv with --volume=10
2 files changed, 7 insertions(+), 7 deletions(-)

M scripts/f_files
M scripts/f_youtube
M scripts/f_files => scripts/f_files +5 -5
@@ 18,11 18,11 @@ DOC="
"
VAR="
  F_FILES_HANDLERS='
    [.](mp4|mov|avi)$                    ^ 9 0 [ ] p q                        ^ mpv --vo=tct   ^
    [.](webm|ogg|mp3|m4a|wav|flac|opus)$ ^ 9 0 [ ] p q                        ^ mpv --no-video ^
    [.](jpg|jpeg|gif|webm|png)$          ^ q j k a + - 100s 150s 200s v h i q ^ fbi            ^ pkill -9 fbi
    [.](pdf)$                            ^ q j k a + - 100s 150s 200s v h i q ^ fbgs -r 200    ^ pkill -9 fbi
    .                                    ^ Z X Q :q :w :wq  j k h l           ^ vim            ^
    [.](mp4|mov|avi)$                    ^ 9 0 [ ] p q                        ^ mpv --volume=10 --vo=tct   ^
    [.](webm|ogg|mp3|m4a|wav|flac|opus)$ ^ 9 0 [ ] p q                        ^ mpv --volume=10 --no-video ^
    [.](jpg|jpeg|gif|webm|png)$          ^ q j k a + - 100s 150s 200s v h i q ^ fbi                        ^ pkill -9 fbi
    [.](pdf)$                            ^ q j k a + - 100s 150s 200s v h i q ^ fbgs -r 200                ^ pkill -9 fbi
    .                                    ^ Z X Q :q :w :wq  j k h l           ^ vim                        ^
  '
  F_FILES_FBSET_FBPRATIO='2 / 3'
  F_FILES_FBSET_YRES='1440'

M scripts/f_youtube => scripts/f_youtube +2 -2
@@ 33,9 33,9 @@ play() {

  [ -p /tmp/fbp.fifo ] && { echo -e "\b\f\e"; echo "9 0 [ ] p" | tr " " "\n"; } > /tmp/fbp.fifo
  if [ "$AV" = "video" ]; then
    mpv --ytdl-format="[height<420]" --vo=tct --really-quiet --vo-tct-256=yes --profile=sw-fast "$URL"
    mpv --volume=10 --ytdl-format="[height<420]" --vo=tct --really-quiet --vo-tct-256=yes --profile=sw-fast "$URL"
  else
    mpv -v --no-video "$URL"
    mpv --volume=10 -v --no-video "$URL"
  fi
}