Permalink
Browse files

update manual

  • Loading branch information...
1 parent d79b1a5 commit ff27024f20a6d4ab9795639a9f62e91a27c68f10 Aldis Berjoza committed Nov 21, 2010
Showing with 13 additions and 13 deletions.
  1. +1 −1 bin/playd.sh
  2. +12 −12 man/man1/playd.1
View
@@ -528,7 +528,7 @@ while [ $# -gt 0 ]; do
'jump' | '--jump' )
if [ -f "$PLAYD_PLAYLIST" ]; then
item_count=`awk 'END { print NR }' $PLAYD_PLAYLIST`
- if [ "$2" = 'rnd' ]; then
+ if [ "$2" = 'rnd' -o "$2" = 'random' ]; then
number=`jot -r 1 0 $item_count`
awk 'NR >= '$number' { print $0 }' "$PLAYD_PLAYLIST" > "$PLAYD_PLAYLIST.tmp"
awk 'NR < '$number' { print $0 }' "$PLAYD_PLAYLIST" >> "$PLAYD_PLAYLIST.tmp"
View
@@ -26,7 +26,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
.\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd November 20, 2010
+.Dd November 21, 2010
.Dt playd 1
.Os
.\"#############################################################################
@@ -111,8 +111,7 @@ Adjust brightness by value (relative by default). If
key is specified, brightness will be set to absolute value. Value can be in
range -100 to 100.
.\"========================================================================= cat
-.It Cm cat Xo
-.Xc
+.It Cm cat
This will cat playlist (similar to
.Cm list
)
@@ -139,8 +138,7 @@ one of
.Nm
commands
.\"==================================================================== filename
-.It Cm filename Xo
-.Xc
+.It Cm filename
Display current file name (with full path) that mplayer is playing.
.\"======================================================================= gamma
.It Cm gamma Xo
@@ -162,21 +160,25 @@ key is specified, hue will be set to absolute value. Value can be in range
-100 to 100.
.\"======================================================================== jump
.It Cm Jump Xo
-.Ar song_id
+.Ar song_id | random
.Xc
-Jump to song_id
+Jump to song_id or random position in playlist
.\"======================================================================== list
.It Cm list
Show default playlist.
.\"===================================================================== longcat
-.It Cm longcat Xo
-.Xc
+.It Cm longcat
This will cat playlist (similar to
.Cm longlist
)
.\"==================================================================== longlist
.It Cm longlist
Show default playlist. Each item is displayed with full path.
+.\"======================================================================== loop
+.It Cm loop Xo
+.Ar count | random
+.Xc
+Loop current song count times. If no argument, given, then don't loop.
.\"======================================================================== mute
.It Cm mute
Mute mplayer slave.
@@ -211,9 +213,6 @@ Play default playlist. Mplayer slave will be automatically started if necessary.
.\"==================================================================== previous
.It Cm previous
Play previous playlist item.
-This only works as expected if playlist have unique filenames (including full
-path). Previous playlist entry will be the one before first matching filename in
-playlist.
.\"=================================================================== randomise
.It Cm randomise
This will randomise playlist, but won't start playing it... you'll need to run
@@ -342,6 +341,7 @@ play -p
playlist -P
previous prev
randomise rnd
+random rnd
restart -R
seek -s
stop -q

0 comments on commit ff27024

Please sign in to comment.