From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from eggs.gnu.org ([2001:470:142:3::10]:47300)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1jRse1-0005U9-MP
 for guix-patches@gnu.org; Fri, 24 Apr 2020 03:21:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1jRse0-0002o7-Qm
 for guix-patches@gnu.org; Fri, 24 Apr 2020 03:21:05 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:44778)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1jRse0-0002lW-EB
 for guix-patches@gnu.org; Fri, 24 Apr 2020 03:21:04 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1jRse0-0001cR-9q
 for guix-patches@gnu.org; Fri, 24 Apr 2020 03:21:04 -0400
Subject: [bug#40810] [PATCH] gnu: Add kbdd.
Resent-Message-ID: <handler.40810.B.15877128466130@debbugs.gnu.org>
Received: from eggs.gnu.org ([2001:470:142:3::10]:46902)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <boris.dekshteyn@gmail.com>) id 1jRsdf-0005Ms-Ba
 for guix-patches@gnu.org; Fri, 24 Apr 2020 03:20:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1)
 (envelope-from <boris.dekshteyn@gmail.com>) id 1jRsdb-0001Mf-F8
 for guix-patches@gnu.org; Fri, 24 Apr 2020 03:20:43 -0400
Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:34425)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <boris.dekshteyn@gmail.com>)
 id 1jRsdb-0001J8-2A
 for guix-patches@gnu.org; Fri, 24 Apr 2020 03:20:39 -0400
Received: by mail-lf1-x132.google.com with SMTP id x23so6860977lfq.1
 for <guix-patches@gnu.org>; Fri, 24 Apr 2020 00:20:38 -0700 (PDT)
From: "Boris A. Dekshteyn" <harlequin78@gmail.com>
Date: Fri, 24 Apr 2020 19:20:23 +1200
Message-Id: <20200424072023.32416-1-boris.dekshteyn@google.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
List-Id: <guix-patches.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-patches>
List-Post: <mailto:guix-patches@gnu.org>
List-Help: <mailto:guix-patches-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=subscribe>
Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org
Sender: "Guix-patches" <guix-patches-bounces+kyle=kyleam.com@gnu.org>
To: 40810@debbugs.gnu.org
Cc: "Boris A. Dekshteyn" <boris.dekshteyn@google.com>

---
 gnu/packages/xdisorg.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index bc2c9c4622..d1bc415a71 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -2286,3 +2286,41 @@ to find all available clips and launches @command{dmenu} (or @command{rofi},
 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
       (license license:public-domain))))
+
+(define-public kbdd
+  (package
+    (name "kbdd")
+    (version "0.7.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/qnikst/kbdd/archive/v"
+             version ".tar.gz"))
+       (sha256
+        (base32 "0nhn7cx1z4k1kfll325xjr5a31zjc4h5h8q0wxa9svz8aihfxcqp"))
+       (file-name (string-append "kbdd" version))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'configure-fix
+           (lambda* _
+             (invoke "aclocal")
+             (invoke "automake" "--add-missing")
+             (invoke "autoreconf"))))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("glib" ,glib "bin")))
+    (inputs
+     `(("glib" ,glib)
+       ("dbus-glib", dbus-glib)
+       ("libx11" ,libx11)))
+    (home-page "https://github.com/qnikst/kbdd")
+    (synopsis "Simple daemon and library to make per window layout using XKB")
+    (description "Kbdd is a simple keyboard layout manager.
++ Features: WM / DE independant,  Written in plain C (only glib dependant), 
++ has optional dbus interface")
+    (license license:bsd-2)))
-- 
2.26.1