Skip to content

Commit

Permalink
Add install instructions; Add some ignores; rename example
Browse files Browse the repository at this point in the history
  • Loading branch information
pkkid committed May 16, 2016
1 parent 9412116 commit 4efe8a2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parts/*
snap/*
stage/*
*.snap
snapcraft.yaml
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## PyGrid ##
<img align='right' width='500' src='example2.gif'/>
<img align='right' width='500' src='example.gif'/>
PyGrid is a small utility which allows you to easily organize your open windows by tiling, resizing and positioning them to make the best use of your desktop real estate. It's easy to configure and supports multiple monitors.

#### Requirements ####
Expand Down Expand Up @@ -42,5 +42,20 @@ Configuration is done via a JSON file located at `~/.config/pygrid.json` which w
}
```

#### Installation on Ubuntu ####
```bash
$ sudo apt-get install git python3-gi python3-xlib
$ cd <place-you-want-to-store-pygrid>
$ git clone https://github.com/mjs7231/pygrid.git
$ cd pygrid && ./pygrid.py
```

To start at boot I simply added the following line to *Startup Applications*.
```bash
<full-path>/pygrid/pygrid.py
```



#### Credit & License ####
PyGrid was original a fork of [QuickTile by ssokolow](https://github.com/ssokolow/quicktile), but rewritten to allow a much easier configuration as well as updated code to run on Python3 & GTK3. Code released under GPLv2 License.
File renamed without changes
5 changes: 3 additions & 2 deletions pygrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
PyGrid - M.Shepanski 2016
Easily organize open windows on X11 desktop.
"""
import copy, json, os
import gi, signal
import copy, json, os, signal
from collections import namedtuple
from itertools import product
from Xlib import display, X
from Xlib.keysymdef import miscellany

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GObject # noqa
from gi.repository import Gdk # noqa
Expand Down

0 comments on commit 4efe8a2

Please sign in to comment.