Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-12-2006, 08:19 PM
|
#1
|
LQ Newbie
Registered: Apr 2006
Posts: 17
Rep:
|
I have 2problems in slackware 10.2
hi
I just have aprblem in layout options
I ran xorgconfig and chose my language (arabic)
also I chose alt+shift groups to change between arabic and english languages
but I couldn't use alt+shift to change layouts at all
I can just use mouse to change between them and also alt+ctrl+k
to change to arabic only
I didn't have this problem with dropline gnome I guess but now I use kde 3.5 and also I adjusted layout options in control center but it is not working .
so what can I do to fix that ?
2)
also some gtk applications use arabic (my local language ) in their buttons and I'd like to make it use just english (I've only kde installed and I don't have gnome ).
also some gtk applicaions (not all ) like xine have very small font in their options though I adjusted "gtk style and fonts " in control center .
thanx
|
|
|
04-13-2006, 06:43 AM
|
#2
|
Member
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316
Rep:
|
Did you installed the language file for arabic ? if not do so, you need to enable arabic in the KDE CC in Regional & Accessibility go throw the stuff there.
I found it easier to add to the xorg.conf file setting for language switch, you can try it here example from my xorg.conf:
Code:
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us,il"
Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"
EndSection
|
|
|
04-13-2006, 07:15 AM
|
#3
|
LQ Newbie
Registered: Apr 2006
Posts: 17
Original Poster
Rep:
|
I did all of this man before
and even added this line to xorg.conf but invain
|
|
|
04-13-2006, 03:01 PM
|
#4
|
LQ Newbie
Registered: Apr 2006
Posts: 17
Original Poster
Rep:
|
here's also what I found in the kde help center , but I don't know how to do this
Code:
In XFree86 prior to version 4.3.0 non-latin layouts mutually included latin group and this group was the default thus pressing Ctrl+Alt+k always yielded the right combination. From version 4.3.0 by default all layouts contain only one group thus non-latin layouts may not work here.
Possible solutions are:
add your layout to $nonlatin or $oldlayouts lists in /etc/X11/xkb/rules/xfree86 or the location of the xkb rules on your computer.
Change the shortcut to something language neutral, e.g. Ctrl+Menu
Turn on the option to include the “us” group in your layout (effectively the same as solution 1).
|
|
|
04-13-2006, 04:21 PM
|
#5
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
To setting arabic, use this example in console: setxkbmap en_US (change en_US to the abreviation of your language).
Group switching does not work for me (and as I can see for a alot of people too).
|
|
|
04-13-2006, 08:30 PM
|
#6
|
LQ Newbie
Registered: Apr 2006
Posts: 17
Original Poster
Rep:
|
so , no approperiate solution for this ?
|
|
|
04-13-2006, 09:05 PM
|
#7
|
Member
Registered: Dec 2005
Posts: 140
Rep:
|
|
|
|
04-14-2006, 07:49 AM
|
#8
|
Member
Registered: Dec 2005
Posts: 140
Rep:
|
You can add the following command to /etc/profile , ~/.profile or ~./bashrc:
Code:
# Specify Arabic keyboard:
setxkbmap -model pc104 -layout us,ar -variant ,digits -option grp:alt_shift_toggle,grp:ctrl_shift_toggle
Note:
This command is work only after Xwindow start.
So, you can't use it from system initial startup scripts.
|
|
|
04-14-2006, 11:20 AM
|
#9
|
LQ Newbie
Registered: Apr 2006
Posts: 17
Original Poster
Rep:
|
thanx man for help but it didn't work
am reading the topic in linux for me , may I find some thing to solve my problem
|
|
|
04-14-2006, 05:17 PM
|
#10
|
LQ Newbie
Registered: Apr 2006
Posts: 17
Original Poster
Rep:
|
still can't find asolution
the problem is that "/etc/X11/xkb/symbols/ar" doesn't recognize
those keys ( alt + shift)
I tried to add shift to it by adding :
Code:
default
xkb_symbols "pc104" {
include "us(pc104)"
replace key <RALT> { [ Mode_switch, Multi_key ] };
replace key <RSHIFT> { [ Mode_switch, Multi_key ] };
replace key <LALTT> { [ Mode_switch, Multi_key ] };
replace key <LSHIFT> { [ Mode_switch, Multi_key ] };
include "iso9995-6(basic104)"
modifier_map Mod3 { Mode_switch };
};
(i took this syntax from another file but it was also invain )
also edited : /root/.kde/share/config/kdeglobals
and added alt+shift to change between layouts but it didnot work
Last edited by hackobacko; 04-14-2006 at 05:45 PM.
|
|
|
04-15-2006, 02:39 AM
|
#11
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Look at /etc/X11/xkb/symbols/pc/ar. I think X server now looks here.
|
|
|
04-15-2006, 03:16 AM
|
#12
|
Member
Registered: Dec 2005
Posts: 140
Rep:
|
You must restart X.
hit Ctrl-Alt-Backspace.
but you can run setxkbmap command from konsole or xterm:
Code:
setxkbmap -model pc105 -layout us,ar -variant ,digits -option grp:alt_shift_toggle,grp:ctrl_shift_toggle
it's will be executed directly without X restarting.
|
|
|
04-15-2006, 03:19 AM
|
#13
|
LQ Newbie
Registered: Apr 2006
Posts: 17
Original Poster
Rep:
|
actually man the problem is not this file or the other
the problem is that how to add layout (alt+shift) in this file and also how to make this file recognize shift-alt keys so I copied the section "
Code:
xkb_symbols "generic104" {
include "srvr_ctrl(xfree86)"
include "us(basic)"
key <RTSH> { [ Shift_R ] };
key <LALT> { [ Alt_L ] };
key <RCTL> { [ Control_R ] };
key <RALT> { [ Alt_R ] };
in this file hoping it will recognize those keys but it didn't
also the file "/etc/X11/xkdb/rules/xorg " has to be edited by uncomment the $nonltin and arabic in it and I have to add layout options for alt+shift keys in it but I don't know how
I tried many ways but it's all wrong
|
|
|
04-15-2006, 06:51 AM
|
#14
|
LQ Newbie
Registered: Apr 2006
Posts: 17
Original Poster
Rep:
|
I found asolution for this and mentioned it in the topic :
http://www.linuxquestions.org/questi...d.php?t=434895
but still want asolution for xkdb since this solution has no flag applet below to indicate used language
|
|
|
All times are GMT -5. The time now is 04:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|