From 957fe89f22e24e5785b30075323f0e4a5755f279 Mon Sep 17 00:00:00 2001 From: justahuman1 Date: Mon, 15 Jun 2020 14:43:40 -0700 Subject: [PATCH] Updated builds to beta 3 This update presents breaking changes to reduce additional python dependencies. Reading json is also much faster than reading yaml. Instructions of fixing the change are in the README. --- .gitignore | 1 + README.md | 13 ++++++++++--- build/aur/.SRCINFO | 8 ++++---- build/aur/PKGBUILD | 10 +++++----- build/pip/pipbuilder.sh | 4 ++-- i3-grid/README.md | 1 + i3-grid/setup.py | 2 +- 7 files changed, 24 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 5d0ba94..9383916 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__/ +.pytest_cache/ .vimspector.json dist/ diff --git a/README.md b/README.md index 022be64..c608097 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,14 @@ i3, our beloved window manager, has placed an emphasis on tiling and tabbed layo The lack of standard tools has resulted in personalized scripts [scattered](https://gist.github.com/bhepple/5c43e83e945a42297ba6433ee8ba88ce) throughout GitHub which are inefficient and static to the user. This module aims to allow for fast and dynamic floating window management with minimal input. i3-grid is also monitor agnostic and has a clean rofi interface with highly configurable commands. -Current planned updates include templates (automating startup and grid management), temporary scratch pads (similar to minimizing windows), and potentially a daemon to auto snap floating windows to quadrants (similar to tiling mode). Please keep in mind that this is still in beta. Issues are bound to happen. +Current planned updates include templates (automating startup and grid management), temporary scratch pads (similar to minimizing windows), and potentially a daemon to auto snap floating windows to quadrants (similar to tiling mode). _Please keep in mind that i3-grid is still in beta. Issues are bound to happen_. + +**Beta 3 has been pushed to all distributions (less dependencies). Please update & recurl the newest rc file format.** + +``` + pip install --upgrade i3-grid + curl https://raw.githubusercontent.com/justahuman1/i3-grid/master/.i3gridrc > ~/.config/i3grid/i3gridrc +``` ## Demo: @@ -14,7 +21,7 @@ Current planned updates include templates (automating startup and grid managemen

- +

Why does this exist?[1](https://github.com/i3/i3/issues/1949#issuecomment-142231260) [2](https://www.reddit.com/r/i3wm/comments/97hc7u/how_to_move_window_relative_to_display/e4955ff/) [3](https://gist.github.com/bhepple/5c43e83e945a42297ba6433ee8ba88ce) @@ -92,7 +99,6 @@ ZSH Alias (_Optional_) Help menu python3 -m i3grid -h - *Can be added to path to simply call `i3grid` on the cli Center window @@ -163,6 +169,7 @@ PR's very welcome. Order of importance will be according to issues and PR count. - Search indexing is suboptimal for double digits (rofi limitations) - Rofi UI does not resize dynamically for large col and row digits +- Percentage commands do not work with older versions of i3. Possible workarounds in consideration. ## Crushed Bugs diff --git a/build/aur/.SRCINFO b/build/aur/.SRCINFO index 8722054..2b61a2d 100644 --- a/build/aur/.SRCINFO +++ b/build/aur/.SRCINFO @@ -1,14 +1,14 @@ pkgbase = python-i3-grid - pkgdesc = A grid overlay interface for i3. - pkgver = 0.2.4b1 + pkgdesc = A i3wm grid controller for floating window automation. + pkgver = 0.2.3b3 pkgrel = 1 url = https://github.com/justahuman1/i3-grid arch = any license = GPL3 makedepends = python3 depends = python-i3-py - source = https://files.pythonhosted.org/packages/eb/fa/d7cfd984d9484ea86b547cd663110497175b7a829a08d22d80b8454997f0/i3-grid-0.2.4b1.tar.gz - md5sums = bbb6078e95e3a059421401f820b4cca9 + source = https://files.pythonhosted.org/packages/49/29/f96b8a9ede685cd686e0fbd7f896479cbc97ade399c7afe570cd5bdf8a1c/i3-grid-0.2.3b3.tar.gz + md5sums = 7fb45dbe8ee8ab495ff18c5158faec24 pkgname = python-i3-grid diff --git a/build/aur/PKGBUILD b/build/aur/PKGBUILD index 847c150..2a00314 100644 --- a/build/aur/PKGBUILD +++ b/build/aur/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Sai Valla pkgname=python-i3-grid -pkgver=0.2.3b2 +pkgver=0.2.3b3 pkgrel=1 epoch= pkgdesc='A i3wm grid controller for floating window automation.' @@ -13,16 +13,16 @@ depends=('python-i3-py') makedepends=('python3' ) checkdepends=() conflicts=(${provides%=*}) # No quotes, to avoid an empty entry. -source=('https://files.pythonhosted.org/packages/ac/2a/f38475c92a041093756f693fce47a7ed17ca46acda8f6f3785b66cdf0623/i3-grid-0.2.3b2.tar.gz') -md5sums=('2d58b731d962ab2a885a7efabce7c65a') +source=('https://files.pythonhosted.org/packages/49/29/f96b8a9ede685cd686e0fbd7f896479cbc97ade399c7afe570cd5bdf8a1c/i3-grid-0.2.3b3.tar.gz') +md5sums=('7fb45dbe8ee8ab495ff18c5158faec24') build() { - cd $srcdir/i3-grid-0.2.3b2 + cd $srcdir/i3-grid-0.2.3b3 python setup.py build } package() { - cd $srcdir/i3-grid-0.2.3b2 + cd $srcdir/i3-grid-0.2.3b3 python setup.py install --root="$pkgdir" --optimize=1 } diff --git a/build/pip/pipbuilder.sh b/build/pip/pipbuilder.sh index 6138a7a..c8baa0d 100755 --- a/build/pip/pipbuilder.sh +++ b/build/pip/pipbuilder.sh @@ -3,8 +3,8 @@ cp ../../i3-grid -r . cd i3-grid python3 setup.py sdist bdist_wheel -read -p "Test Pypy or Pypy? [T/P]: " dest -if [[ $dest =~ [pP]* ]]; then +read -p "Official Pypy? [Y/n]: " dest +if [[ $dest =~ [yY](es)* ]]; then dest="pypi" else dest="testpypi" diff --git a/i3-grid/README.md b/i3-grid/README.md index 3cf9568..95a812d 100644 --- a/i3-grid/README.md +++ b/i3-grid/README.md @@ -98,6 +98,7 @@ The method descriptions are as follows: - focus_window def focus_window(self, **kwargs) -> list: + Focuses on the window with given kwargs `id` - hide_scratchpad diff --git a/i3-grid/setup.py b/i3-grid/setup.py index 2c14910..ec1330c 100644 --- a/i3-grid/setup.py +++ b/i3-grid/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name="i3-grid", - version="0.2.3b2", + version="0.2.3b3", author="Sai Valla", author_email="saivdev@protonmail.com", description="A i3wm grid controller for floating window automation.",