From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IK2qI+gdXF9aPwAA0tVLHw (envelope-from ) for ; Sat, 12 Sep 2020 01:01:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IGctHugdXF8sYwAA1q6Kng (envelope-from ) for ; Sat, 12 Sep 2020 01:01:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C45A39400EF for ; Sat, 12 Sep 2020 01:01:27 +0000 (UTC) Received: from localhost ([::1]:60436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGtuv-0003qe-PD for larch@yhetil.org; Fri, 11 Sep 2020 21:01:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGspc-0003nG-IA for help-guix@gnu.org; Fri, 11 Sep 2020 19:51:52 -0400 Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:41948 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGspa-0007rR-RV for help-guix@gnu.org; Fri, 11 Sep 2020 19:51:52 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kGspX-00015x-5x for help-guix@gnu.org; Sat, 12 Sep 2020 01:51:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: help-guix@gnu.org From: Stefan Huchler Subject: Re: how to add hwdb of keyboard Date: Sat, 12 Sep 2020 01:51:42 +0200 Message-ID: <87tuw3oos1.fsf@mail.de> References: <87zh5wntu7.fsf@mail.de> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:v2I1g2gkn1v0B3WwpOX4kCJ7vB8= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gcggh-help-guix@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/11 19:51:48 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 11 Sep 2020 21:01:18 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mail.de (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -0.41 X-TUID: Vkori5ATZ3nV I build a package for it: (define-module (x220-hwdb) #:use-module (guix packages) #:use-module (guix download) #:use-module (gnu packages compression) #:use-module (guix build-system copy) #:use-module (guix licenses)) (define-public x220-hwdb (package (name "x220-hwdb") (version "1.0") (source (origin (method url-fetch) (uri "https://github.com/spiderbit/emacs-ergo-thinkpad-kb-layout/archive/master.zip") (sha256 (base32 "0rx791b7mq5visa9ckyf7py4lz5ml51hn4mzz4rmlpnlrcds4x8v")))) (build-system copy-build-system) (inputs `(("unzip" ,unzip))) (synopsis "Bla") (description "Bla bla bla") (home-page "https://www.gnu.org/blablabla") (license gpl3+))) and tried to link it to the expected location: (service special-files-service-type `(("/etc/udev/hwdb.d/90-X220-keyboard.hwdb" ,(file-append x220-hwdb "90-X220-keyboard.hwdb")))) the problem is that the hwdb is compiled but read only, so the file must basically be there before the eudev package builds this db. Is there a better way doing this? Stefan Huchler writes: > I use a custom keyboard layout on one of my laptops: > > https://github.com/spiderbit/emacs-ergo-thinkpad-kb-layout > > I use a hwdb which has the advantage that it works on tty and x11 and > that it's keyboard specific so if I connect a external keyboard it does > not swap keys on it. > > I would be ok with giving up the keyboard specific part, I could live > with X11 only for a start, but I would like to have it in the config.scm > file configured and not only in some home based modifications. > > Any idea how to do that best in guix, patching a custom my-modified-dvorak > keyboard-layout into the xkeyboard-config package maybe?