X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.mc%2Fmenu;h=42d7263a8b41013dd557db00a80e08b051d48d6d;hb=ee7bc0c6f78a3423c466268ed5a3bc9ca7c69956;hp=8d64ee5f66cbc0776260de20f203b523091a0dfa;hpb=84b180d15c8293e44122ca2353547b01fa93cd80;p=dotfiles.git diff --git a/.mc/menu b/.mc/menu index 8d64ee5..42d7263 100644 --- a/.mc/menu +++ b/.mc/menu @@ -2,7 +2,7 @@ shell_patterns=0 # This is necessary to overcome a bug in mc - without this # mc makes default wrong item -N NOOP +: NOOP : @ Do something on all of the file(s) at once @@ -65,6 +65,10 @@ e evince d catdoc catdoc %f | less ++= t r & f \.(docx|DOCX)$ +d docx2txt + docx2txt %f - | less + += t r & f \.(xls|XLS)$ x xls2csv xls2csv %f | less @@ -72,18 +76,18 @@ x xls2csv + t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ | t t = t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ i View image(s) scaled - xli -zoom auto %s & + xli -title "`echo %s | sed 's/ /_/g'`" -zoom auto %s & + t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ | t t I View image(s) full size - xli %s & + xli -title "`echo %s | sed 's/ /_/g'`" %s & + t r & f \.(ico|jp2|tif|TIF|tiff|TIFF)$ | t t = t r & f \.(ico|jp2|tif|TIF|tiff|TIFF)$ I View icon, JPEG-2000 or TIFF image display %s & -+ t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|pls|wv)$ | t t ++ t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ | t t a Add the audiofile(s) or playlist(s) #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi #for f in %s; do @@ -92,8 +96,8 @@ a Add the audiofile(s) or playlist(s) #smplayer -add-to-playlist %s & deadbeef --queue %s & -+ t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|pls|wv)$ | t t -= t r & f \.(m3u|mp3|MP3|cue|ac3|ape|flac|wv)$ ++ t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ | t t += t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ p Load the audiofile(s) or playlist(s) #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi #audtool --playlist-clear @@ -104,7 +108,7 @@ p Load the audiofile(s) or playlist(s) #smplayer -add-to-playlist %s & deadbeef --queue %s & -+ t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|pls|wv)$ | t t ++ t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ | t t P Play the audiofile(s) or playlist(s) #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi #audtool --playlist-clear @@ -119,7 +123,7 @@ P Play the audiofile(s) or playlist(s) + t r & f \.m3u R Play the playlist in random order - "$HOME"/admin/prog/audio-cdr-video/shuffle-playlist.py %f random-playlist-tmp.m3u + "$HOME"/admin/prog/audio-cdr-video/audio/shuffle-playlist.py %f random-playlist-tmp.m3u #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi #audtool --playlist-clear #audtool --playlist-addurl random-playlist-tmp.m3u @@ -131,8 +135,8 @@ R Play the playlist in random order #mediaplayer_open random-playlist-tmp.m3u (sleep 5; exec rm random-playlist-tmp.m3u) & -+ f \.(aac|ac3|ape|cue|flac|m3u|mp3|MP3|pls|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wmv)$ | t d | t t -= t r & f \.(aac|ac3|ape|cue|flac|m3u|mp3|MP3|pls|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wmv)$ ++ f \.(aac|ac3|ape|cue|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 += t r & f \.(aac|ac3|ape|cue|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)$ s Play audio/video file(s) or directory with smplayer smplayer %s & @@ -140,7 +144,7 @@ s Play audio/video file(s) or directory with smplayer c Play the current directory with smplayer smplayer . & -+ t r & f \.(m3u|mp3|MP3|cue|aac|ac3|ape|flac|pls|wv|avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wmv)$ | t t ++ t r & f \.(m3u|mp3|MP3|cue|aac|ac3|ape|flac|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t t i Audio/video info exec mplayer -msglevel identify=6 -frames 0 %s @@ -148,11 +152,11 @@ i Audio/video info i DVD info exec mplayer -dvd-device . dvd:// -msglevel identify=6 -frames 0 -+ f \.(avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wmv)$ | t t ++ f \.(avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t t m Play video file(s) with mplayer mplayer %s & -+ f \.(m3u|mp3|MP3|cue|aac|ac3|ape|flac|pls|wv|avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wmv)$ | t t ++ f \.(m3u|mp3|MP3|cue|aac|ac3|ape|flac|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t t M Play audio/video with gmplayer gmplayer %s & @@ -323,6 +327,20 @@ n Create a directory for this archive esac exec mkdir "$D" ++ F \.tar\.bz2$ | F \.tar\.gz$ | F \.tgz$ | F \.(zip|ZIP)$ | F \.(rar|RAR)$ | F \.7z$ & T r +N Create a directory for this archive + case %F in + *.tar.bz2) D="`basename %F .tar.bz2`";; + *.tar.gz) D="`basename %F .tar.gz`";; + *.tgz) D="`basename %F .tgz`";; + *.zip) D="`basename %F .zip`";; + *.ZIP) D="`basename %F .ZIP`";; + *.rar) D="`basename %F .rar`";; + *.RAR) D="`basename %F .RAR`";; + *.7z) D="`basename %F .7z`";; + esac + exec mkdir "$D" + + t r v View via mailcap exec see %f