initial src commit of v10
This commit is contained in:
parent
c52de57e23
commit
52126dd8cc
11 changed files with 80 additions and 118 deletions
|
@ -1,9 +1,9 @@
|
||||||
## bug.n -- Tiling Window Manager
|
## bug.n -- Tiling Window Management
|
||||||
|
|
||||||
bug.n is a
|
bug.n is a
|
||||||
[tiling window manager](https://en.wikipedia.org/wiki/Tiling_window_manager)
|
[tiling window manager](https://en.wikipedia.org/wiki/Tiling_window_manager)
|
||||||
add-on for Microsoft Windows. It is written in the scripting language
|
add-on for the Explorer shell of Microsoft Windows. It is written in the
|
||||||
[AutoHotkey](http://ahkscript.org/download/).
|
scripting language [AutoHotkey](http://ahkscript.org/download/).
|
||||||
|
|
||||||
### What it can do
|
### What it can do
|
||||||
|
|
||||||
|
|
18
src/Bar.ahk
18
src/Bar.ahk
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
bug.n -- tiling window management
|
:title: bug.n -- Tiling Window Management
|
||||||
Copyright (c) 2010-2015 Joshua Fuhs, joten
|
:copyright: (c) 2016 by Joshua Fuhs & joten <https://github.com/fuhsjr00/bug.n>
|
||||||
|
:license: GNU General Public License version 3;
|
||||||
|
LICENSE.md or at <http://www.gnu.org/licenses/>
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
PARTICULAR PURPOSE.
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
@license GNU General Public License version 3
|
|
||||||
../LICENSE.md or <http://www.gnu.org/licenses/>
|
|
||||||
|
|
||||||
@version 9.0.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Bar_init(m) {
|
Bar_init(m) {
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
bug.n -- tiling window management
|
:title: bug.n -- Tiling Window Management
|
||||||
Copyright (c) 2010-2015 Joshua Fuhs, joten
|
:copyright: (c) 2016 by Joshua Fuhs & joten <https://github.com/fuhsjr00/bug.n>
|
||||||
|
:license: GNU General Public License version 3;
|
||||||
|
LICENSE.md or at <http://www.gnu.org/licenses/>
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
PARTICULAR PURPOSE.
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
@license GNU General Public License version 3
|
|
||||||
../LICENSE.md or <http://www.gnu.org/licenses/>
|
|
||||||
|
|
||||||
@version 9.0.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Config_init() {
|
Config_init() {
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
bug.n -- tiling window management
|
:title: bug.n -- Tiling Window Management
|
||||||
Copyright (c) 2010-2015 Joshua Fuhs, joten
|
:copyright: (c) 2016 by Joshua Fuhs & joten <https://github.com/fuhsjr00/bug.n>
|
||||||
|
:license: GNU General Public License version 3;
|
||||||
|
LICENSE.md or at <http://www.gnu.org/licenses/>
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
PARTICULAR PURPOSE.
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
@license GNU General Public License version 3
|
|
||||||
../LICENSE.md or <http://www.gnu.org/licenses/>
|
|
||||||
|
|
||||||
@version 9.0.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Debug_initLog(filename, level = 0, truncateFile = True)
|
Debug_initLog(filename, level = 0, truncateFile = True)
|
||||||
|
|
30
src/Main.ahk
30
src/Main.ahk
|
@ -1,29 +1,27 @@
|
||||||
/*
|
/*
|
||||||
bug.n -- tiling window management
|
:title: bug.n -- Tiling Window Management
|
||||||
Copyright (c) 2010-2015 Joshua Fuhs, joten
|
:copyright: (c) 2016 by Joshua Fuhs & joten <https://github.com/fuhsjr00/bug.n>
|
||||||
|
:license: GNU General Public License version 3;
|
||||||
|
LICENSE.md or at <http://www.gnu.org/licenses/>
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
PARTICULAR PURPOSE.
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
@license GNU General Public License version 3
|
|
||||||
../LICENSE.md or <http://www.gnu.org/licenses/>
|
|
||||||
|
|
||||||
@version 9.0.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
NAME := "bug.n"
|
VERSION := "10.0.0"
|
||||||
VERSION := "9.0.0"
|
|
||||||
|
|
||||||
;; Script settings
|
;; script settings
|
||||||
|
#NoEnv
|
||||||
OnExit, Main_cleanup
|
OnExit, Main_cleanup
|
||||||
|
SendMode Input
|
||||||
SetBatchLines, -1
|
SetBatchLines, -1
|
||||||
SetTitleMatchMode, 3
|
SetTitleMatchMode, 3
|
||||||
SetTitleMatchMode, fast
|
SetTitleMatchMode, fast
|
||||||
SetWinDelay, 10
|
SetWinDelay, 10
|
||||||
#NoEnv
|
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
||||||
#SingleInstance force
|
#SingleInstance force
|
||||||
|
;#Warn ; Enable warnings to assist with detecting common errors.
|
||||||
#WinActivateForce
|
#WinActivateForce
|
||||||
|
|
||||||
;; Pseudo main function
|
;; Pseudo main function
|
||||||
|
@ -38,7 +36,7 @@ SetWinDelay, 10
|
||||||
Config_filePath := Main_appDir "\Config.ini"
|
Config_filePath := Main_appDir "\Config.ini"
|
||||||
Config_init()
|
Config_init()
|
||||||
|
|
||||||
Menu, Tray, Tip, %NAME% %VERSION%
|
Menu, Tray, Tip, bug.n %VERSION%
|
||||||
IfExist %A_ScriptDir%\logo.ico
|
IfExist %A_ScriptDir%\logo.ico
|
||||||
Menu, Tray, Icon, %A_ScriptDir%\logo.ico
|
Menu, Tray, Icon, %A_ScriptDir%\logo.ico
|
||||||
Menu, Tray, NoStandard
|
Menu, Tray, NoStandard
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
bug.n -- tiling window management
|
:title: bug.n -- Tiling Window Management
|
||||||
Copyright (c) 2010-2015 Joshua Fuhs, joten
|
:copyright: (c) 2016 by Joshua Fuhs & joten <https://github.com/fuhsjr00/bug.n>
|
||||||
|
:license: GNU General Public License version 3;
|
||||||
|
LICENSE.md or at <http://www.gnu.org/licenses/>
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
PARTICULAR PURPOSE.
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
@license GNU General Public License version 3
|
|
||||||
../LICENSE.md or <http://www.gnu.org/licenses/>
|
|
||||||
|
|
||||||
@version 9.0.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Manager_init()
|
Manager_init()
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
bug.n -- tiling window management
|
:title: bug.n -- Tiling Window Management
|
||||||
Copyright (c) 2010-2015 Joshua Fuhs, joten
|
:copyright: (c) 2016 by Joshua Fuhs & joten <https://github.com/fuhsjr00/bug.n>
|
||||||
|
:license: GNU General Public License version 3;
|
||||||
|
LICENSE.md or at <http://www.gnu.org/licenses/>
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
PARTICULAR PURPOSE.
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
@license GNU General Public License version 3
|
|
||||||
../LICENSE.md or <http://www.gnu.org/licenses/>
|
|
||||||
|
|
||||||
@version 9.0.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Monitor_init(m, doRestore) {
|
Monitor_init(m, doRestore) {
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
bug.n -- tiling window management
|
:title: bug.n -- Tiling Window Management
|
||||||
Copyright (c) 2010-2015 Joshua Fuhs, joten
|
:copyright: (c) 2016 by Joshua Fuhs & joten <https://github.com/fuhsjr00/bug.n>
|
||||||
|
:license: GNU General Public License version 3;
|
||||||
|
LICENSE.md or at <http://www.gnu.org/licenses/>
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
PARTICULAR PURPOSE.
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
@license GNU General Public License version 3
|
|
||||||
../LICENSE.md or <http://www.gnu.org/licenses/>
|
|
||||||
|
|
||||||
@version 9.0.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ResourceMonitor_init() {
|
ResourceMonitor_init() {
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
bug.n -- tiling window management
|
:title: bug.n -- Tiling Window Management
|
||||||
Copyright (c) 2010-2015 Joshua Fuhs, joten
|
:copyright: (c) 2016 by Joshua Fuhs & joten <https://github.com/fuhsjr00/bug.n>
|
||||||
|
:license: GNU General Public License version 3;
|
||||||
|
LICENSE.md or at <http://www.gnu.org/licenses/>
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
PARTICULAR PURPOSE.
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
@license GNU General Public License version 3
|
|
||||||
../LICENSE.md or <http://www.gnu.org/licenses/>
|
|
||||||
|
|
||||||
@version 9.0.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Tiler_addSubArea(m, v, i, areaX, areaY, areaW, areaH) {
|
Tiler_addSubArea(m, v, i, areaX, areaY, areaW, areaH) {
|
||||||
|
|
18
src/View.ahk
18
src/View.ahk
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
bug.n -- tiling window management
|
:title: bug.n -- Tiling Window Management
|
||||||
Copyright (c) 2010-2015 Joshua Fuhs, joten
|
:copyright: (c) 2016 by Joshua Fuhs & joten <https://github.com/fuhsjr00/bug.n>
|
||||||
|
:license: GNU General Public License version 3;
|
||||||
|
LICENSE.md or at <http://www.gnu.org/licenses/>
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
PARTICULAR PURPOSE.
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
@license GNU General Public License version 3
|
|
||||||
../LICENSE.md or <http://www.gnu.org/licenses/>
|
|
||||||
|
|
||||||
@version 9.0.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
View_init(m, v)
|
View_init(m, v)
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
bug.n -- tiling window management
|
:title: bug.n -- Tiling Window Management
|
||||||
Copyright (c) 2010-2015 Joshua Fuhs, joten
|
:copyright: (c) 2016 by Joshua Fuhs & joten <https://github.com/fuhsjr00/bug.n>
|
||||||
|
:license: GNU General Public License version 3;
|
||||||
|
LICENSE.md or at <http://www.gnu.org/licenses/>
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
PARTICULAR PURPOSE.
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
@license GNU General Public License version 3
|
|
||||||
../LICENSE.md or <http://www.gnu.org/licenses/>
|
|
||||||
|
|
||||||
@version 9.0.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Window_activate(wndId) {
|
Window_activate(wndId) {
|
||||||
|
|
Loading…
Reference in a new issue