maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Toggle status from the command-line or desktop widget? (https://talk.maemo.org/showthread.php?t=47717)

lreeves 2010-03-18 21:05

Toggle status from the command-line or desktop widget?
 
I'd like to flip my availability for specific accounts between on and off in a quicker fashion than drilling through the availability status panel. Essentially I have a couple MSN accounts and Skype, and I want Skype to be always on but when I leave my desktop I'd like to jump onto MSN quickly. Is there a way to do this from any current program, or even a D-BUS method I can use to toggle status like that?

rambo 2010-03-18 21:13

Re: Toggle status from the command-line or desktop widget?
 
I'm just about sure you can use DBUS to adjust the status' as you like, sniff the bus while changing the status the traditional way and then make a small script to do the DBUS calls you need

lreeves 2010-03-18 21:23

Re: Toggle status from the command-line or desktop widget?
 
Quote:

Originally Posted by rambo (Post 572448)
I'm just about sure you can use DBUS to adjust the status' as you like, sniff the bus while changing the status the traditional way and then make a small script to do the DBUS calls you need

I actually did that and generated quite a large DBUS log already :) Eventually I'll sift through it but I was hoping that there'd be an easier way or a documented API at least.

rambo 2010-03-19 06:56

Re: Toggle status from the command-line or desktop widget?
 
Quote:

Originally Posted by lreeves (Post 572466)
I actually did that and generated quite a large DBUS log already :) Eventually I'll sift through it but I was hoping that there'd be an easier way or a documented API at least.

Yeah, there is a lot of stuff going on in that bus. It probably is documented somewhere in the Telepathy APIs.

lreeves 2010-03-19 15:11

Re: Toggle status from the command-line or desktop widget?
 
I found some nice Python bindings for Telepathy that seem like they'll do the trick, thanks!

Matan 2010-03-19 15:12

Re: Toggle status from the command-line or desktop widget?
 
Can you share your findings?

lreeves 2010-03-19 17:24

Re: Toggle status from the command-line or desktop widget?
 
Quote:

Originally Posted by Matan (Post 573458)
Can you share your findings?

Definitely, I'm going to play with it on the weekend and I'll post whatever I come up with.


All times are GMT. The time now is 21:02.

vBulletin® Version 3.8.8