Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance Force
- ; Load library
- #Include komorebic.lib.ahk
- ; Load configuration
- #Include komorebi.generated.ahk
- ; Send the ALT key whenever changing focus to force focus changes
- AltFocusHack("enable")
- ; Default to cloaking windows when switching workspaces
- WindowHidingBehaviour("cloak")
- ; Set cross-monitor move behaviour to insert instead of swap
- CrossMonitorMoveBehaviour("Insert")
- ; Enable hot reloading of changes to this file
- WatchConfiguration("enable")
- ; Create named workspaces I-V on monitor 0
- EnsureNamedWorkspaces(0, "I II III IV V")
- ; You can do the same thing for secondary monitors too
- ; EnsureNamedWorkspaces(1, "A B C D E F")
- ; Assign layouts to workspaces, possible values: bsp, columns, rows, vertical-stack, horizontal-stack, ultrawide-vertical-stack
- NamedWorkspaceLayout("I", "bsp")
- ; Set the gaps around the edge of the screen for a workspace
- NamedWorkspacePadding("I", 20)
- ; Set the gaps between the containers for a workspace
- NamedWorkspaceContainerPadding("I", 20)
- ; You can assign specific apps to named workspaces
- ; NamedWorkspaceRule("exe", "Firefox.exe", "III")
- ; Configure the invisible border dimensions
- InvisibleBorders(7, 0, 14, 7)
- ; Uncomment the next lines if you want a visual border around the active window
- ActiveWindowBorderColour(66, 165, 245, "single")
- ActiveWindowBorderColour(256, 165, 66, "stack")
- ActiveWindowBorderColour(255, 51, 153, "monocle")
- NamedWorkspacePadding(1,0)
- NamedWorkspaceContainerPadding(1,0)
- CompleteConfiguration()
- ; Focus windows
- !h::Focus("left")
- !j::Focus("down")
- !k::Focus("up")
- !l::Focus("right")
- !+[::CycleFocus("previous")
- !+]::CycleFocus("next")
- ; Move windows
- !+h::Move("left")
- !+j::Move("down")
- !+k::Move("up")
- !+l::Move("right")
- !+Enter::Promote()
- ; Stack windows
- !Left::Stack("left")
- !Right::Stack("right")
- !Up::Stack("up")
- !Down::Stack("down")
- !;::Unstack()
- ![::CycleStack("previous")
- !]::CycleStack("next")
- ; Resize
- !=::ResizeAxis("horizontal", "increase")
- !-::ResizeAxis("horizontal", "decrease")
- !+=::ResizeAxis("vertical", "increase")
- !+-::ResizeAxis("vertical", "decrease")
- ; Manipulate windows
- !t::ToggleFloat()
- !+f::ToggleMonocle()
- ; Window manager options
- !+r::Retile()
- !p::TogglePause()
- ; Layouts
- !x::FlipLayout("horizontal")
- !y::FlipLayout("vertical")
- ; Workspaces
- !1::FocusWorkspace(0)
- !2::FocusWorkspace(1)
- !3::FocusWorkspace(2)
- ; Move windows across workspaces
- !+1::MoveToWorkspace(0)
- !+2::MoveToWorkspace(1)
- !+3::MoveToWorkspace(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement