[bug#56717,2/2] gnu: Add python-autotiling.
Commit Message
* gnu/packages/python-xyz.scm (python-autotiling): New variable.
Signed-off-by: Hilton Chain <hako@ultrarare.space>
---
gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Comments
On Sat Jul 23, 2022 at 7:33 AM BST, Hilton Chain via Guix-patches via wrote:
> +(define-public python-autotiling
I think this should be changed to `i3-autotiling`, since it's a Python
program, not a library.
> + (package
> + (name "autotiling")
Same here.
> + (arguments
> + '(#:tests? #f))
Can you add an explanation and change to (list ...) style here too,
please?
> + (inputs (list python-wheel python-xlib))
I think python-wheel only needs to be a native-input, and python-xlib
can be removed if you propagate it in python-i3ipc.
-- (
v1 -> v2:
* Package name: python-autotiling -> i3-autotiling
* Arguments style: use (list ...) instead of '(...)
* Comments for tests
Thank you, ( !
Hilton Chain (2):
gnu: Add python-i3ipc.
gnu: Add i3-autotiling.
gnu/packages/python-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
base-commit: 32a00363435ac8c1bc93ef1281b2c2afc28a8877
--
2.36.1
@@ -30226,3 +30226,30 @@ (define-public python-i3ipc
(synopsis "Python library for controlling i3wm and sway")
(description "An improved Python library to control i3wm and sway.")
(license license:bsd-3)))
+
+(define-public python-autotiling
+ (package
+ (name "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
+ '(#:tests? #f))
+ (inputs (list python-wheel python-xlib))
+ (propagated-inputs (list python-i3ipc))
+ (home-page "https://github.com/nwg-piotr/autotiling")
+ (synopsis
+ "Automatically switch the horizontal/vertical window split orientation in
+ i3 and sway")
+ (description "This script uses the i3ipc-python library to switch the layout
+splith/splitv depending on the currently focused window dimensions. It works on
+both sway and i3 window managers.")
+ (license license:gpl3)))