You are not logged in.

#1 2016-09-16 06:55:33

regfaker
New Member
Registered: 2016-09-16
Posts: 3

fbxkb - layout text instead of flags - tip

hi bunsen fans,
I wanted to somehow switch keyoboard layout switcher to show me layout text (code) instead of flags. But as I searched fbxkb doc and source I realized that show images is hardcoded. So it leads to choose other keyboard layout switcher. But other solution is just simple and use lightweight fbxkb - generate images with layout text:

/usr/share/fbxkb/images:

for f in *.png; do l=`echo $f | sed 's/\.png//g' | tr '[:lower:]' '[:upper:]'`; sudo cp $f $f.bckp; sudo convert -size 60x40 canvas:none -pointsize 32 -font DejaVu-Sans-Bold -fill WhiteSmoke -gravity center -draw "text 0,0 '$l'" -antialias $f; done

(convert is part of imagemagick)
(original images are backed up as .bckp)
(of course you can variate it to your needs)

Icon images on panel problem:
I don't know if this is broader problem or not but some icon images on my panel are somehow interleaved, including these layout text images

fbxkb layout text image:
fbxkb-image_interleave  https://scrot.moe/image/Tctv

other apps icon images (firefox, terminal):
panel-icon_interleave  https://scrot.moe/image/TmdY

Is this panel related or Xorg or image data? How can I fix this?

Edit: Hey, after tint2 restart images are fixed.

Last edited by regfaker (2016-09-16 07:02:33)

Offline

#2 2016-09-16 07:04:24

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: fbxkb - layout text instead of flags - tip

regfaker wrote:

after tint2 restart images are fixed.

I think a compositor restart would also fix that.

Do you have an Intel graphics card?

Offline

#3 2016-09-16 08:12:36

regfaker
New Member
Registered: 2016-09-16
Posts: 3

Re: fbxkb - layout text instead of flags - tip

yes, VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
(Lenovo ThinkPad T440)

Last edited by regfaker (2016-09-16 08:19:51)

Offline

#4 2016-09-16 19:51:24

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: fbxkb - layout text instead of flags - tip

Try switching to the UXA acceleration method:

sudo mkdir -p /etc/X11/xorg.conf.d
sudo tee /etc/X11/xorg.conf.d/20-intel.conf << EOF
Section "Device"
	Identifier "Intel Graphics"
	Driver "intel"
	Option "AccelMethod" "UXA"
EndSection
EOF

If this doesn't help simply remove the file at /etc/X11/xorg.conf.d/20-intel.conf and reboot.

You could try the newer versions of the kernel, xserver-xorg-video-intel and libgl1-mesa-{dri,glx} from the jessie-backports repositories, they should offer better performance but at the expense of stability and security.

https://backports.debian.org/Instructions/

Offline

Board footer

Powered by FluxBB