MC and external apps
Holger Herrlich
holgerherrlich05 at arcor.de
Sat Sep 24 20:39:17 UTC 2011
Some samples what worked for me.
note that -geometry command tells xterm the size (not mc),
also note the & to regain control,
usually /etc/mc/mc.ext will give more samples.
in /etc/mc/mc.ext first match rules!
Holger
Open=if [ "$DISPLAY" = "" ]; \
then play %f; \
else (xterm -bc -geometry '90x11+200+100' \
-fn -*-fixed-medium-r-normal-*-9-*-*-*-*-*-iso8859-1 \
-fb -*-fixed-medium-r-normal-*-9-*-*-*-*-*-iso8859-1 \
-e "mplayer %f" &); fi
Edit=if [ "$DISPLAY" = "" ]; \
then mcview; \
else (audacity %f > /dev/null 2>&1 &); fi
On 09/17/2011 12:49 PM, Monkish wrote:
>
> I'm trying to get MC to open sound files in MoC, and .txt files in leafpad.
> But I'm having no luck at all. I was able to get it to open video files in
> vlc instead of mplayer, but for some reason I can't get the other two apps
> to work.
>
> For MoC, under the Sound Files section of MC, I changed:
>
> Open=mplayer -vo null %f
>
> to
>
> Open=wterm -e mocp -vo null %f
>
> But that was a no-go. And under the Documents section I changed:
>
> Open=%vim{EDITOR:vi} %f
>
> to
>
> Open=%leafpad{EDITOR:leafpad} %f
>
> So does anyone happen to see what I'm doing wrong? One more thing, is there
> anyway to get MC to automatically open to a certain size when I start it?
> I'm constantly having to resize the terminal window everytime I start MC and
> I was just wondering if there was a way around this.
>
> Thanks for any help.
More information about the mc-devel
mailing list