fuhsjr00 / bug.n

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

What window style is used to remove title bar? #218

Open lambdaheart opened 5 years ago

lambdaheart commented 5 years ago

I've searched for WinSet, Style but I can't find what style bug.n sets to make those small title bars without text and buttons. What is the correct code?

ertwro commented 5 years ago

This is in the documentation.

The only AutoHotkey functions implemented are Run and Send son WinSet is not available Defualt Config, only Run and Send

Config_barCommands=Run, explore doc;Monitor_toggleBar();Reload;ExitApp

The commands separated by semicolon, which are listed in the command GUI of the bar (#!) and therewith can be selected rather then typed; bug.n functions (as used in the hotkey configuration), the Run and Send command of AutoHotkey can be used here.

What you are probably looking for can either be achieved by pressing WinShiftd that activates Config_hotkey=#+d::Window_toggleDecor() Hotkeys or by specifying the rule for your particular class of window or all windows in the config.ini Configuration Rules like this:

;; All the windows
Config_rule_#1=.*;.*;;1;0;0;0;0;0;
;; Particular window, eg #10 and 
Config_rule_#1=*.Vivaldi;;1;0;0;0;0;0;

The important one is the ;;1;0;0;0;0;0; zero that I marked as bold. by pressing Wini you get the information about your Window.

There are tutorials on YouTube for this. Try to use the issues for bugs. Another option is modifying the source code yourself.

joten commented 5 years ago

As @ertwro said. Therefor the style regarding the code is -0xC00000 i.e. WS_CAPTION => a window without a title bar (see https://www.autohotkey.com/docs/misc/Styles.htm).