Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 1.5 KB

README.md

File metadata and controls

59 lines (47 loc) · 1.5 KB

Halfwit's Window Manager

Set of scripts around wmutils/wmgroup/watom that form my window manager Running wm

NOTE:

For this to work as expected, everything you use must have a dependable title. This is difficult in certain browsers, for example Surf. I set the window class for anything I invoke with shell; in st it looks like this: st -c "mytitle" -e myprogram.

CAUTION:

This will break in mysterious and wonderful ways. Welcome to X11!

Startup

xinitrc

# all things you start before
inotifybar &
exec hwwm

Installation

Requires watom, wmgroup, wmutils

PREFIX=myprefix make install

The inotifybar is very specific to my system, but serves as an interesting example of what is possible, with the various *bar scripts being ran on hooks or at the ends of scripts only, such that polling doesn't take too much CPU time. It currently works with battery and groups, but it is simple to add other items as well, see my dotfiles for examples.

Configuration

This presumes $XDG_CONFIG_HOME/x11 exists, with the following files:

tags

# name autofocus group
mpv false 1
firefox true 2
vim true 3
irc true 4
zathura true 5

size

width=1363
height=751
gaps=6
fulw=1354
fulh=743

window

weechat '%s %s %s %s' "350" "224" "454" "261"
# Any valid sh here to emit something in the form of
# See my dotfiles for examples
# <nameofwindow> '%s %s %s %s' <minx> <miny> <maxx> <maxy>