Quick layout switching [solved]

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Quick layout switching [solved]

Post by Oracle911 »

Because i need it.
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
User avatar
Z0K4
Posts: 31
Joined: 13. Sep 2011, 06:39
Location: Split, Croatia

Re: Quick layout switching

Post 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.
Image
Ubuntu - African word for: "Slackware is too hard for me!"
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: Quick layout switching

Post 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.
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: Quick layout switching

Post 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.
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Quick layout switching

Post by thenktor »

I don't have XFCE here, but it should be something like: right click on the panel -> add new plugin.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Quick layout switching

Post 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.
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: Quick layout switching

Post 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.
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Quick layout switching

Post 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:

Code: Select all

#slapt-get -i xfce4-xkb-plugin
and then looked for it like this:

Code: Select all

find / -name xfce4-xkb-plugin*
(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.
User avatar
Oracle911
Posts: 165
Joined: 30. Jun 2010, 16:52
Location: Slovakia

Re: Quick layout switching

Post by Oracle911 »

Tried the path, nothing happened. :|
I`m a chemist, please be patient.
http://img16.imageshack.us/img16/5466/01kh2.jpg
My avatar is that babe who i looking for (in flesh).


I will be the next Steve Jobs and Richard Branson.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Quick layout switching

Post 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).
Post Reply