Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/X11/xorg.conf.d/30-keyboard.conf override
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Tue Feb 20, 2018 1:29 pm    Post subject: /etc/X11/xorg.conf.d/30-keyboard.conf override Reply with quote

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
View user's profile Send private message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Thu Feb 22, 2018 2:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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