Rework tiling code based off Consortium

Taken from
https://github.com/SolusOS-discontinued/consortium/commit/b463e03f5bdeab307ceee6b969c681f29537c76d
don't change use settings by command line argument
Merge remote-tracking branch 'upstream/master'