DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 31st August 2018
polyfibrous polyfibrous is offline
New User
 
Join Date: Aug 2018
Posts: 3
Default Changing Keyboard Layout

How can I change my keyboard variant from QWERTY to Colemak permanently and globally?

setxkbmap doesn't work at the command line (I get the error "Cannot open display 'default display'"). I can change the variant from a terminal within the desktop environment, but I have to reset it every time I reboot, and the setting is gone if I log out of X.
Reply With Quote
  #2   (View Single Post)  
Old 31st August 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

I hope this helps you:
https://www.openbsd.org/faq/faq7.html
Quote:
To make changes permanent, use the wsconsctl.conf(5) file.
https://man.openbsd.org/wsconsctl.conf
__________________
My best friends are parrots
Reply With Quote
  #3   (View Single Post)  
Old 31st August 2018
polyfibrous polyfibrous is offline
New User
 
Join Date: Aug 2018
Posts: 3
Default

I'm also trying this:

https://colemak.com/Unix#OpenBSD_in_text_console_mode

I get the output

Code:
keyboard.encoding=us
after running the script, and nothing changes.

Quote:
Originally Posted by GarryR View Post
Colemak is not an option with that utility; it's not listed in the header files:

/usr/include/dev/wscons/wsconsio.h
/usr/include/dev/wscons/wsksymdef.h

Should I be worried that the .conf file doesn't exist on my system?
Reply With Quote
  #4   (View Single Post)  
Old 31st August 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

To be honest I don't know, on that, I don't think so,..I don't have a wsconsctl.conf either, if that is
the .conf file you mean. I think maybe it needs to be created. Looking at more manuals:
https://man.openbsd.org/wsconsctl.conf

I also had looked at the link you show:
https://colemak.com/Unix#OpenBSD_in_text_console_mode
Code:
OpenBSD in text console mode

Download, untar/gunzip archive
Type: chmod +x openbsd_console/colemak_openbsd.sh
Type: openbsd_console/colemak_openbsd.sh
To switch back to QWERTY type: wsconsctl keyboard.encoding=us
I have not looked at the actual script, I do not have this type of keyboard, so don't really know on this,
Just kind of trying to see what the manuals say etc,...
Also on the same page we have looked at:
Quote:
To make the changes permanent, here's an example of InputDevice section for xorg.conf:
Code:
Section "InputDevice"
        Identifier  "Generic Keyboard"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
        Option      "XkbSymbols" "pc(pc105)+colemak"
EndSection
See :
'man xorg' and 'man xorg.conf'
Also see :
https://man.openbsd.org/rc.8

As you can see, I don't know exactly, and since I do not have that type of keyboard, I can't really try anything, someone else may come and be able to give some more specific instructions, it does seem confusing, and the manuals ,suggest another manual, and so on,... sorry I am not of more help
__________________
My best friends are parrots
Reply With Quote
  #5   (View Single Post)  
Old 31st August 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

Quote:
I can change the variant from a terminal within the desktop environment, but I have to reset it every time I reboot, and the setting is gone if I log out of
What desktop environment ? IE: Gnome, Xfce,...
That is another factor, I do not use any DE, but any way at least you can change the variant from a terminal when you are in the DE.
__________________
My best friends are parrots
Reply With Quote
  #6   (View Single Post)  
Old 1st September 2018
polyfibrous polyfibrous is offline
New User
 
Join Date: Aug 2018
Posts: 3
Default

Quote:
Originally Posted by GarryR View Post
What desktop environment ? IE: Gnome, Xfce,...
That is another factor, I do not use any DE, but any way at least you can change the variant from a terminal when you are in the DE.
I've been able to set it with setxkbmap whenever X is running, including in XFCE and openbox.
Reply With Quote
  #7   (View Single Post)  
Old 1st September 2018
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 343
Default

Maybe add it to .xsession(?).
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom keyboard layout darktrym NetBSD Installation and Upgrading 1 3rd August 2017 11:39 PM
missing keyboard layout aht0 OpenBSD Installation and Upgrading 2 27th May 2015 12:12 AM
Question about xenocara update and keyboard layout Daffy OpenBSD Installation and Upgrading 0 17th July 2011 11:35 AM
NetBSD 5 keyboard layout in gnome jaideep_jdof NetBSD Package System (pkgsrc) 1 17th September 2009 03:50 PM
Keyboard Layout mfaridi FreeBSD General 6 26th June 2008 07:13 PM


All times are GMT. The time now is 08:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick