Profiles and Colour Schemes

2012-08-01
2013-02-21
  • Timothy J. Bruce

    Is there a way to bind a Colour Scheme to a specific profile. In other words,
    when I launch a new tab with a specific profile I can load a corresponding
    Colour Scheme?

    My default scheme is a white background, but when I load a profile to ssh into
    a specific server, I'd like it to load a Colour Scheme with a different
    background color so I can easily tell that I'm on a specifc remote system (in
    fact, I have several different remote sessions I want to have with different
    color backgrounds).

    Thanks

     
  • Tony Houghton

    Tony Houghton - 2012-08-02

    There isn't a way to bind a colour scheme to a profile, but you can also
    specify the colour scheme on the command line with --colour-scheme, --color-
    scheme or -c.

     
  • lwoggardner

    lwoggardner - 2012-10-07

    Or invoke ssh via a custom command that calls dbus...

    ~~~~~~

    !/bin/sh

    SERVER=$1
    COLOUR_SCHEME=$2

    dbus-send --session /net/sf/roxterm/Options \ net.sf.roxterm.Options.SetColourScheme string:$ROXTERM_ID string:$COLOUR_SCHEME

    ssh $SERVER
    ~~~~~

     
  • Tony Houghton

    Tony Houghton - 2012-10-07

    I think that dbus command would change the scheme of all open terminals, which probably isn't what's wanted.

    Anyway, in the next version I'll add a profile option to bind a colour scheme.

     
  • lwoggardner

    lwoggardner - 2012-10-08

    That would be ideal however this dbus script is working for me - opening a new window or tab the colour scheme only applies to that tab.

    Of course if I then open a profile that doesn't use this script then that new tab/window gets whatever colour scheme is current

     
    Last edit: lwoggardner 2012-10-08
  • Tony Houghton

    Tony Houghton - 2013-02-21

    I've just added this option, you'll find it at the bottom of the Appearance section in the Profile editor. It isn't released yet, but you can try it by pulling from git.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks