FreeBSD Bugzilla – Attachment 237697 Details for
Bug 267408
[New Port] x11/py-autotiling: Automatically switch the window split orientation in sway and i3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[New Port] x11/py-autotiling: Automatically switch the window split orientation in sway and i3
0001-New-Port-x11-py-autotiling-Automatically-switch-the-.patch (text/plain), 4.11 KB, created by
Robert Clausecker
on 2022-10-28 23:14:47 UTC
(
hide
)
Description:
[New Port] x11/py-autotiling: Automatically switch the window split orientation in sway and i3
Filename:
MIME Type:
Creator:
Robert Clausecker
Created:
2022-10-28 23:14:47 UTC
Size:
4.11 KB
patch
obsolete
>From 0b0c3035eaa40d0f1d6743a228c2ad0a7e191bbd Mon Sep 17 00:00:00 2001 >From: Robert Clausecker <fuz@fuz.su> >Date: Fri, 28 Oct 2022 23:04:14 +0000 >Subject: [PATCH] [New Port] x11/py-autotiling: Automatically switch the window > split orientation in sway and i3 > >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. > >The script does one thing: it checks the window height / width ratio, >and executes the equivalent of either swaymsg splitv or swaymsg splith. >Nothing less, nothing more. Yes, it may make stacking and tabbed >layouts behave oddly. No, nothing can be done about it. If you like >stacking/tabbed layouts, you may use them on workspaces with autotiling >turned off (--workspaces argument). Do not submit issues about it. >--- > x11/py-autotiling/Makefile | 20 ++++++++++++++++++++ > x11/py-autotiling/distinfo | 3 +++ > x11/py-autotiling/files/patch-setup.cfg | 10 ++++++++++ > x11/py-autotiling/pkg-descr | 16 ++++++++++++++++ > x11/py-autotiling/pkg-message | 9 +++++++++ > 5 files changed, 58 insertions(+) > create mode 100644 x11/py-autotiling/Makefile > create mode 100644 x11/py-autotiling/distinfo > create mode 100644 x11/py-autotiling/files/patch-setup.cfg > create mode 100644 x11/py-autotiling/pkg-descr > create mode 100644 x11/py-autotiling/pkg-message > >diff --git a/x11/py-autotiling/Makefile b/x11/py-autotiling/Makefile >new file mode 100644 >index 000000000000..091373535492 >--- /dev/null >+++ b/x11/py-autotiling/Makefile >@@ -0,0 +1,20 @@ >+PORTNAME= autotiling >+DISTVERSION= 1.7 >+CATEGORIES= x11 >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= fuz@fuz.su >+COMMENT= Automatically switch the window split orientation in sway and i3 >+WWW= https://github.com/nwg-piotr/autotiling >+ >+LICENSE= GPLv3+ >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}i3ipc>0:x11/py-i3ipc@${PY_FLAVOR} >+ >+USES= python >+USE_PYTHON= autoplist concurrent distutils >+ >+NO_ARCH= yes >+ >+.include <bsd.port.mk> >diff --git a/x11/py-autotiling/distinfo b/x11/py-autotiling/distinfo >new file mode 100644 >index 000000000000..0a4e0cb4d361 >--- /dev/null >+++ b/x11/py-autotiling/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1666995853 >+SHA256 (autotiling-1.7.tar.gz) = ecf1d2d400e56bafe88e47b9653222f77e2398de4b46bfa2e3beb785b117b92a >+SIZE (autotiling-1.7.tar.gz) = 16769 >diff --git a/x11/py-autotiling/files/patch-setup.cfg b/x11/py-autotiling/files/patch-setup.cfg >new file mode 100644 >index 000000000000..9a62ccbb7c17 >--- /dev/null >+++ b/x11/py-autotiling/files/patch-setup.cfg >@@ -0,0 +1,10 @@ >+--- setup.cfg.orig 2022-10-24 23:56:22 UTC >++++ setup.cfg >+@@ -32,7 +32,6 @@ install_requires = >+ python_requires = >=3.6 >+ setup_requires = >+ setuptools>=42 >+- wheel >+ >+ [options.entry_points] >+ console_scripts = >diff --git a/x11/py-autotiling/pkg-descr b/x11/py-autotiling/pkg-descr >new file mode 100644 >index 000000000000..43c61fdf0530 >--- /dev/null >+++ b/x11/py-autotiling/pkg-descr >@@ -0,0 +1,16 @@ >+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. >+ >+The script does one thing: it checks the window height / width ratio, >+and executes the equivalent of either swaymsg splitv or swaymsg splith. >+Nothing less, nothing more. Yes, it may make stacking and tabbed >+layouts behave oddly. No, nothing can be done about it. If you like >+stacking/tabbed layouts, you may use them on workspaces with autotiling >+turned off (--workspaces argument). Do not submit issues about it. >+ >+For instance, you may configure autotiling to work on odd workspaces, >+but not on even: >+ >+### Autostart >+ exec autotiling -w 1 3 5 7 9 >diff --git a/x11/py-autotiling/pkg-message b/x11/py-autotiling/pkg-message >new file mode 100644 >index 000000000000..0318598dce2c >--- /dev/null >+++ b/x11/py-autotiling/pkg-message >@@ -0,0 +1,9 @@ >+To use x11/py-autotiling, add >+ >+ exec_always autotiling >+ >+or >+ >+ exec_always --no-startup-id autotiling >+ >+to the ~/.config/sway/config or ~/.config/i3/config file. >-- >2.37.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
fuz
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 267408
: 237697