Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-07-16 12:45:04

STANKAR
Member
Registered: 2013-07-16
Posts: 2

xfce4-xkb-plugin change font

Hi there,
I'm looking for config or settings for xkb where I can change font or color for text keyboard layout indicator.
I found via google that xfce4-xkb-plugin hasn't that config, but I saw in bug report for Ubuntu that is some Patch:

https://launchpadlibrarian.net/87888216/font_selection.patch

But I don't know how to use it (i suppose that i must download source of xfce4-xkb-plugin package and then apply it).
Is there someone who can try it ?

Distribution: Fedora 19
XFCE version: 4 latest (I removed xfce4-about big_smile )
xfce4-xkb-plugin version: 0.5.6

Offline

#2 2013-07-22 16:25:04

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,241

Re: xfce4-xkb-plugin change font

To change the colour, create an ~/.gtkrc-2.0 file in your home directory with the following content:

style "xkb-plugin"
{
	fg[NORMAL] = "#ff0000"
	fg[SELECTED] = "#ff0000"
	fg[ACTIVE] = "#ff0000"
}
widget "*xkb-plugin*"	style "xkb-plugin"

... and replace "#ff0000" (red) with the colour that you would like.

It appears that the font is hard-coded into the application (see: http://git.xfce.org/panel-plugins/xfce4 … kb-cairo.c) and I can't seem to override it. The properties screen, however, does allow you to change the text size between small, medium and large.

Offline

#3 2013-07-22 17:36:00

PaperNick
Member
From: Bulgaria
Registered: 2013-05-26
Posts: 49

Re: xfce4-xkb-plugin change font

It would be easier to create a text flag using Inkscape. That way you can easily change font and colour.

Here's an example of my text flags - Click
You can download them here

If you have any questions related with the creation of the flags, I can help you.

Cheers!

Offline

#4 2013-07-28 08:32:31

STANKAR
Member
Registered: 2013-07-16
Posts: 2

Re: xfce4-xkb-plugin change font

ToZ: thanks, I changed colour for all panels so now I don't need it for xkb widget smile

PaperNick: Thanks, I installed Inkscape and created my own flags smile It's simplier than it looks like

So it's SOLVED !

Offline

#5 2013-07-29 18:25:05

PaperNick
Member
From: Bulgaria
Registered: 2013-05-26
Posts: 49

Re: xfce4-xkb-plugin change font

Cool, glad you worked it out smile

Offline

Board footer

Powered by FluxBB