############################################# # # AutoTile script # # Author: ChOcO-Bn # ############################################# $AUTOTILE = "on"; echo("Autotile Script: type /autotile for help. By Default, Autotile is enabled."); alias athelp { echo("Autotile on|off"); return; } alias autotile { if( $1 eq "on" ) { $AUTOTILE = "on"; echo("Autotile has been enabled."); } else if( $1 eq "off" ) { $AUTOTILE = "off"; echo("Autotile has been disabled."); } else { call("/athelp"); } return; } on active { if( $AUTOTILE eq "on" ) { tileWindows(); } } on inactive { if( $AUTOTILE eq "on" ) { tileWindows(); } } on minimize { if( $AUTOTILE eq "on" ) { tileWindows(); } } on maximize { if( $AUTOTILE eq "on" ) { tileWindows(); } }