LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   change keyboard layout under xfce (https://www.linuxquestions.org/questions/slackware-14/change-keyboard-layout-under-xfce-897037/)

idnotcrae 08-12-2011 05:59 PM

change keyboard layout under xfce
 
i can't change the layout under xfce it was pretty fine under kde, used to change it with ctrl+alt+k ,, and also i modified custom change with ctrl+space ,, but it wont work with xfce

and also i wanna know the the location of the directory like " ~/.kde/Autostart " for xfce.

Tribulation 08-12-2011 09:49 PM

Most can be found in Settings > Window Manager. You can create application shortcuts though the keyboard utility which is under Settings.

idnotcrae 08-12-2011 10:51 PM

Quote:

Originally Posted by Tribulation (Post 4441413)
Most can be found in Settings > Window Manager. You can create application shortcuts though the keyboard utility which is under Settings.

settings > system settings > shourtcuts and gestures > global keyboard shortcuts

only "KDE keboard key layout switcher" option and i modified it but does not work.

Tribulation 08-12-2011 11:08 PM

System settings is for KDE. You need to go to the Window Manager option in the Settings menu and choose the keyboard tab.

catkin 08-12-2011 11:08 PM

From the Xfce forum: "You can try to install xfce4-xkb-plugin and to add it to your panel, it allows you to quickly change the current keyboard layout. The feature to add a keyboard shortcut to change among the layout added in xfce4-settings is planned for 4.10".

Alternatively you could try Xfce Settings -> Keyboard -> Application shortcuts -> Add -> Command: setxkbmap -layout fr (adjust as required) -> OK -> <press the key combination you want>

idnotcrae 08-12-2011 11:27 PM

Quote:

System settings is for KDE. You need to go to the Window Manager option in the Settings menu and choose the keyboard tab.
i can't find anything related to changing the layout there.

Quote:

Alternatively you could try Xfce Settings -> Keyboard -> Application shortcuts -> Add -> Command: setxkbmap -layout fr (adjust as required) -> OK -> <press the key combination you want>
it works fine , is there a way lemme toggle between the two layouts instead of assigning each one a shortcut !

catkin 08-12-2011 11:57 PM

Quote:

Originally Posted by idnotcrae (Post 4441457)
is there a way lemme toggle between the two layouts instead of assigning each one a shortcut !

You could have a script that does the toggling and set the application shortcut to call the script. Unfortunately I cannot find a command that reports the current keymap. A workaround would be for the script to write a note of the last map it set which it could read to find out the current map and then set the other.

That is not very robust because, if the file is permanent, it has a 50% chance of indicating the wrong map on initialisation (logon? boot?). Ideally the file would be removed during initialisation. For interactive use that might be "good enough", especially if the script also flashed up a notification of which keyboard it had set.

Tribulation 08-13-2011 12:07 AM

Quote:

Originally Posted by idnotcrae (Post 4441457)
i can't find anything related to changing the layout there.

Did you go to Window Manager or Window Manager Tweaks?

idnotcrae 08-13-2011 12:43 AM

1 Attachment(s)
@katkin i think changing kb layout is trivial n i don't need to write a script 4 it anyway and setxkbmap is good :), but for additional info , can "scim" help here !!

@tribulation he is a shot of window manager's keyboard tab


i went through it all but i could not find a shortcut for changing layout so i can set, and also i can't add new shortcuts only modify.

Diantre 08-13-2011 12:46 AM

Quote:

Originally Posted by idnotcrae (Post 4441457)
it works fine , is there a way lemme toggle between the two layouts instead of assigning each one a shortcut !

Maybe the xfce4-xkb-plugin can help you there.

Tribulation 08-13-2011 12:49 AM

Oh I see, I misunderstood what you were looking for, sorry about that.

idnotcrae 08-13-2011 01:53 AM

Quote:

Maybe the xfce4-xkb-plugin can help you there.
i installed it, but i dont know where it's location to run it :D ,, how i can add it to the panel !
Quote:

Oh I see, I misunderstood what you were looking for, sorry about that.
it's okay ,, thank u for interest :)

Tribulation 08-13-2011 10:56 AM

Quote:

Originally Posted by idnotcrae (Post 4441546)
i installed it, but i dont know where it's location to run it :D ,, how i can add it to the panel !

If you've installed it you should be able to right click on the panel, choose to add new item, and find it in the list. That's how it's worked for me, in any case.

idnotcrae 08-13-2011 10:45 PM

@tribulation yes it works for me too now :)

Tribulation 08-14-2011 12:08 AM

Glad I could provide some answers.


All times are GMT -5. The time now is 12:07 PM.