@@ -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")