feat(wm): make active border with configurable

This commit introduces a new command which lets the user set a custom
width value for the active window border when it is enabled.

Unfortunately a little more width is required when working with rounded
windows on Windows 11 to fill the gap left by the rounding. The default
width remains set at 20.

re #232
This commit is contained in:
LGUG2Z
2022-12-09 18:57:58 -08:00
parent a2bd277620
commit e764dad7a4
7 changed files with 30 additions and 1 deletions

View File

@@ -336,6 +336,10 @@ ActiveWindowBorderColour(r, g, b, window_kind) {
RunWait, komorebic.exe active-window-border-colour %r% %g% %b% --window-kind %window_kind%, , Hide
}
ActiveWindowBorderWidth(width) {
RunWait, komorebic.exe active-window-border-width %width%, , Hide
}
FocusFollowsMouse(boolean_state, implementation) {
RunWait, komorebic.exe focus-follows-mouse %boolean_state% --implementation %implementation%, , Hide
}