Fedora Linux Support Community & Resources Center
Old 11th September 2010, 03:02 PM
warpino Offline
Registered User
Join Date: Sep 2008
Posts: 46
Changing gnome-terminal profile from command line

Hi all,

what I'm trying to do is swittching to a different gnome-terminal profile when doing "su" or "su -".
What I also want to do is reverting back to the previous profile when exiting from su.

I've tried many different things:

1) using the setterm command. This is nice, but only works with 8-bit colors, right? I want the fancy 32-bit colors gnome-terminal appearance.

2)setting the PS1 environment variable: same as above

3) using the gconftool-2 command. This is the most attractive way but a bit cumbersome:

as far as I've seen the current tab/window profile is not stored anyway, so I have to write a script with gnome-terminal --save-config=FILE | grep ProfileID in order to know what the current profile is,

backup the current profile gconf keys with gconftools-2 --dump

use gconftool-2 --set and change the colors in this way

so far it's quite ok. But then how can I revert back to the previous profile? a gconftool-2 from the new shell is not going to work (I guess because gconfd is not runnig for the new (super)user.

Does anyone have any suggestion for all this?


Reply With Quote

changing, command, gnometerminal, line, profile

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop Launcher command line from terminal? bg3075 Using Fedora 1 28th June 2009 03:35 PM
Changing services that start at boot via the command line k4dgw Using Fedora 2 22nd October 2004 11:44 PM

Current GMT-time: 21:18 (Thursday, 17-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat