Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
third_party_apps:xchat [2009/04/26 11:49] – typo lau1 | third_party_apps:xchat [2009/04/30 18:20] – lau1 | ||
---|---|---|---|
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 |
- | + | ||
- | the script is now capable of launching gmusicbrowser | + | |
It will load gmusicbrowser automatically upon startup | It will load gmusicbrowser automatically upon startup | ||
If you close gmusicbrowser then use one of the command it will let you know that it needs restarting. | If you close gmusicbrowser then use one of the command it will let you know that it needs restarting. | ||
- | A new commands | + | A new commands |
+ | ===== Installing the script ===== | ||
+ | Download it from | ||
+ | https:// | ||
- | ===== Installing the script ===== | ||
- | download it from | ||
- | http:// | ||
==== 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 24: | 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 60: | Line 56: | ||
</ | </ | ||
- | if everything is fine Xchat will let you know by printing the message | + | If everything is fine Xchat will let you know by printing the message |
< | < | ||
- | | + | |
</ | </ | ||
+ | |||
+ | |||
===== gmusicbrowser is not loaded already. ===== | ===== gmusicbrowser is not loaded already. ===== | ||
- | The script will start it and wait 4 seconds. | + | The script will start it. |
- | It is possible that your machine is slower to load gmusicbrowser. | + | |
- | In that case the script will not load correctly as it has not waited long enough. | + | |
- | < | + | |
- | | + | |
- | Error loading '/ | + | |
- | | + | |
- | </ | + | |
- | If gmusicbrowser loads anyway then you just need to update the script. | + | If you close gmusicbrowser and try to use a script |
+ | You can start then start it using the command /gm_start. | ||
- | Search the script file around the line 150 for <code perl> | ||
- | change it to 6 or more to lengthen the time margin your script will wait before it attempts to connect via Dbus. | ||
===== Commands available ===== | ===== Commands available ===== | ||
+ | |||
Line 89: | Line 80: | ||
What can it do ? | What can it do ? | ||
- | in xchat type | + | In xchat type |
< | < | ||
/gm_help | /gm_help | ||
Line 97: | Line 88: | ||
< | < | ||
| | ||
- | * Script Version: | + | * Script Version: |
About: | About: | ||
* Author: Laurent Coudeur <####################"> | * Author: Laurent Coudeur <####################"> | ||
Line 112: | Line 103: | ||
</ | </ | ||
- | there you have it | + | There you have it |
* /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_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. | ||
Line 127: | Line 118: | ||
===== Todo list ===== | ===== Todo list ===== | ||
- | any suggestions | + | Any suggestions? |