From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Setxkbmap :: Adding a custom xkb layout/variant :: Issue with specifying custom config path & wiping the cache Date: Wed, 06 Jun 2018 10:20:04 +0200 Message-ID: <87wovc72dn.fsf@gmail.com> References: <8fef9b4d1f899c4570304edc57139b4c@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQTfw-0001O1-57 for help-guix@gnu.org; Wed, 06 Jun 2018 04:20:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQTft-00051O-0W for help-guix@gnu.org; Wed, 06 Jun 2018 04:20:12 -0400 Received: from mail-wr0-x22a.google.com ([2a00:1450:400c:c0c::22a]:44548) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQTfs-00050m-LW for help-guix@gnu.org; Wed, 06 Jun 2018 04:20:08 -0400 Received: by mail-wr0-x22a.google.com with SMTP id y15-v6so5210372wrg.11 for ; Wed, 06 Jun 2018 01:20:08 -0700 (PDT) In-reply-to: <8fef9b4d1f899c4570304edc57139b4c@disroot.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Alex Dorof Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ha, I might have the perfect solution for you! To sum up: =2D You can't run at the system level (or even if you could, don't do it, it's less flexible and more cumbersome to set up). =2D If you redefine a keymap from scratch, you need to use xkbcomp, not setxkbmap! =2D If you only want to change some modifiers / options over a system keymap, you can use a combination of setxkbmap and xmodmap. See my dotfiles for an example: https://github.com/ambrevar/dotfiles In .xkb, I have defined a new "usim" keymap. The *.xkb file and the symbols subfoler are mandatory. To load the map, I call the following from `.xprofile`: xkbcomp -I"$HOME/.xkb" "$HOME/.xkb/usim.xkb" $DISPLAY 2>/dev/null I have more settings: setxkbmap -layout us -variant "" This resets the keymaps, it's useful when I do some live changes to my keymap and they I can revert everything by simply sourcing `.xprofile`. xcape -e 'Control_L=3DEscape' Make Left Control (which is Caps Lock in my keymap) act as Escape when not used as a modifier. numlockx on Turn on the numpad by default. xbindkeys Set additional keybindings such as the multimedia bindings as par the `.xbindkeysrc` file. Hope that helps! =2D-=20 Pierre Neidhardt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlsXmTQACgkQm9z0l6S7 zH8lQAf+LOAeVjdh706vgyCRZn2y8AanW3vPYXJfhlsQvSMMGqoADHU6zVKOLdvx Ugvza5ychZAE2COnXcKK/LOHo8+wHzy7gUO/Fuz/7iNFiIH/M8WlrE3+whNKmhzA 7TnOYM4aPwBH3166q+sKRCDuG+MHnp/+/4Ww1ukzoKQCLh4YHHU+Hz20jKPYKnJY SwJrL2ji4mmzL5YVCiJa0fDxJuzgF0bKzxfURhffR/O1FYe9T4oMF0ZDOJUd+vx+ QkCOjpyWQ/3+ihXaHaloNmINVdAkQtwgDqnBu/q1fYUnwy7Dl+C3d80Ganohw5SN Sc0OakRhVJb3aCm0cF+XyS+IUhZITQ== =g6W0 -----END PGP SIGNATURE----- --=-=-=--