Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
third_party_apps:xchat [2009/04/17 16:17] – lau1 | third_party_apps:xchat [2022/05/23 01:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
It is inspired from rythmbox xchat perl plugin. | It is inspired from rythmbox xchat perl plugin. | ||
- | I added some checks so that it fails to load gracefully. | + | The script is now capable of launching gmusicbrowser |
- | + | It will load gmusicbrowser automatically upon startup | |
- | Struggling with actually | + | |
+ | If you close gmusicbrowser then use one of the command it will let you know that it needs restarting. | ||
+ | A new commands will let you do that. | ||
===== Installing the script ===== | ===== Installing the script ===== | ||
- | download | + | Download |
- | http:// | + | https:// |
==== Changing the message displayed ==== | ==== Changing the message displayed ==== | ||
- | |||
Edit the script (in your editor of choice) and update the message printed. | Edit the script (in your editor of choice) and update the message printed. | ||
<code perl> | <code perl> | ||
Line 21: | Line 21: | ||
my $playing =" | my $playing =" | ||
</ | </ | ||
- | |||
The script can display all the informations provided by Dbus to modify the output: | The script can display all the informations provided by Dbus to modify the output: | ||
Dbus provides album, artist, disc, length, title, track. | Dbus provides album, artist, disc, length, title, track. | ||
The current scrip displays artist - title - album | The current scrip displays artist - title - album | ||
- | as shown below. | + | As shown below. |
<code perl> | <code perl> | ||
Line 57: | Line 56: | ||
</ | </ | ||
- | if everything is fine Xchat will let you know buy printing the message | + | If everything is fine Xchat will let you know by printing the message |
< | < | ||
- | | + | |
</ | </ | ||
+ | |||
+ | |||
+ | ===== gmusicbrowser is not loaded already. ===== | ||
+ | |||
+ | |||
+ | The script will start it. | ||
+ | |||
+ | If you close gmusicbrowser and try to use a script command querying gmusicbrowser you will get a message telling you that it is not running. | ||
+ | You can start then start it using the command /gm_start. | ||
===== Commands available ===== | ===== Commands available ===== | ||
+ | |||
Line 71: | Line 80: | ||
What can it do ? | What can it do ? | ||
- | At the moment it can only do things when gmusicbrowser is running. It will not start it. | + | In xchat type |
- | + | ||
- | in xchat type | + | |
< | < | ||
/gm_help | /gm_help | ||
Line 81: | Line 88: | ||
< | < | ||
| | ||
- | * Script Version: | + | * Script Version: |
About: | About: | ||
* Author: Laurent Coudeur <####################"> | * Author: Laurent Coudeur <####################"> | ||
Commands: | Commands: | ||
+ | * /gm_start - starts gmusic browser when it has been closed. | ||
* /gm_play - Display the current song playing to a channel. | * /gm_play - Display the current song playing to a channel. | ||
* /gm_next - Skip to the next track. | * /gm_next - Skip to the next track. | ||
Line 95: | Line 103: | ||
</ | </ | ||
- | there you have it | + | There you have it |
- | * /gm_play does what it says on the tin. Displays the currently playing song information as set in previous paragraph. | + | |
+ | * /gm_start Starts gmusicbrowser if it's not present on dbus. It will not start a second instance. It pauses 4 seconds to allow the application to start. | ||
+ | * /gm_play does what it says on the tin. Displays the currently playing song information as set in previous paragraph. | ||
* /gm_next skips the current song | * /gm_next skips the current song | ||
* /gm_prev plays the previous song | * /gm_prev plays the previous song | ||
Line 109: | Line 118: | ||
===== Todo list ===== | ===== Todo list ===== | ||
- | Lots ;) | + | Any suggestions? |
- | + | ||
- | * Updating the page... | + | |
- | * Add command to start gmusicbrowser. | + | |
- | | + | |