GNU bug report logs -
#47994
[PATCH] services: kmscon: Add xkb-layout and xkb-options fields.
Previous Next
Reported by: luhui <luhuins <at> 163.com>
Date: Sat, 24 Apr 2021 15:56:02 UTC
Severity: normal
Tags: patch
Done: Mathieu Othacehe <othacehe <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Mon, Apr 26, 2021 at 09:23:00PM +0200, Maxime Devos wrote:
> luhui schreef op ma 26-04-2021 om 10:07 [+0800]:
> > OK,Re-written the code according to your suggestion.
> >
> > new patch:
>
> The new patch looks good to me, but I haven't tested it.
write it in a vm configuration
test code:
#+BEGIN_SRC scheme
;; need delete getty service (tty3,tty4,tty5,tty6)
(dbus-service)
(syslog-service)
;; default
(service kmscon-service-type
(kmscon-configuration
(virtual-terminal "tty3")))
;; us
(service kmscon-service-type
(kmscon-configuration
(virtual-terminal "tty4")
(keyboard-layout (keyboard-layout "us"))))
;; us with ctrl:nocaps options
(service kmscon-service-type
(kmscon-configuration
(virtual-terminal "tty5")
(keyboard-layout
(keyboard-layout "us" #:options '("ctrl:nocaps")))))
;; with all args
(service kmscon-service-type
(kmscon-configuration
(virtual-terminal "tty6")
(keyboard-layout
(keyboard-layout "us" "intl" #:model "macbook78" #:options
'("ctrl:nocaps" "compose:menu")))))
#+END_SRC
then
guix system vm vm-configuration.scm
xxxxxxxxxx-vm.sh # need graphic
in vm:
herd status # ensure services is running
# test
Ctrl + Alt + F3 # ensure it is us keyboard layout
Ctrl + Alt + F4 # ensure it is us keyboard layout
Ctrl + Alt + F5 # ensure Caps Locks is Ctrl
...
This bug report was last modified 3 years and 328 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.