Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xfce-tiler

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

Parts

File Purpose
tile The whole thing
install Installs it and writes the XFCE shortcuts

Requirements

  • 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

./install --all
./install --dry-run --all

Shortcuts

Settings -> 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.

Chords

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

Arrows

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

Tuning

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

Removal

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
done

License

MIT LICENSE

By MattFor

About

A very simple quadrant tiler that I made for myself.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages