Extremely simple quadrant, half and directional window tiling for XFCE / xfwm4 (works across monitors).
Super+1 │ Super+3 1+2 = left half 1+3 = top half
────────┼──────── 3+4 = right half 2+4 = bottom half
Super+2 │ Super+4 1+4 = maximise 2+3 = minimise
| File | Purpose |
|---|---|
tile |
The whole thing |
install |
Installs it and writes the XFCE shortcuts |
- Linux
- X11
- EWMH window manager (tested on xfwm4)
- XFCE for the shortcuts
- Python 3
- libX11 and libXinerama for multi-monitor (fallback to one screen without it)
./install --all
./install --dry-run --allSettings -> Keyboard -> Application Shortcuts:
| Key | Command | Result |
|---|---|---|
Super+1 |
tile quad 1 |
top-left quarter |
Super+2 |
tile quad 2 |
bottom-left quarter |
Super+3 |
tile quad 3 |
top-right quarter |
Super+4 |
tile quad 4 |
bottom-right quarter |
Super+Left |
tile dir left |
step left, then onto the monitor to the left |
Super+Right |
tile dir right |
step right, then onto the monitor to the right |
Super+Up |
tile dir up |
step up |
Super+Down |
tile dir down |
step down |
Everything happens on the monitor the window is already on. The numbers are not monitor numbers.
| Chord | Result |
|---|---|
Super+1+2 |
left half |
Super+3+4 |
right half |
Super+1+3 |
top half |
Super+2+4 |
bottom half |
Super+1+4 |
maximise |
Super+2+3 |
minimise |
Super+1+2+3+4 |
maximise |
| Where the window is | Super+Left does |
|---|---|
| not tiled | left half, full height |
| full width | left half, rows kept |
| right half | left half, rows kept |
| left half at the edge | the monitor to the left, entering as its right half |
| left half, no monitor left | left half, top to bottom |
| Variable | Default | Meaning |
|---|---|---|
TILE_GAP |
0 |
Pixels between tiles and around the screen edge |
TILE_CHORD_WAIT |
0.08 |
Seconds spent watching for a simultaneous second key |
TILE_CHORD_HOLD |
0.45 |
Seconds a chord stays open for a late second key |
TILE_WRAP |
0 |
1 wraps past the outermost monitor instead of growing |
TILE_GTK_SHADOW |
0 |
1 grows CSD windows so their visible edge lines up |
TILE_WINDOW |
- | Act on this window id instead of the focused one |
rm -f ~/.local/bin/tile
for k in 1 2 3 4 Left Right Up Down; do
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Super>$k" -r
doneMIT LICENSE
By MattFor