unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Thierry Micoud <thierrymicoud@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Keyboard layout
Date: Sun, 10 Apr 2016 23:01:43 +0300	[thread overview]
Message-ID: <871t6ds060.fsf@gmail.com> (raw)
In-Reply-To: <CANS=vQeETXLMaP3bjS5s0kmzt0SKYR+CeSprG5wu=v4WsSXy+A@mail.gmail.com> (Thierry Micoud's message of "Sun, 10 Apr 2016 15:38:51 +0100")

Thierry Micoud (2016-04-10 17:38 +0300) wrote:

> I've installed guixsd 0.10. Its probably a rooky problem but seem
> unable to solve it and I apologise! ;)
> I'd like to change to keyboard layout from us to uk.
>
> Ideally I'd like to set the keyboard layout in the config.scm file
> and 'guix system reconfigure'
> Is this possible.?

I don't think so, you can use 'console-keymap-service' but it is for
console only (the same as you would use 'loadkeys' command)...
Or maybe you can by modifying xorg configuration file (see (info "(guix)
X Window") in the manual) and adding something like this to it:

Section "InputClass"
    Identifier                  "Keyboard0"
    MatchIsKeyboard             "yes"
    MatchDevicePath             "/dev/input/event*"
    Driver                      "evdev"
    Option "XkbLayout"          "gb,us"
EndSection

But it is more simple just to use setxkbmap as you did on other distro.

> I use DWM window manager and in my xsession file on other computer
> (running voidlinux) I've a line with "setxkbmap gb” which does the
> job. Which package does 'setxkbmap' belong to in guix, I can't seam
> to locate it. and if does not exist what other tools are there

setxkbmap is in the 'setxkbmap' package, so after "guix package -i
setxkbmap", I think you can just add "setxkbmap gb" to "~/.xsession"
file (I'm not sure as I've never used this method).

-- 
Alex

  reply	other threads:[~2016-04-10 20:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-10 14:38 Keyboard layout Thierry Micoud
2016-04-10 20:01 ` Alex Kost [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-03-19 12:52 keyboard layout Adam Kandur via
2020-03-20  8:51 ` Pierre Neidhardt
2020-03-20 14:10   ` John Soo
2020-04-07 10:54 ` pelzflorian (Florian Pelz)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871t6ds060.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=thierrymicoud@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).