--- Begin Message ---
Package: xmms
Version: 1.2.7-3
Severity: wishlist
Tags: upstream patch
Hello,
could command line switches be added to toggle the repeat and shuffle
mode?
TIA,
Jonathan Picht
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux lithium 2.4.20 #1 Don Apr 17 20:30:46 CEST 2003 i686
Locale: LANG=de_DE, LC_CTYPE=de_DE
Versions of packages xmms depends on:
ii libc6 2.3.1-16 GNU C Library: Shared libraries an
ii libglib1.2 1.2.10-8 The GLib library of C routines
ii libgtk1.2 1.2.10-14 The GIMP Toolkit set of widgets fo
ii xlibs 4.2.1-6 X Window System client libraries
-- no debconf information
--
http://www.a-k-s.net - Arbeitskreis Karlsruher Schüler
diff -u -r xmms-1.2.7/debian/xmms.1 xmms-1.2.7-changed/debian/xmms.1
--- xmms-1.2.7/debian/xmms.1 2003-04-20 12:07:05.000000000 +0200
+++ xmms-1.2.7-changed/debian/xmms.1 2003-04-20 12:09:05.000000000 +0200
@@ -6,7 +6,7 @@
.B xmms
[-efhmnprsvu]
[--enqueue] [--fwd] [--help] [--show-main-window] [--session] [--play]
-[--rew] [--stop] [--version] [--pause]
+[--rew] [--stop] [--version] [--pause] [--shuffle] [--repeat]
.I [files]
.br
.SH DESCRIPTION
@@ -75,6 +75,12 @@
.TP
.B "-u, --pause"
Pause current song.
+.TP
+.B " --shuffle"
+Toggle shuffle.
+.TP
+.B " --repeat"
+Toggle repeat.
.SH SEE ALSO
The web page for XMMS is at
.I http://www.xmms.org/
diff -u -r xmms-1.2.7/xmms/main.c xmms-1.2.7-changed/xmms/main.c
--- xmms-1.2.7/xmms/main.c 2002-02-27 15:30:28.000000000 +0100
+++ xmms-1.2.7-changed/xmms/main.c 2003-04-20 12:00:55.000000000 +0200
@@ -3093,6 +3093,8 @@
{"enqueue", 0, NULL, 'e'},
{"show-main-window", 0, NULL, 'm'},
{"version", 0, NULL, 'v'},
+ {"shuffle", 0, NULL, 'x'},
+ {"repeat", 0, NULL, 'y'},
{0, 0, 0, 0}
};
@@ -3125,6 +3127,12 @@
fprintf(stderr, "\n-f, --fwd ");
/* -f, --fwd switch */
fprintf(stderr, _("Skip forward in playlist"));
+ fprintf(stderr, "\n --repeat ");
+ /* --repeat switch */
+ fprintf(stderr, _("Toggle repeat"));
+ fprintf(stderr, "\n --shuffle ");
+ /* --shuffle switch */
+ fprintf(stderr, _("Toggle shuffle"));
fprintf(stderr, "\n-e, --enqueue ");
/* -e, --enqueue switch */
fprintf(stderr, _("Don't clear the playlist"));
@@ -3141,7 +3149,7 @@
struct cmdlineopt {
GList *filenames;
gint session;
- gboolean play, stop, pause, fwd, rew, play_pause;
+ gboolean play, stop, pause, fwd, rew, play_pause, shuffle, repeat;
gboolean enqueue, mainwin, remote;
};
@@ -3190,6 +3198,12 @@
printf("%s %s\n", PACKAGE, VERSION);
exit(0);
break;
+ case 'x':
+ opt->shuffle = TRUE;
+ break;
+ case 'y':
+ opt->repeat = TRUE;
+ break;
}
}
for (i = optind; i < argc; i++)
@@ -3247,6 +3261,10 @@
xmms_remote_play_pause(opt->session);
if (opt->mainwin)
xmms_remote_main_win_toggle(opt->session, TRUE);
+ if (opt->shuffle)
+ xmms_remote_toggle_shuffle(opt->session);
+ if (opt->repeat)
+ xmms_remote_toggle_repeat(opt->session);
}
void segfault_handler(int sig)
diff -u -r xmms-1.2.7/xmms.1.in xmms-1.2.7-changed/xmms.1.in
--- xmms-1.2.7/xmms.1.in 2002-01-21 15:22:30.000000000 +0100
+++ xmms-1.2.7-changed/xmms.1.in 2003-04-20 12:05:05.000000000 +0200
@@ -5,8 +5,8 @@
.B xmms
[\-h] [\-\-help] [\-n \fI<session>\fP] [\-\-session=\fI<session>\fP] [\-r]
[\-\-rew] [\-p] [\-\-play] [\-u] [\-\-pause] [\-s] [\-\-stop] [\-f]
-[\-\-fwd] [\-e] [\-\-enqueue] [\-m] [\-\-show\-main\-window] [\-v]
-[\-\-version] [\fIfilename\fP]...
+[\-\-fwd] [\-\-shuffle] [\-\-repeat] [\-e] [\-\-enqueue] [\-m]
+[\-\-show\-main\-window] [\-v] [\-\-version] [\fIfilename\fP]...
.SH DESCRIPTION
\fIXMMS\fP is the X Multimedia System. It is used to play audio and
other kinds of media files. By default XMMS can play MPEG audio, Ogg
@@ -40,6 +40,12 @@
.B \-f, \-\-fwd
Skip forward in playlist.
.TP
+.B \-\-shuffle
+Toggle shuffle.
+.TP
+.B \-\-repeat
+Toggle repeat.
+.TP
.B \-e, \-\-enqueue
Don't clear the playlist.
.TP
pgpWYDa7n0IAb.pgp
Description: PGP signature
--- End Message ---