From nobody Fri Nov 11 20:26:42 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N89GV6V49z4fwVf; Fri, 11 Nov 2022 20:26:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N89GV60w6z4QQG; Fri, 11 Nov 2022 20:26:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668198402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eObi7HWpY9GLFpmZHjhKZqIRY1++5STNT7kFPD1vlSE=; b=Xw5fnOyenUAI4YB/Gm7MLPS03d7f1udv+Up1V1sQ1tvMaLiASKCINLXMzaGgYsXPSwMFlX zWHT6JxMzO765u15tMW/18UZ35QU+Ws4cxuTP/AE17Ya1tvY6VugC5b5pYiWbFQpYcuf5G IzBTJibCmH6HPRlwoXACXDtxvtPBohh3PESasQkWJRfO75hyPfXMBXbM9laX0vBzj2YZ/P tQlSh+Lh2k0UDqSU7Epanoymy5v909EXg04q1IfG1qAIYt5Rem7QUiVkKq0A2aANQQLzjJ 0kK36aRwPoUTy0CUu+xoRHZbUNK7oOVf7IOlTXF5jFaHfuRoHeUwB0I3TUr03g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668198402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eObi7HWpY9GLFpmZHjhKZqIRY1++5STNT7kFPD1vlSE=; b=PSjlQVxUF10fafHDByH2YgVwxPcBLuG7NIxqWsg5WBo8xQqKBAn01B6A+2J1KYdUAWi8SW 933+MMCqlMt8AKAP5XYgM9oQ0XMD7a9PmFcYN/A56qV1A02w+xpiou0p75IqvKN4X8y32Q m0VKJ8sz/A+pgBr8C6SmyfOsCygnvgujuoNJyXnNaq15HRnIJl1oKgTW3Gk3GyT0BQvqtN eCXhZ7GeGd+K4D9WC5XFY01avBi5yO6tgm8om6+I3G3b1P2UNn7SCzy+VjqB4LonCdqiBQ JkkPqQd9L9HTVb6ZoobULvXZ94UEjmyRNEUnDuQUhjKwEToa0zzbLv0gVQYUQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668198402; a=rsa-sha256; cv=none; b=xzKXCrsdK1FpM/x4HytYvh68wjoYTxb+Em9wFtJH0f+xZ/ni/+9Op4u79W6vA/zyJRiCKA mZJ6bPt+DL48IrFNLogxowTvV5afDcMH8FYgF9mt6TtJ9+ADTBile9U7ZZewlDfNdaHSuz HS9mRDfJvYT7j4q2UL+oGFVX2qsY719ZxBk5IFZCvELsWz8MB/lU1oa6bdVuW/I8JiXU/P Xr5yXo8X3WTY06lDaSjsWhS/C4JVibnYQl+hob92/42G1N5u4B++5Tau8ZJOaJzRnYXzHo 1jY00y4eC8oKpVnlM1AQAKII70Hvwcrvy120wfJn9+ILveEpt1VB683DwUNltw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N89GV4rkczwXt; Fri, 11 Nov 2022 20:26:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2ABKQgaU062438; Fri, 11 Nov 2022 20:26:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABKQgHl062437; Fri, 11 Nov 2022 20:26:42 GMT (envelope-from git) Date: Fri, 11 Nov 2022 20:26:42 GMT Message-Id: <202211112026.2ABKQgHl062437@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Juraj Lutter Subject: git: 29ffad78e36c - main - x11/py-autotiling: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: otis X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 29ffad78e36c430d4f01dc482a6e5282c92171d8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by otis: URL: https://cgit.FreeBSD.org/ports/commit/?id=29ffad78e36c430d4f01dc482a6e5282c92171d8 commit 29ffad78e36c430d4f01dc482a6e5282c92171d8 Author: Robert Clausecker AuthorDate: 2022-11-11 20:25:24 +0000 Commit: Juraj Lutter CommitDate: 2022-11-11 20:25:24 +0000 x11/py-autotiling: Add new port 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. PR: 267408 --- x11/Makefile | 1 + 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 +++++++++ 6 files changed, 59 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index 146c0967ba70..e92d0a0163b8 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -297,6 +297,7 @@ SUBDIR += pmenu SUBDIR += polybar SUBDIR += printscreen + SUBDIR += py-autotiling SUBDIR += py-caffeine-ng SUBDIR += py-i3-quickterm SUBDIR += py-i3ipc 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 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.