updated readme

This commit is contained in:
Tomas Baca 2018-08-30 03:45:05 +02:00
parent 5b22e62c68
commit 1d5fd5c3a4

View file

@ -31,7 +31,16 @@ Currently, its a hacky-type of a shell script, but feel free to contribute :-).
5. User is then asked about how should the windows be matched. The options are:
* All by _instance_ (instance will be uncommented for all windows)
* Match any window to any placeholder
* Choose an option for each window. With this option, the user will be asked to choose between the _class_, _instance_ and _title_ for each window. The tree file will be modified according to the selected options.
* Choose an option for each window. The user will be asked to choose between the _class_, _instance_ and _title_ for each window. The tree file will be modified according to the selected options automatically.
6. After that the tree is save and ready to be loaded.
7. User can load the layout either before opening windows, which creates placeholders, or after windows have been already created in a workspace. The second part normally does not work.
8. To apply a layout, we first move all windows containing a process from the workspace using `xdotool`, which leaves only placeholders. Then we kill all the old placeholders, before we apply the layout, which spawns new placeholders in the correct places. Lastly we move the windows back, which triggers the _swallow_ mechanicm in the same way, as newly create windows do.
## FAQ
* Why do you use vim for the automated file editing?
`Vim is great for this kind of work. A simple oneliner can do complex edits which would be difficult to program even using, e.g., python. Thanks to this, the layout manager was hacked up in single day.`
## Dependencies