View previous topic :: View next topic |
Author |
Message |
bperegrine n00b
Joined: 23 Dec 2017 Posts: 37
|
Posted: Tue Feb 20, 2018 1:29 pm Post subject: /etc/X11/xorg.conf.d/30-keyboard.conf override |
|
|
I want to change /etc/X11/xorg.conf.d/30-keyboard.conf to include a line that tells the system to use a different file on a usb stick (say /keymaps/30-keyboard.conf) whenever it is available (usb stick is inserted), and use the default configuration specified in 30-keyboard.conf whenever it is not available.
Can someone tell me how to do this ? I assume the path to use is ~/keymaps/30-keyboard.conf and automount needs to be on, but that's about as far as I got
BTW: can I also make a 10-keyboard.conf file to do the same, but then system wide (so for terminal use, ...)
See https://wiki.gentoo.org/wiki/Keyboard_layout_switching#Using_system-wide_configured_layouts_and_shortcut
https://wiki.gentoo.org/wiki/Xorg/Guide#Configuring_the_keyboard |
|
Back to top |
|
|
bperegrine n00b
Joined: 23 Dec 2017 Posts: 37
|
Posted: Thu Feb 22, 2018 2:56 pm Post subject: |
|
|
I updated my /etc/X11/xorg.conf.d/30-keyboard.conf file:
Code: |
if [ -f "~/keymaps/keymap.sh" ]; then
xkeyboard-config ~/keymaps/keymap.sh
else
Section "InputClass"
Identifier "keyboard-all"
Driver "evdev"
Option "XkbLayout" "be"
Option "XkbModel" "pc101"
Option "XkbRules" "xorg"
Option "XkbOptions" ""
Option "XkbVariant" ""
MatchIsKeyboard "on"
EndSection
fi
|
On my usb stick, I got a keymap.sh file:
Code: |
setxkbmap -layout be
|
Is that about right ? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|