From 52126dd8cc55678d9d58114a4c3c5425e7c633f3 Mon Sep 17 00:00:00 2001 From: joten Date: Thu, 11 Feb 2016 20:56:47 +0100 Subject: [PATCH] initial src commit of v10 --- README.md | 6 +++--- src/Bar.ahk | 18 +++++++----------- src/Config.ahk | 18 +++++++----------- src/Debug.ahk | 18 +++++++----------- src/Main.ahk | 30 ++++++++++++++---------------- src/Manager.ahk | 18 +++++++----------- src/Monitor.ahk | 18 +++++++----------- src/ResourceMonitor.ahk | 18 +++++++----------- src/Tiler.ahk | 18 +++++++----------- src/View.ahk | 18 +++++++----------- src/Window.ahk | 18 +++++++----------- 11 files changed, 80 insertions(+), 118 deletions(-) diff --git a/README.md b/README.md index 02312d1..4f11f8f 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -## bug.n -- Tiling Window Manager +## bug.n -- Tiling Window Management bug.n is a [tiling window manager](https://en.wikipedia.org/wiki/Tiling_window_manager) -add-on for Microsoft Windows. It is written in the scripting language -[AutoHotkey](http://ahkscript.org/download/). +add-on for the Explorer shell of Microsoft Windows. It is written in the +scripting language [AutoHotkey](http://ahkscript.org/download/). ### What it can do diff --git a/src/Bar.ahk b/src/Bar.ahk index fee4c2a..fb327af 100644 --- a/src/Bar.ahk +++ b/src/Bar.ahk @@ -1,16 +1,12 @@ /* - bug.n -- tiling window management - Copyright (c) 2010-2015 Joshua Fuhs, joten +:title: bug.n -- Tiling Window Management +:copyright: (c) 2016 by Joshua Fuhs & joten +:license: GNU General Public License version 3; + LICENSE.md or at - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - @license GNU General Public License version 3 - ../LICENSE.md or - - @version 9.0.0 +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. */ Bar_init(m) { diff --git a/src/Config.ahk b/src/Config.ahk index 69cf859..0388fcd 100644 --- a/src/Config.ahk +++ b/src/Config.ahk @@ -1,16 +1,12 @@ /* - bug.n -- tiling window management - Copyright (c) 2010-2015 Joshua Fuhs, joten +:title: bug.n -- Tiling Window Management +:copyright: (c) 2016 by Joshua Fuhs & joten +:license: GNU General Public License version 3; + LICENSE.md or at - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - @license GNU General Public License version 3 - ../LICENSE.md or - - @version 9.0.0 +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. */ Config_init() { diff --git a/src/Debug.ahk b/src/Debug.ahk index c42a18a..e44c468 100644 --- a/src/Debug.ahk +++ b/src/Debug.ahk @@ -1,16 +1,12 @@ /* - bug.n -- tiling window management - Copyright (c) 2010-2015 Joshua Fuhs, joten +:title: bug.n -- Tiling Window Management +:copyright: (c) 2016 by Joshua Fuhs & joten +:license: GNU General Public License version 3; + LICENSE.md or at - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - @license GNU General Public License version 3 - ../LICENSE.md or - - @version 9.0.0 +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. */ Debug_initLog(filename, level = 0, truncateFile = True) diff --git a/src/Main.ahk b/src/Main.ahk index 323db53..9e40dd7 100644 --- a/src/Main.ahk +++ b/src/Main.ahk @@ -1,29 +1,27 @@ /* - bug.n -- tiling window management - Copyright (c) 2010-2015 Joshua Fuhs, joten +:title: bug.n -- Tiling Window Management +:copyright: (c) 2016 by Joshua Fuhs & joten +:license: GNU General Public License version 3; + LICENSE.md or at - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - @license GNU General Public License version 3 - ../LICENSE.md or - - @version 9.0.0 +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. */ -NAME := "bug.n" -VERSION := "9.0.0" +VERSION := "10.0.0" -;; Script settings +;; script settings +#NoEnv OnExit, Main_cleanup +SendMode Input SetBatchLines, -1 SetTitleMatchMode, 3 SetTitleMatchMode, fast SetWinDelay, 10 -#NoEnv +SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #SingleInstance force +;#Warn ; Enable warnings to assist with detecting common errors. #WinActivateForce ;; Pseudo main function @@ -38,7 +36,7 @@ SetWinDelay, 10 Config_filePath := Main_appDir "\Config.ini" Config_init() - Menu, Tray, Tip, %NAME% %VERSION% + Menu, Tray, Tip, bug.n %VERSION% IfExist %A_ScriptDir%\logo.ico Menu, Tray, Icon, %A_ScriptDir%\logo.ico Menu, Tray, NoStandard diff --git a/src/Manager.ahk b/src/Manager.ahk index 27cf838..c5d9704 100644 --- a/src/Manager.ahk +++ b/src/Manager.ahk @@ -1,16 +1,12 @@ /* - bug.n -- tiling window management - Copyright (c) 2010-2015 Joshua Fuhs, joten +:title: bug.n -- Tiling Window Management +:copyright: (c) 2016 by Joshua Fuhs & joten +:license: GNU General Public License version 3; + LICENSE.md or at - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - @license GNU General Public License version 3 - ../LICENSE.md or - - @version 9.0.0 +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. */ Manager_init() diff --git a/src/Monitor.ahk b/src/Monitor.ahk index f190c53..76481c9 100644 --- a/src/Monitor.ahk +++ b/src/Monitor.ahk @@ -1,16 +1,12 @@ /* - bug.n -- tiling window management - Copyright (c) 2010-2015 Joshua Fuhs, joten +:title: bug.n -- Tiling Window Management +:copyright: (c) 2016 by Joshua Fuhs & joten +:license: GNU General Public License version 3; + LICENSE.md or at - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - @license GNU General Public License version 3 - ../LICENSE.md or - - @version 9.0.0 +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. */ Monitor_init(m, doRestore) { diff --git a/src/ResourceMonitor.ahk b/src/ResourceMonitor.ahk index 98e0a2b..8bfc1f0 100644 --- a/src/ResourceMonitor.ahk +++ b/src/ResourceMonitor.ahk @@ -1,16 +1,12 @@ /* - bug.n -- tiling window management - Copyright (c) 2010-2015 Joshua Fuhs, joten +:title: bug.n -- Tiling Window Management +:copyright: (c) 2016 by Joshua Fuhs & joten +:license: GNU General Public License version 3; + LICENSE.md or at - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - @license GNU General Public License version 3 - ../LICENSE.md or - - @version 9.0.0 +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. */ ResourceMonitor_init() { diff --git a/src/Tiler.ahk b/src/Tiler.ahk index 573abe4..63a1193 100644 --- a/src/Tiler.ahk +++ b/src/Tiler.ahk @@ -1,16 +1,12 @@ /* - bug.n -- tiling window management - Copyright (c) 2010-2015 Joshua Fuhs, joten +:title: bug.n -- Tiling Window Management +:copyright: (c) 2016 by Joshua Fuhs & joten +:license: GNU General Public License version 3; + LICENSE.md or at - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - @license GNU General Public License version 3 - ../LICENSE.md or - - @version 9.0.0 +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. */ Tiler_addSubArea(m, v, i, areaX, areaY, areaW, areaH) { diff --git a/src/View.ahk b/src/View.ahk index a8cc6fb..5e487d8 100644 --- a/src/View.ahk +++ b/src/View.ahk @@ -1,16 +1,12 @@ /* - bug.n -- tiling window management - Copyright (c) 2010-2015 Joshua Fuhs, joten +:title: bug.n -- Tiling Window Management +:copyright: (c) 2016 by Joshua Fuhs & joten +:license: GNU General Public License version 3; + LICENSE.md or at - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - @license GNU General Public License version 3 - ../LICENSE.md or - - @version 9.0.0 +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. */ View_init(m, v) diff --git a/src/Window.ahk b/src/Window.ahk index 71f285c..06bd068 100644 --- a/src/Window.ahk +++ b/src/Window.ahk @@ -1,16 +1,12 @@ /* - bug.n -- tiling window management - Copyright (c) 2010-2015 Joshua Fuhs, joten +:title: bug.n -- Tiling Window Management +:copyright: (c) 2016 by Joshua Fuhs & joten +:license: GNU General Public License version 3; + LICENSE.md or at - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - @license GNU General Public License version 3 - ../LICENSE.md or - - @version 9.0.0 +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. */ Window_activate(wndId) {