Skip to content

Commit

Permalink
Updated builds to beta 3
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
justahuman1 committed Jun 15, 2020
1 parent 617840c commit 957fe89
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__pycache__/
.pytest_cache/
.vimspector.json
dist/
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@ 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:

<p align="center">
<img src="https://i.imgur.com/0QVD4sd.gif"/>
</p>
<p align="center">
<img src="https://i.imgur.com/faMkae8.png"/>
<img src="https://i.imgur.com/y3jEaBr.png"/>
</p>

Why does this exist?<sup>[1](https://github.com/i3/i3/issues/1949#issuecomment-142231260)</sup> <sup>[2](https://www.reddit.com/r/i3wm/comments/97hc7u/how_to_move_window_relative_to_display/e4955ff/)</sup> <sup>[3](https://gist.github.com/bhepple/5c43e83e945a42297ba6433ee8ba88ce) </sup>
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions build/aur/.SRCINFO
Original file line number Diff line number Diff line change
@@ -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

10 changes: 5 additions & 5 deletions build/aur/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Sai Valla <[email protected]>

pkgname=python-i3-grid
pkgver=0.2.3b2
pkgver=0.2.3b3
pkgrel=1
epoch=
pkgdesc='A i3wm grid controller for floating window automation.'
Expand All @@ -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
}

4 changes: 2 additions & 2 deletions build/pip/pipbuilder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions i3-grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion i3-grid/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="i3-grid",
version="0.2.3b2",
version="0.2.3b3",
author="Sai Valla",
author_email="[email protected]",
description="A i3wm grid controller for floating window automation.",
Expand Down

0 comments on commit 957fe89

Please sign in to comment.