You are not logged in.
Pages: 1
Before I ask my first question in this forum, I just wanted to thank you for your helpful Wiki.
So, I followed this Wiki but I didn't get it work at boot automatically, I mean every time I boot I have to run this command:
setxkbmap -model pc104 -layout fr,ara -variant ,azerty -option grp:alt_shift_toggle
I'm using Deepin DE and this is /etc/X11/xorg.conf.d/00-keyboard.conf:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "fr,ara"
Option "XkbModel" "pc104"
Option "XkbVariant" ",azerty"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection
~/.xinitrc:
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fiif [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fitwm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec startdde
Offline
I mean every time I boot I have to run this command:
How about adding the mentioned command to your DE's autostart?
If the command itself works, then I think that adding it to the startup file should solve your "problem"...
Offline
How about adding the mentioned command to your DE's autostart?
Sorry I'm a Newbie... Where can I find it ?
Offline
Is DDE overriding your 00-keyboard.conf? Does DDE have their own setting manager? Can you test whether your settings work in something simpler like Openbox or any other wm?
Offline
Is DDE overriding your 00-keyboard.conf? Does DDE have their own setting manager? Can you test whether your settings work in something simpler like Openbox or any other wm?
I switched to LXQt and it worked, so it is DDE that overrides 00-keyboard.conf... Can you help me to find out DDE code that does that and how to edit it?
Last edited by burawi (2016-03-23 20:10:15)
Offline
Sorry I'm a Newbie... Where can I find it ?
I don't know how about DDE, but I think that adding this to your ~/.xinitrc should be enough - this file is executed at the startup of Xserver so it should work the same in actually EVERY desktop environment...
Just add that line somewhere between the first line of your ~/.xinitrc and the last one. In other words: It cannot be at the end of the file and it cannot be at the very beginning of it.
EDIT: If you are still unsure where to put it:
(...)
# start some nice programs
setxkbmap -model pc104 -layout fr,ara -variant ,azerty -option grp:alt_shift_toggle
(...)I think that this should do the job.
Last edited by Hwiparam (2016-03-24 06:48:27)
Offline
Pages: 1