Page 1 of 3
Quick layout switching [solved]
Posted: 12. Nov 2011, 21:18
by Oracle911
Because i need it.
Re: Quick layout switching
Posted: 13. Nov 2011, 07:24
by Z0K4
Which layout? Keyboard? If that is so... what DE/WM are you using? If it's XFCE take a look at
this
Or: If it is keyboard layout (generally) you could do next:
Code: Select all
cp /{usr/share,etc}/X11/xorg.conf.d/90-keyboard-layout.conf
nano /etc/X11/xorg.conf.d/90-keyboard-layout.conf
(You must be super user to edit those files)
Now under 'driver' section in that file put something like this:
Code: Select all
Option "XkbOptions" "grp:alt_shift_toggle"
Option "XkbLayout" "xx,yy"
Where xx is your primary and yy your secondary keyboard layout. Save the file and reboot. Now Alt+Shift should change your layout (really) quickly.
Note: if etc/X11/xorg.conf.d is empty copy just the 'Screen' section from /etc/X11/xorg.conf and put it in the new file /etc/X11/xorg.conf.d/50-screen.conf
Good luck.
Re: Quick layout switching
Posted: 13. Nov 2011, 15:35
by Oracle911
Z0K4 wrote:Which layout? Keyboard? If that is so... what DE/WM are you using? If it's XFCE take a look at
this
Good luck.
Yes this is it.
EDIT: How can i check the dependencies?
EDIT2: It seems like it is installed, but somehow i can't ad it to my panel, because i can't find it.
Re: Quick layout switching
Posted: 16. Nov 2011, 07:04
by Oracle911
Still asking this:
Oracle911 wrote:
EDIT2: It seems like it is installed, but somehow i can't ad it to my panel, because i can't find it.
Re: Quick layout switching
Posted: 16. Nov 2011, 08:47
by thenktor
I don't have XFCE here, but it should be something like: right click on the panel -> add new plugin.
Re: Quick layout switching
Posted: 16. Nov 2011, 11:29
by mimosa
In this case it's probably fine to have taken it directly from that link, but it's a good idea to get into the habit of checking
1) the repos (gslapt/slapt-get)
Code: Select all
root[vanilla]# slapt-get --search xfce4-xkb-plugin
xfce4-xkb-plugin-0.5.3.3-i486-3gv [inst=no]: xfce4-xkb-plugin (keyboard layout applet for xfce)
2) SRC (sourcery/slapt-src)
and only then
3) cautiously looking elsewhere.
If you do it in that order, it will not only be less work, it is also more likely to fit in with your system.
And maybe you should read up a bit on how xfce works

, though it's generally fairly intuitive between right clicking and configuration items on the menu.
Re: Quick layout switching
Posted: 16. Nov 2011, 21:30
by Oracle911
Thank you, you helped a lot, but what is the route to its launch file?
Because i can't find it in /usr/bin.
Re: Quick layout switching
Posted: 16. Nov 2011, 22:22
by mimosa
It's very possible that if you installed it from the repos, it would integrate itself with the desktop without your needing to do anything - so you could try that.
I just did so:
and then looked for it like this:
(where the * is a wildcard, as I expect you know)
I suspect the correct path is:
Code: Select all
/usr/libexec/xfce4/panel-plugins/xfce4-xkb-plugin
but the way you installed it may have put it somewhere else, or that may not in fact be the executable. I suggest first try that path and see what happens, then try installing from the repos using slapt-get. I'm not using xfce so can't be sure.
Re: Quick layout switching
Posted: 16. Nov 2011, 22:36
by Oracle911
Tried the path, nothing happened.

Re: Quick layout switching
Posted: 16. Nov 2011, 22:47
by mimosa
So try looking for it with find. You may see something similar. If not, your best bet is to install from the repos, and you may not need to do anything (reboot though).