mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-23 18:01:12 +01:00
Following the changes I witnessed in the invisible window border size following an OS update, this commit makes the invisible border offset configurable via a new komorebic command 'invisible-borders'. When sending a new set of invisible border offset dimensions via komorebic, a full retile across all monitors will take place after the new values have been set. The default values have been set to what is currently correct for my machine, and will likely be updated again in the same way in the future if further changes occur in subsequent OS updates. This commit also updates some dependencies to their latest releases, and removes from the CI workflow a line that attempts to delete the rustup-init.exe binary after installation which has been causing builds to fail. resolve #35
233 lines
3.9 KiB
AutoHotkey
233 lines
3.9 KiB
AutoHotkey
#SingleInstance Force
|
|
#Include %A_ScriptDir%\komorebic.lib.ahk
|
|
|
|
; Enable hot reloading of changes to this file
|
|
WatchConfiguration("enable")
|
|
|
|
; Ensure there are 5 workspaces created on monitor 0
|
|
EnsureWorkspaces(0, 5)
|
|
|
|
; Configure the invisible border dimensions
|
|
InvisibleBorders(7, 0, 14, 7)
|
|
|
|
; Configure the 1st workspace
|
|
WorkspaceName(0, 0, "bsp")
|
|
|
|
; Configure the 2nd workspace
|
|
WorkspaceName(0, 1, "columns") ; Optionally set the name of the workspace
|
|
WorkspacePadding(0, 1, 30) ; Set the padding around the edge of the screen
|
|
ContainerPadding(0, 1, 30) ; Set the padding between the containers on the screen
|
|
WorkspaceRule("exe", "slack.exe", 0, 1) ; Always show chat apps on this workspace
|
|
|
|
; Configure the 3rd workspace
|
|
WorkspaceName(0, 2, "thicc")
|
|
WorkspacePadding(0, 2, 200) ; Set some super thicc padding
|
|
|
|
; Configure the 4th workspace
|
|
WorkspaceName(0, 3, "matrix")
|
|
WorkspacePadding(0, 3, 0) ; No padding at all
|
|
ContainerPadding(0, 3, 0) ; Matrix-y hacker vibes
|
|
|
|
; Configure the 5th workspace
|
|
WorkspaceName(0, 4, "floaty")
|
|
WorkspaceTiling(0, 4, "disable") ; Everything floats here
|
|
|
|
; Configure floating rules
|
|
FloatRule("class", "SunAwtDialog") ; All the IntelliJ popups
|
|
FloatRule("title", "Control Panek")
|
|
FloatRule("class", "TaskManagerWindow")
|
|
FloatRule("exe", "Wally.exe")
|
|
FloatRule("exe", "wincompose.exe")
|
|
FloatRule("exe", "1Password.exe")
|
|
FloatRule("exe", "Wox.exe")
|
|
|
|
; Identify Minimize-to-Tray Applications
|
|
IdentifyTrayApplication("exe", "Discord.exe")
|
|
IdentifyTrayApplication("exe", "Spotify.exe")
|
|
|
|
; Identify Electron applications with overflowing borders
|
|
IdentifyBorderOverflow("exe", "Discord.exe")
|
|
IdentifyBorderOverflow("exe", "Spotify.exe")
|
|
IdentifyBorderOverflow("class", "ZPFTEWndClass")
|
|
|
|
; Change the focused window, Alt + Vim direction keys
|
|
!h::
|
|
Focus("left")
|
|
return
|
|
|
|
!j::
|
|
Focus("down")
|
|
return
|
|
|
|
!k::
|
|
Focus("up")
|
|
return
|
|
|
|
!l::
|
|
Focus("right")
|
|
return
|
|
|
|
; Move the focused window in a given direction, Alt + Shift + Vim direction keys
|
|
!+h::
|
|
Move("left")
|
|
return
|
|
|
|
!+j::
|
|
Move("down")
|
|
return
|
|
|
|
!+k::
|
|
Move("up")
|
|
return
|
|
|
|
!+l::
|
|
Move("right")
|
|
return
|
|
|
|
; Stack the focused window in a given direction, Alt + Shift + direction keys
|
|
!+Left::
|
|
Stack("left")
|
|
return
|
|
|
|
!+Down::
|
|
Stack("down")
|
|
return
|
|
|
|
!+Up::
|
|
Stack("up")
|
|
return
|
|
|
|
!+Right::
|
|
Stack("right")
|
|
return
|
|
|
|
!]::
|
|
CycleStack("next")
|
|
return
|
|
|
|
![::
|
|
CycleStack("previous")
|
|
return
|
|
|
|
; Unstack the focused window, Alt + Shift + D
|
|
!+d::
|
|
Unstack()
|
|
return
|
|
|
|
; Promote the focused window to the top of the tree, Alt + Shift + Enter
|
|
!+Enter::
|
|
Promote()
|
|
return
|
|
|
|
; Manage the focused window
|
|
!=::
|
|
Manage()
|
|
return
|
|
|
|
; Unmanage the focused window
|
|
!-::
|
|
Unmanage()
|
|
return
|
|
|
|
; Switch to an equal-width, max-height column layout on the main workspace, Alt + Shift + C
|
|
!+c::
|
|
ChangeLayout("columns")
|
|
return
|
|
|
|
; Switch to the default bsp tiling layout on the main workspace, Alt + Shift + T
|
|
!+t::
|
|
ChangeLayout("bsp")
|
|
return
|
|
|
|
; Toggle the Monocle layout for the focused window, Alt + Shift + F
|
|
!+f::
|
|
ToggleMonocle()
|
|
return
|
|
|
|
; Toggle native maximize for the focused window, Alt + Shift + =
|
|
!+=::
|
|
ToggleMaximize()
|
|
return
|
|
|
|
; Flip horizontally, Alt + X
|
|
!x::
|
|
FlipLayout("horizontal")
|
|
return
|
|
|
|
; Flip vertically, Alt + Y
|
|
!y::
|
|
FlipLayout("vertical")
|
|
return
|
|
|
|
; Force a retile if things get janky, Alt + Shift + R
|
|
!+r::
|
|
Retile()
|
|
return
|
|
|
|
; Float the focused window, Alt + T
|
|
!t::
|
|
ToggleFloat()
|
|
return
|
|
|
|
; Reload ~/komorebi.ahk, Alt + O
|
|
!o::
|
|
ReloadConfiguration()
|
|
return
|
|
|
|
; Pause responding to any window events or komorebic commands, Alt + P
|
|
!p::
|
|
TogglePause()
|
|
return
|
|
|
|
; Enable focus follows mouse
|
|
!0::
|
|
ToggleFocusFollowsMouse("komorebi")
|
|
return
|
|
|
|
; Switch to workspace
|
|
!1::
|
|
Send !
|
|
FocusWorkspace(0)
|
|
return
|
|
|
|
!2::
|
|
Send !
|
|
FocusWorkspace(1)
|
|
return
|
|
|
|
!3::
|
|
Send !
|
|
FocusWorkspace(2)
|
|
return
|
|
|
|
!4::
|
|
Send !
|
|
FocusWorkspace(3)
|
|
return
|
|
|
|
!5::
|
|
Send !
|
|
FocusWorkspace(4)
|
|
return
|
|
|
|
; Move window to workspace
|
|
!+1::
|
|
MoveToWorkspace(0)
|
|
return
|
|
|
|
!+2::
|
|
MoveToWorkspace(1)
|
|
return
|
|
|
|
!+3::
|
|
MoveToWorkspace(2)
|
|
return
|
|
|
|
!+4::
|
|
MoveToWorkspace(3)
|
|
return
|
|
|
|
!+5::
|
|
MoveToWorkspace(4)
|
|
return
|