Stable: 2.5.2
Development: 2.6-alpha3
Hello,
I would suggest stupid feature - to restart playing the current song via command line parameter.
If I have following bindings in .fvwm2rc :
# start/stop list ( Ctrl + >/|| button )
Key F15 A C Exec ~/bin/mocp_startstop.sh
# toggle pause ( >/|| button )
Key F15 A N Exec mocp -G
# prev ( 'back' button )
Key F13 A N Exec mocp -r
# next ( 'forward' button )
Key F14 A N Exec mocp -f
Nice to have:
# replay current song ( Ctrl + 'back' button)
Key F13 A C Exec mocp ...
Some workarounds as to go to the previous and then to the next song may not work in case of the first song in the playlist and vice versa for next-previous and the last song.
I hope it is comprehendable and I have not missed such a suggestion already written somewhere.
By the way many thanks for MOC, the best player from those I have tried so far.
For people who like my bindings the mocp_startstop.sh script looks like:
#!/bin/bash
if pidof mocp > /dev/null ; then
# mocp running
if mocp -i | grep STOP > /dev/null ; then
#echo "MOCp started, starting playing..."
mocp -p
else
#echo "MOCp playing, stopping playing..."
mocp -s
fi
else
#echo "Starting MOCp, starting playing..."
mocp -S
sleep 1
mocp -p
fi
golemj
Tue, 2008-07-15 01:36
Permalink
What about backward second seeking?
This command will seek to beginning of song:
mocp -k -`mocp -i | grep CurrentSec: | sed -e 's/CurrentSec: //'`
Only problem is that it works only in PLAY state.
geronime
Tue, 2008-07-15 09:58
Permalink
Missing in the manual page.
Nice, I have not found it in the manual, simply because it is not there:
Maybe the manual page should be updated. ;)
I have moc 2.5.0-alpha3 installed through gentoo portage tree.
Anyway thanks for hint, this will do.
golemj
Thu, 2008-07-17 21:00
Permalink
That is true.
It is not in man page but it is in 'mocp -h' output.
Sure that it is not good but I've get used to different help and man page (or info page if exists) in *nix programs.