]> git.phdru.name Git - dotfiles.git/commitdiff
.mc: Run `mplayer` with preset audio volume
authorOleg Broytman <phd@phdru.name>
Fri, 1 May 2020 23:59:51 +0000 (02:59 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 1 May 2020 23:59:51 +0000 (02:59 +0300)
.mc/menu

index e868e72c8f03a1cc28914913cc7c52c76d9b2349..a477050102df9c0a161a241bcb1112eceaa07d54 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -161,13 +161,25 @@ i  DVD info
    exec "$HOME"/.config/mpv/mpv_identify.sh .
 
 + f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t d | t t
-= f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$
 m  Play video file(s) with mpv
    mplayer %s &
 
 + f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t d | t t
 = f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$
-m  Play video file(s) with mpv asking audio volume
+m  Play video file(s) with mpv (louder)
+   AUDIO_VOLUME=150
+   export AUDIO_VOLUME
+   mplayer %s &
+
++ f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t d | t t
+= f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$
+m  Play video file(s) with mpv (loud)
+   AUDIO_VOLUME=120
+   export AUDIO_VOLUME
+   mplayer %s &
+
++ f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t d | t t
+m  Play video file(s) with mpv (ask for volume)
    AUDIO_VOLUME=%{Enter volume}
    export AUDIO_VOLUME
    mplayer %s &