LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-11-2018, 09:27 AM   #1
Klaipedaville
Member
 
Registered: Mar 2013
Posts: 110

Rep: Reputation: Disabled
Set Permanent xkb Map in Xubuntu 18.04


Hello everyone,

Could anybody advise please, how do I keep the xkb map for good in Xubuntu 18.04? What I have in use is only temporary and "session" based so to speak, so after I log off / shut down I have to set it all over again. Any suggestions / pointers would be highly appreciated. Many thanks in advance!

Here is the code I would like to stay permanent even after re-booting / re-starting.

Code:
setxkbmap -layout us,ru -variant ',phonetic_winkeys' -option 'grp:alt_shift_toggle,grp_led:scroll'
 
Old 09-11-2018, 11:30 AM   #2
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 279

Rep: Reputation: 100Reputation: 100
You create a file :
Code:
90-keyboard-layout.conf
under
Code:
/etc/X11/xorg.conf.d
Something like this :
Code:
Section "InputClass"
        Identifier  "keyboard"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver          "evdev"
        Option          "XkbModel"      "evdev"
        Option          "XkbLayout"     "us,ru"
        Option          "XkbVariant"    ",phonetic_winkeys"
        Option          "XkbOptions"    "grp:alt_shift_toggle,grp_led:scroll"
EndSection
 
Old 09-12-2018, 12:43 AM   #3
Klaipedaville
Member
 
Registered: Mar 2013
Posts: 110

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lougavulin View Post
You create a file :
Code:
90-keyboard-layout.conf
under
Code:
/etc/X11/xorg.conf.d
Something like this :
Code:
Section "InputClass"
        Identifier  "keyboard"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver          "evdev"
        Option          "XkbModel"      "evdev"
        Option          "XkbLayout"     "us,ru"
        Option          "XkbVariant"    ",phonetic_winkeys"
        Option          "XkbOptions"    "grp:alt_shift_toggle,grp_led:scroll"
EndSection
Thank you so much for your input. I shall give it a try. However, do I need to identify my driver first? What does "evdev" mean in your code?
 
Old 09-12-2018, 03:57 AM   #4
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 279

Rep: Reputation: 100Reputation: 100
evdev is the generic input driver. So most probably, it should work. But you may have to try and adapt according your hardware.
 
  


Reply

Tags
xkb, xubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set permanent UTF-8 encoding in xterm simopal6 Linux - Software 6 01-13-2013 04:24 AM
[SOLVED] How to set permanent alias konzo Linux - Newbie 1 01-23-2010 10:03 AM
Set permanent permissions on Ext3 HD EarthAndAllStars Linux - Hardware 2 02-25-2009 04:22 AM
permanent module options: where to set? mehlkelm Debian 2 09-20-2005 02:18 AM
how to set permanent routes? pioniere Linux - Networking 3 10-24-2003 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration