* How to specify custom remappings with keyboard-layout? @ 2020-04-05 22:18 Jakub Kądziołka 2020-04-06 1:05 ` pelzflorian (Florian Pelz) 0 siblings, 1 reply; 6+ messages in thread From: Jakub Kądziołka @ 2020-04-05 22:18 UTC (permalink / raw) To: help-guix [-- Attachment #1: Type: text/plain, Size: 440 bytes --] Hi Guix, the right shift key on my laptop's keyboard got stuck. It sometimes isn't fully pressed, which allowed me to run xmodmap -e 'keycode 62=' and disable it, but I need to make this apply in GDM too. I assume I'd have to specify that in the keyboard-layout record, but both the documentation and the code aren't too clear on how I'd go about doing that. I'd appreciate any pointers. Regards, Jakub Kądziołka [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to specify custom remappings with keyboard-layout? 2020-04-05 22:18 How to specify custom remappings with keyboard-layout? Jakub Kądziołka @ 2020-04-06 1:05 ` pelzflorian (Florian Pelz) 2020-04-06 1:22 ` pelzflorian (Florian Pelz) 0 siblings, 1 reply; 6+ messages in thread From: pelzflorian (Florian Pelz) @ 2020-04-06 1:05 UTC (permalink / raw) To: Jakub Kądziołka; +Cc: help-guix On Mon, Apr 06, 2020 at 12:18:22AM +0200, Jakub Kądziołka wrote: > xmodmap -e 'keycode 62=' > > and disable it, but I need to make this apply in GDM too. I assume I'd > have to specify that in the keyboard-layout record, but both the > documentation and the code aren't too clear on how I'd go about doing > that. Guix writes the keyboard layout in the InputClass section of xorg.conf. It seems what you need is more like xkbcomp: https://wiki.archlinux.org/index.php/X_keyboard_extension#Using_keymap You could probably use an .xinitrc file like Arch or you could patch xorg-server to use your xkbcomp map by default. Regards, Florian ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to specify custom remappings with keyboard-layout? 2020-04-06 1:05 ` pelzflorian (Florian Pelz) @ 2020-04-06 1:22 ` pelzflorian (Florian Pelz) 2020-04-06 11:05 ` Jakub Kądziołka 2020-04-07 9:36 ` pelzflorian (Florian Pelz) 0 siblings, 2 replies; 6+ messages in thread From: pelzflorian (Florian Pelz) @ 2020-04-06 1:22 UTC (permalink / raw) To: Jakub Kądziołka; +Cc: help-guix On Mon, Apr 06, 2020 at 03:05:24AM +0200, pelzflorian (Florian Pelz) wrote: > You could probably use an .xinitrc file like Arch or you could patch > xorg-server to use your xkbcomp map by default. That is, instead of patching xorg-server, you would patch xkeyboard-config’s xkb/symbols. I have not tried. Maybe better use .xinitrc? Regards, Florian ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to specify custom remappings with keyboard-layout? 2020-04-06 1:22 ` pelzflorian (Florian Pelz) @ 2020-04-06 11:05 ` Jakub Kądziołka 2020-04-07 1:50 ` pelzflorian (Florian Pelz) 2020-04-07 9:36 ` pelzflorian (Florian Pelz) 1 sibling, 1 reply; 6+ messages in thread From: Jakub Kądziołka @ 2020-04-06 11:05 UTC (permalink / raw) To: pelzflorian (Florian Pelz); +Cc: help-guix [-- Attachment #1: Type: text/plain, Size: 729 bytes --] On Mon, Apr 06, 2020 at 03:22:29AM +0200, pelzflorian (Florian Pelz) wrote: > On Mon, Apr 06, 2020 at 03:05:24AM +0200, pelzflorian (Florian Pelz) wrote: > > You could probably use an .xinitrc file like Arch or you could patch > > xorg-server to use your xkbcomp map by default. > > That is, instead of patching xorg-server, you would patch > xkeyboard-config’s xkb/symbols. I have not tried. Maybe better use > .xinitrc? That's not a terrible idea, though I'd rather have it apply even before I'm logged in. (I previously mentioned GDM, though I now realize that I actually use SLiM.) Is there an equivalent file I could use to run a command when the login manager is starting? Regards, Jakub Kądziołka [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to specify custom remappings with keyboard-layout? 2020-04-06 11:05 ` Jakub Kądziołka @ 2020-04-07 1:50 ` pelzflorian (Florian Pelz) 0 siblings, 0 replies; 6+ messages in thread From: pelzflorian (Florian Pelz) @ 2020-04-07 1:50 UTC (permalink / raw) To: Jakub Kądziołka; +Cc: help-guix [-- Attachment #1: Type: text/plain, Size: 1365 bytes --] On Mon, Apr 06, 2020 at 01:05:02PM +0200, Jakub Kądziołka wrote: > On Mon, Apr 06, 2020 at 03:22:29AM +0200, pelzflorian (Florian Pelz) wrote: > > On Mon, Apr 06, 2020 at 03:05:24AM +0200, pelzflorian (Florian Pelz) wrote: > > > You could probably use an .xinitrc file like Arch or you could patch > > > xorg-server to use your xkbcomp map by default. > > > > That is, instead of patching xorg-server, you would patch > > xkeyboard-config’s xkb/symbols. I have not tried. Maybe better use > > .xinitrc? > > That's not a terrible idea, though I'd rather have it apply even before > I'm logged in. (I previously mentioned GDM, though I now realize that I > actually use SLiM.) Is there an equivalent file I could use to run a > command when the login manager is starting? > > Regards, > Jakub Kądziołka I thought it was sufficient to add the files both to your home directory and to root’s because SLIM is run as root. But: Actually it seems the gnu/services/xorg.scm is defined in a way that does not run ~/.xinitrc. Sorry for not being helpful. I tried but was *not* able to modify gnu/services/xorg.scm to run xkbcomp on a custom ~/.Xkeymap file, although manual execution after the session started works fine. Changing the xinitrc does not appear to work. The attached changes are insufficient. Regards, Florian [-- Attachment #2: xkeymap.patch --] [-- Type: text/plain, Size: 839 bytes --] diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index d0196a299e..5ddf41dafd 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -403,8 +403,13 @@ desktop session from the system or user profile will be used." ;; The '--login' option is supported at least by Bash and zsh. (execl shell shell "--login" "-c" - (string-join (cons command args))))) - + (string-join (cons* + #$(file-append xkbcomp "/bin/xkbcomp") + (string-append (getenv "HOME") "/.Xkeymap") + (getenv "DISPLAY") + ";" + command args))))) + (define system-profile "/run/current-system/profile") ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: How to specify custom remappings with keyboard-layout? 2020-04-06 1:22 ` pelzflorian (Florian Pelz) 2020-04-06 11:05 ` Jakub Kądziołka @ 2020-04-07 9:36 ` pelzflorian (Florian Pelz) 1 sibling, 0 replies; 6+ messages in thread From: pelzflorian (Florian Pelz) @ 2020-04-07 9:36 UTC (permalink / raw) To: Jakub Kądziołka; +Cc: help-guix On Mon, Apr 06, 2020 at 03:22:29AM +0200, pelzflorian (Florian Pelz) wrote: > That is, instead of patching xorg-server, you would patch > xkeyboard-config’s xkb/symbols. I believe patching the keymaps in xkeyboard-config is the best solution. Regards, Florian ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-04-07 9:37 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-04-05 22:18 How to specify custom remappings with keyboard-layout? Jakub Kądziołka 2020-04-06 1:05 ` pelzflorian (Florian Pelz) 2020-04-06 1:22 ` pelzflorian (Florian Pelz) 2020-04-06 11:05 ` Jakub Kądziołka 2020-04-07 1:50 ` pelzflorian (Florian Pelz) 2020-04-07 9:36 ` pelzflorian (Florian Pelz)
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/guix.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.