From: luhui <luhuins@163.com>
To: Maxime Devos <maximedevos@telenet.be>
Cc: 47994@debbugs.gnu.org, luhui <luhuins@163.com>
Subject: [bug#47994] [PATCH] services: kmscon: Add xkb-layout and xkb-options fields.
Date: Tue, 4 May 2021 19:32:49 +0800 [thread overview]
Message-ID: <YJEw4bi7dPvBbyec@thinkpad-x230-luhui> (raw)
In-Reply-To: <e11c877f6c82305d3b69305e6e19f8753ac6517a.camel@telenet.be>
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
...
next prev parent reply other threads:[~2021-05-04 11:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-24 5:37 [bug#47994] [PATCH] services: kmscon: Add xkb-layout and xkb-options fields luhui
2021-04-25 9:12 ` Maxime Devos
2021-04-25 10:04 ` luhui
2021-04-25 12:46 ` Maxime Devos
2021-04-26 2:07 ` luhui
2021-04-26 19:23 ` Maxime Devos
2021-05-04 11:32 ` luhui [this message]
2021-06-04 12:40 ` Mathieu Othacehe
2021-06-21 15:28 ` luhui
2021-06-29 17:02 ` bug#47994: " Mathieu Othacehe
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=YJEw4bi7dPvBbyec@thinkpad-x230-luhui \
--to=luhuins@163.com \
--cc=47994@debbugs.gnu.org \
--cc=maximedevos@telenet.be \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).