From: Christophe-Marie D. <chm...@gm...> - 2009-03-25 00:22:35
|
Thanks for the useful informations! Indeed, I want to change only the color theme of the terminal that called the command. Even if it is not (yet) possible (should I submit a request?), as far as I know, it would be the only terminal scriptable through dbus, which is pretty cool :). I think there is no way to do such things with gnome-terminal nor all the non-vte terms. I checked forums to figure out how to change the colors when you start a specific program, and even if it is a feature that a lot of people want, I could not find an answer. The fact that roxterm uses dbus was the reason why I hoped it could be possible. Sweet! If you implement your idea of using a environment variable, it could be nice if you kept the way to impact all the open terms globally. Even if it is not what I am trying to do right now, some people could like it. On Tue, Mar 24, 2009 at 8:14 PM, Tony Houghton <h...@re...> wrote: > On Tue, 24 Mar 2009 10:39:34 +0100 > Christophe-Marie Duquesne <chm...@gm...> wrote: > >> I would like to know if there is a way to change the roxterms colors >> of a given running terminal through dbus. This way I could script some >> color changes depending on the application I am running. I did not >> find any information about that in the manpage, but I figured this >> could be possible... > > It might be possible to do something a little bit like that, but I > couldn't get the released version to accept signals from dbus-send > because its (roxterm's) filter is too strict and only accepts messages > from a named sender. I've lifted that restriction and managed to get it > to work with this: > > dbus-send --session /net/sf/roxterm/Options \ > net.sf.roxterm.Options.StringOption \ > 'string:Colours/GTK' 'string:background' 'string:#ffffff' > > For some reason it won't work if I add --dest=net.sf.roxterm.Options or > --dest=net.sf.roxterm.Options. I don't fully understand dbus even though > I've used it in my programming, does anyone? :-/ > > Anyway, I don't think that's really what you want, because that would > change all open terminals using the colour scheme "GTK". Instead I think > I should add an environment variable so you can find a unique id for the > current terminal and switch between colour schemes and profiles in it, > eg: > > dbus-send --session /net/sf/roxterm/Options \ > net.sf.roxterm.Options.SetColourScheme \ > "string:$ROXTERM_ID" "string:GTK" > > -- > TH * http://www.realh.co.uk > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > rox-users mailing list > rox...@li... > https://lists.sourceforge.net/lists/listinfo/rox-users > -- Christophe-Marie Duquesne |