]> git.phdru.name Git - dotfiles.git/commitdiff
.mc/menu: Add quiet mplayer menu item
authorOleg Broytman <phd@phdru.name>
Mon, 3 Jan 2022 20:11:25 +0000 (23:11 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 3 Jan 2022 20:11:25 +0000 (23:11 +0300)
.mc/menu

index 60a3e4b7621cfe441156ca4daf40f0dee183fd2c..473093a384e1b05bb3720d18b8a2c8a523f89d15 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -198,7 +198,13 @@ i  DVD info
    exec "$HOME"/.config/mpv/mpv_identify.sh .
 
 + f \.(aac|ac3|ape|cue|dts|flac|m3u8?|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
+m  Play video file(s) with mpv (quiet)
+   AUDIO_VOLUME=80
+   export AUDIO_VOLUME
+   mplayer %s &
+
++ f \.(aac|ac3|ape|cue|dts|flac|m3u8?|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 (normal)
    mplayer %s &
 
 + f \.(aac|ac3|ape|cue|dts|flac|m3u8?|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