Using gtk-theme-switch

I hate to trouble the the forum with this question, particularly so since I directed it to the package's developer about a week ago and have not received the courtesy of an answer.
Am I correct to assume that in using gtk-theme-switch to set fonts that, once set, the same font is then used for all applications employing gtk-2? Looking at the program's little interface, I can't see how one might use it on, say, one program, then another one and so on. Precisely how is this thing used anyway?
jlowell

RdsArts,
Thanks for your reply.
I do not use a desktop environment, rather I use a WM and launch all applications from the WM's menu. If I understand you, when you say "It sets the 'base font' other GTK+2 apps use", you're saying that if I use gtk-theme-switch to set lucida 12, for example, the tool bar and menu fonts in all gtk+2 applications would be set to lucida 12 thereafter. Am I right about that?
jlowell

Similar Messages

  • Openbox Themes in gtk-theme-switch

    I've got a little problem with gtk-theme-switch, both Openbox, and gtk-theme-switch expect their respective themes to be in ~/.themes, obconf can tell the difference, and doesn't show those that won't work, gtk-theme-switch, however, shows all my Openbox themes, which it won't work with.
    I would be really grateful if someone could provide me with a solution, or of necessary, an alternate program to change GTK themes in a pure Openbox environment.

    It has two commands, switch, for old GTK1.x themes, and switch2 for GTK2 themes.
    I'll try gtk-chtheme and see if it makes any difference.
    Yep, gtk-chtheme doesn't show my Openbox themes, thanks.
    Last edited by Jaejae (2008-05-24 07:54:46)

  • [SOLVED]Ugly firefox again (cannot force FF to use gtk theme)

    For some reasons, my firefox is pretty ugly with default theme and I cannot force it to use gtk theme for scroll bar and other components ...
    yeah, kinda hard to understand what i meant :/. here is the screenshot (take a look closer on the right scroll bar)
    http://i81.photobucket.com/albums/j209/ … _scrot.png
    i wonder if we have anyway to force firefox use gtk like with Openoffice??
    thanks a lot:)
    Last edited by vlearner (2009-04-20 14:05:42)

    solved , i installed firefox with su before and everytime i run i have sudo firefox, but then for su, there is no gtkrc there lol
    Thanks , i haven never thought that my gtkrc s not in su acc, where i run ff:D
    Last edited by vlearner (2009-04-20 14:06:58)

  • [SOLVED] Having trouble making QT apps use GTK theme

    Hello everyone, I'm having trouble making QT apps use my GTK theme in openbox.
    Some apps seem to work just fine but others don't.
    ^Such as above, as you can see VLC is working, as is qtconfig, but k9copy and k3b are not.
    I've did the suggestions that are listed in the wiki. (http://tinyurl.com/ybhb7yr)
    And even rebooted after I did them, still no go.
    My .gtkrc-2.0 file simply contains:
    gtk-theme-name="Clearlooks_blackblue"
    gtk-icon-theme-name="Tango"
    Does anyone have any ideas why it's not working with k9copy and k3b/how to fix it?
    Thanks.
    Last edited by tgblb (2010-03-22 02:39:31)

    anonymous_user wrote:k9copy and k3b are KDE apps not Qt.
    Yes, but don't they use QT?
    And if not, what do they use? lol. And is there anyway to make them use my GTK theme?

  • Apps not using gtk theme

    Strange thing happens:
    I have installed some applications (firefox, pidgin, clementine, vlc) when gnome was not even installed (through xterm), and they seem to ignore the gtk theme I'm using.
    What should I do?

    It's the theme from Linux Mint. I've basically copied the folders to /usr/share/themes and .themes.
    Everything works fine except for these apps which were installed before gnome. I'm guessing it's all about some configurations that were made.
    EDIT: changed the theme but the issue is still there.
    Last edited by bogdan2011 (2012-06-29 22:41:27)

  • [SOLVED] Fluxbox and gtk theme

    I have a problem with fluxbox. Some programs using gtk themes (e.g. spacefm, audacious) have ugly grayish 'redmond' look. I have tried to follow this how-to:
    http://wiki.fluxbox.org/index.php?title … gtk_themes
    and also tried to switch theme with lxapperance and gtk-chtheme. No success. The gtk-chtheme shows a correct theme, so within the preview the theme is fine. However, it won't change the appearance of other windows. Some other programs like firefox or thunderbird change the theme.
    I have also tried to compile spacefm with gtk3 support and use adwaita theme. Again I got the ugly look. In other desktop managers, e.g. lxdm both spacefm and audacious look as expected.
    Last edited by kmiernik (2013-05-15 11:23:25)

    Thanks guys! It must have been something in the .config/gtk-3.0 folder. Once I removed it and created settings.ini like this one:
    [Settings]
    gtk-theme-name = Adwaita
    gtk-icon-theme-name = Tango
    gtk-fallback-icon-theme = gnome
    gtk-font-name = Sans 8
    gtk-auto-mnemonics = 1
    gtk-visible-focus = automatic
    I can have a normal appearance of gtk3 applications. Interesting thing is that this is exactly the same settings file I have tried before. Probably something else in the folder was overriding the theme.
    Last edited by kmiernik (2013-05-15 11:24:06)

  • Openbox Theme from GTK theme [beta]

    Something like this surely exists, here is my version..
    Creates an Openbox Theme from your chosen GTK Theme ... ..in 1), 2), 3)...
    1) you need to launch your theme changing from a script like this (instead of calling your GTK switcher directly)
    #!/bin/bash
    # call your gtk theme switcher and as it quits create a matching openbox theme
    # command for gtk theme switcher
    lxappearance
    # path to auto openbox theme generator script
    ~/bin/auto-openbox-theme
    # launch obconf (so you can select the newly made theme)
    obconf
    exit
    2) For that to work you also need this next script in ~/bin/auto-openbox-theme and made executable
    #!/bin/bash
    # Looks for the current GTK theme and automatically creates a matching Openbox theme
    # The script fails on themes not following the Clearlooks convention..
    # ..future improvements will account for this - for now the script politely fails on such themes.
    # function used to see if script is generating empty results from GTK it can't handle yet
    function emptycheck {
    if [ -s $myfile ]
    then
    echo "$myfile has data."
    else
    echo "$myfile is empty."
    xmessage "Sorry this gtk is not handled yet. You should not select the generated Openbox Theme this time."
    exit
    fi
    # main script #
    # copy ~/.gtkrc-2.0 to a new file and remove all data except theme name line (!d = don't delete)
    sed /gtk-theme-name/!d ~/.gtkrc-2.0 > ~/.gtk-match-openbox-info
    # remove string before gtk theme name and return info to this file (-i)
    sed -i s/gtk-theme-name=// ~/.gtk-match-openbox-info
    # strip off all (/g) speach marks (\") and return info to this file (-i)
    sed -i s/\"//g ~/.gtk-match-openbox-info
    # place the theme name in a variable
    mygtktheme=$(cat ~/.gtk-match-openbox-info)
    # copy file called mygtktheme to a new file
    sed /gtk_color_scheme/!d ~/.themes/"$mygtktheme"/gtk-2.0/gtkrc > ~/.gtk-match-openbox-info
    # strip the line down to just colours
    sed -i s/gtk_color_scheme\ =\ \"// ~/.gtk-match-openbox-info
    sed -i s/gtk-color-scheme\ =\ \"// ~/.gtk-match-openbox-info
    sed -i s/fg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/bg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/base_color\:#// ~/.gtk-match-openbox-info
    sed -i s/text_color\:#// ~/.gtk-match-openbox-info
    sed -i s/selected_bg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/selected_fg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/tooltip_bg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/tooltip_fg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/\"//g ~/.gtk-match-openbox-info
    # force \n to be a true line break so colours on individual lines
    sed -i s/\n/\\n/g ~/.gtk-match-openbox-info
    sed -i 's/\\//g' ~/.gtk-match-openbox-info
    # store some colours for use in Openbox theme
    # don't delete (!d) line number n and place it in a text file colournX
    # where X is used later to aid production of Openbox theme
    sed '1!d' ~/.gtk-match-openbox-info > /tmp/colour1V
    sed '2!d' ~/.gtk-match-openbox-info > /tmp/colour2W
    sed '3!d' ~/.gtk-match-openbox-info > /tmp/colour3X
    sed '4!d' ~/.gtk-match-openbox-info > /tmp/colour4Y
    sed '5!d' ~/.gtk-match-openbox-info > /tmp/colour5Z
    # check if we have empty data from unhandled GTK themes
    myfile="/tmp/colour1V"
    emptycheck
    myfile="/tmp/colour2W"
    emptycheck
    myfile="/tmp/colour3X"
    emptycheck
    myfile="/tmp/colour4Y"
    emptycheck
    myfile="/tmp/colour5Z"
    emptycheck
    # hold the above in varibles
    myV=$(cat /tmp/colour1V)
    myW=$(cat /tmp/colour2W)
    myX=$(cat /tmp/colour3X)
    myY=$(cat /tmp/colour4Y)
    myZ=$(cat /tmp/colour5Z)
    # make Openbox theme by replacing VWXYZ in template with colours
    sed s/VVVVVV/$myV/g ~/.themes/obthemetemplate/openbox-3/TEMPLATE > /tmp/obtheme
    sed -i s/WWWWWW/$myW/g /tmp/obtheme
    sed -i s/XXXXXX/$myX/g /tmp/obtheme
    sed -i s/YYYYYY/$myY/g /tmp/obtheme
    sed s/ZZZZZZ/$myZ/g /tmp/obtheme > ~/.themes/obthemetemplate/openbox-3/themerc
    # update rc.xml
    #urxvt -e /usr/bin/obconf
    3) AND you need this folder in your ~/.themes/ folder - download it, extract and copy to ~/.themes
    4) (optional but welcome) Post your fails, post your abusive and constructive criticism, and post your "hey why don't you use this 5million times better version here?"'s
    thanks, bye

    Works fine here. Thanks for the script, it's quite handy and I got at last a nice OB theme witch fits with the murrina chrome gtk theme

  • Gtk-theme-switch2

    hello all, i have install gtk-theme-switch2, so i can change my gtk theme in openbox pekwm all those minimal window managers.  And now when i'm back in XFCE i have to use both switch2 and the xfce theme manager to be able to completely change my theme.  I have completely removed gtk-theme-swith2 but still i can't change the theme at all.  Any ideas?

    finferflu wrote:Yes, gtk-theme-switch creates some entries in your ~/.gtkrc-2.0 file. You will have to remove the theme entries in there.
    that fixed it thanks a bunch

  • [Solved] Some GTK themes seem to only partially theme (black boxes)

    An example is Aurora, but I'd say 50% of what I have is giving me the same problem.
    There are no error messages, but the gnome-menu and panels have black rectangles where you'd expect different shades of color/gradients.
    Has aurora meant to have a black gnome-menu, or is something broken? Why do some themes work and others don't? Why are there no error messages?
    As far as I know I've installed all of the gtk themes. Are there any configuration options I can play with?
    Edit:
    lol, I fixed it seconds after posting this!
    I was missing: http://www.archlinux.org/packages/extra … es-extras/
    (everything else had been downloaded)
    Last edited by Bedtimes (2009-10-05 16:43:37)

    Some applications simply don't use the "usual" graphical toolkits, but their own. Chromium, LibreOffice, Firefox and Thunderbird are classical examples of this. While Firefox's and LibreOffice's integration with GTK is nowadays more than decent, you'll have to install [or create yourself] a specific theme for Chromium. I can't tell about Thunderbird as I don't use it.
    In Chromium, if you choose "Preferences → personal preferences → use GTK theme", you might get a good result either way, so try it if you still haven't.
    Last edited by olorian (2012-03-17 11:56:04)

  • Tialing window managers (dwm) and gtk themes

    Is it posable to use GTK themes with tialing window managers?, i.e. to make firefox less ugly.
    Also would it be posable to combine a tialing window manager with a pannel aplication, i.e. gnome-pannel. to make a more productive desktop expiriance?
    I like tialing aplications (Blender), but sofar the tialing window managers I have tryed(wmii and dwm) dont seem terably useable. I am looking for somwthing that works more like Blender, create tiles by hovering the mouse over a border, right click, split. this prosess would be folowed in reverce to get rid of a tile. currantly running aplications can be assighned to a tile from a drop down list in the corner. aplications started from eather a terminal, or a auto hiding pannel at the top of the screen, which also displays system infomation.
    Are there any DE's like this, or should i start coding one
    Last edited by Hessiess (2008-07-22 20:34:02)

    rson451 wrote:As for the rest, I've never used Blender so I have no clue what you are talking about.
    In Blender to subdivide the main window you right click on the border between two windows and select "Split Area" from the context menu, then you move the mouse to the place you want to split and click. If you start from a horizontal border you make a vertical split, and if you start from a vertical border you make a horizontal split. To remove a division you select "Join Areas" from the same context menu, and then click the window you want to remove. Windows have a sort of menu/status bar, and it has a popup menu from which you can select any of the "programs" (3d view, text editor, preferences, &c) that are part of Blender. Window borders can be dragged for resizing, of course.
    And no, I don't know of any WM that works like this. The closest is probably StumpWM or Ratpoison—you divide and join windows in the same way, but it's keyboard controlled: "^t s" makes a horizontal split, "^t S" is vertical, and there's keystrokes for entering resize mode and removing a division as well. The keystrokes are fine for creating and deleting windows (and even better if you rebind them to use the 0, 1, 2, 3 keys like Emacs), but resizing is a pain.

  • How to change gtk theme dialog box button appearance when using tab?

    Hi,
    I'm using candido as my gtk theme and have noticed that when a dialog box pops up (Yes / No), it is extremely difficult to tell which option is highlighted. How do I change this appearance? I searched through the gtkrc and even used gimp to manipulate the images used via trial and error to see if I found one that worked. Can someone familiar with gtk themes tell me which gtkrc or image to alter to affect this appearance?
    I use tab to select my option a ton and hate not being able to tell what I'm looking at.
    For reference,
    - here is the current look (can you tell which one is highlighted? It's "Cancel" -- just slightly bigger or a fine line around it) LINK
    - here is the gtkrc if that helps? LINK
    For one more point of clarification, I'm not talking about the button appearance on mouseover. I have identified that the button-prelight.png file changes that. I specifically am talking purely about a dialog popping up and then using the tab key alone to highlight through the options. I really like this theme, but this one thing drives me crazy. This appearance changes when I select different themes with lxappearance, so I've narrowed it down to being a gtk-theme issue, not my openbox theme or icon set.
    Many thanks!
    Last edited by jwhendy (2011-02-02 18:11:10)

    HI,
    Debug the program after you press the CANCEL button , you will get where the conrol is flowing , And instead of using
    Leave to screen '910'          use               Leave to screen 0.
    Regards,
    Madhukar Shetty

  • Use a gtk theme for one app and another for the whole system??

    I would like to know if is it possible to use a theme for one application and use another for the remaining of the system? I use OpenBox and I change themes with Lxappearance...
    Thanks,

    Uhh, thanks mauryck for the question and anonymous_user for the answer! I use a very slow gtk theme, and one program suffer from it, but this theme is so beautiful so I dont like to change. Never though about this solution, use a different theme only for this program!
    Sometimes the solution is so simple...

  • What's the correct way to make QT4/KDE4 apps use my GTK theme?

    I tried going to Computer -> System Settings -> Appearance and setting the widget style to GTK+ (instead of the default oxygen) but my computer crashes.  If I load xterm from kdm and try to run kwin for example, I get the following error message.
    "QGtkStyle cannot be used together with the GTK_Qt engine."
    and then it segfaults.
    http://wiki.archlinux.org/index.php/Uni … d_GTK_apps 
    This page says to use QGtkStyle, which comes bundled with QT 4.5.  I assume that is what I do with the previous procedure, but obviously that is giving me problems.  Any ideas?
    Fyi, this just started happening tonight when I rebooted my computer.  I've had it set to GTK+ for a while and my KDE apps rendered with my GTK theme, but when I rebooted it segfaulted loading the desktop and I haven't been able to get it to work since.  Any ideas?

    Maybe you should try typing "qtconfig" in the terminal. You can choose GTK+ then. Works for me. I didn't install anything special except the QT applications I use (including QTcreator), so I think "qtconfig" should be available when you have QT installed.
    Also look out for a ".kde" directory (?) in your home folder (even when you don't use KDE it might be that you have it). It could be that you've got some contradictory settings in some configuration files that are read when QT apps are started. I'm not sure on this one, though.

  • Possible to have certain apps use certain GTK theme??

    Hey guys I'm wondering if I can have certain apps use either a specific GTK theme (different from system-wide one in use) or none at all, much like OpenOffice does for me right now (I use a dark theme but it retains a light grey, I'm assuming default theme with Gnome).
    Any help appreciated, TIA

    I wrote a little script which does "export GTK2_RC_FILES=/path/to/openoffice.gtkrc" before opening OpenOffice.  I use a GTK theme that make apps like Eclipse and OpenOffice look horrible.  So I use a different gtkrc for them.
    I'm pretty sure exporting GTK2_RC_FILES will work with any GTK2 app.

  • Compiz gtk decorator not using metacity theme

    so for some reason the gtk decorator in compiz is not using the assigned metacity2 theme what I mean is that not mater what the theme the decorations stays the same
    example:
    the first image is using adawita theme while the second is zukitwo, in either case the decorations persists
    Last edited by nashod (2014-10-16 23:28:50)

    I set this at build time "OXYGEN_FORCE_KDE_ICONS_AND_FONTS 0", I don't know how it's controlled from user-space. But in any case, that's why, and that's what you should disable.

Maybe you are looking for

  • How can I restore my iTunes Library?

    Hi: To free up space in my MacBook, I deleted all the songs from my hard drive.  In Itunes, now some songs appear with the Cloud, but some don't.  When I click on one of those, I get a message that says that the original file can't be located.   On t

  • MAC mini and Photoshop CS6

    Dear all, I want to swich to MAC from my current Windows PC. I'm thinking about to use a MAC mini because I have a good external display, so the iMAC is not necessary. But I would like to know if the MAC mini is powerful for using Photoshop CS6 (imag

  • Errors occured during the Extraction.

    Hi Folks, I've transported Some of the HR data sources to the quality server,But when i check the data for 0HR_PT_2 DS in RSA3,I'm getting the message Errors occured during the Extraction.I checked for the details but nothing was there except Message

  • Why won't Aperture 2 support RAW files imported from Canon 60D when it does from my Olympus DSLR?

    Why won't Aperture 2 support RAW files imported from Canon 60D when it does from my Olympus DSLR?

  • Why does only one safari window?

    Only one safari window opens, how can I open multiple windows?