FvwmXMMS - control XMMS from within Fvwm
Run this module from your StartFunction:
AddToFunc StartFunction + I Module FvwmXMMS
Then you can send commands to FvwmStorage, e.g.:
Key XF86AudioNext A N SendToModule FvwmXMMS next Key XF86AudioPrev A N SendToModule FvwmXMMS prev
FvwmXMMS is a fvwm module written in Perl. It lets you control XMMS by sending commands to this module.
Copy the file FvwmXMMS in your fvwm module directory, e.g.:
sudo cp FvwmXMMS $(fvwm-config -m)/
During initialization, FvwmXMMS gets config info from fvwm’s module configuration database (see fvwm(1), section MODULE COMMANDS). Avail- able options are discussed below
*FvwmXMMS: autostart play next prev prefs show
List of commands that automatically start XMMS if it’s not already running. Defaults to play next prev prefs show.
*FvwmXMMS: autoplay next prev
List of commands that automatically start playing. Defaults to next prev
*FvwmXMMS: cmd xmms
Command to start the XMMS program. Defaults to xmms
Show XMMS as icon when starting it
Show normal window when starting XMMS
Run the module, supposedly from StartFunction in .fvwm2rc:
Use SendToModule to send commands to FvwmXMMS. e.g.:
SendToModule FvwmXMMS quit
Valid commands are:
- Start XMMS if it is not already running.
- Start playing
- Stop playing
- Quit XMMS if it is running
- Skip forward to next track in the playlist.
- Skip backward to previous track in the playlist.
- Show the preferences windows of XMMS
- Hide XMMS mainwindow
- Show XMMS mainwindow
- Deiconify XMMS and warp to its window
- Deiconify all XMMS windows
- Iconify all XMMS windows
- Turn on shuffle mode
- Turn off shuffle mode
- Turn on repeat mode
- Turn off repeat mode
- Go forward 1 second in current track
- Go backward 1 second in current track