Subject: [bug#53444] [PATCH 3/3] gnu: Add i3-autotiling

From: "(unmatched-parenthesis" <[email-masked]>
Date: Sat, 22 Jan 2022 11:47:24 +0000

* gnu/packages/wm.scm(i3-autotiling): New variable.
---
 gnu/packages/wm.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index c791bcf44e..9b473b22b1 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -121,6 +121,7 @@ (define-module (gnu packages wm)
   #:use-module (gnu packages pretty-print)
   #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-build)
   #:use-module (gnu packages python-crypto)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages readline)
@@ -564,6 +565,32 @@ (define-public python-i3ipc
 
 (define-public python2-i3ipc
   (package-with-python2 python-i3ipc))
+
+(define-public i3-autotiling
+  (package
+   (name "i3-autotiling")
+   (version "1.6")
+   (source
+    (origin
+     (method git-fetch)
+     (uri (git-reference
+	   (url "https://github.com/nwg-piotr/autotiling")
+	   (commit (string-append "v" version))))
+     (file-name (git-file-name name version))
+     (sha256
+      (base32
+       "1hjlvg7095s322gb43r9g7mqlsy3pj13l827jpnbn5x0918rq9rr"))))
+   (build-system python-build-system)
+   (arguments
+    ;; TODO: Fix tests
+    '(#:tests? #f))
+   (propagated-inputs
+    (list python-i3ipc python-setuptools python-wheel))
+   (home-page "https://github.com/nwg-piotr/autotiling")
+   (synopsis "Automatic layout tiling for i3wm and sway.")
+   (description "This package uses @code{python-i3ipc} to control the tiling of i3wm and sway. It automatically switches between horizontal and vertical layouts to make the best use of space without human intervention.")
+   (license license:gpl3+)))
+
 (define-public qtile
   (package
     (name "qtile")
-- 
2.34.0