fuhsjr00 / bug.n

Tiling Window Manager for Windows
GNU General Public License v3.0
3.35k stars 214 forks source link

Running a function by default #209

Closed ducklin5 closed 5 years ago

ducklin5 commented 5 years ago

Is it possible to have the View_toggleMargins() function run when bug.n starts up?

joten commented 5 years ago

That is you have set Config_viewMargins to something different than 0;0;0;0, but do not want the margins to be visible at start?

Currently the only way to do this, would be to edit the script and run bug.n as a script with AutoHotkey. It should be sufficient to put View_toggleMargins() on line 56 in Main.ahk.

ducklin5 commented 5 years ago

To clarify, I meant that I have set Config_viewMargins= 10;200;5;5 but I do want the margins visible from the start. It seems that bug.n always starts off with the margins disabled. Using Main.ahk did resolve that issue though.

joten commented 5 years ago

Config_viewMargins are meant to be toggled quickly having a glimpse on part of the desktop. Permanent margins for e.g. additional bars are currently only recognized for Windows Taskbar and bblean.