mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-17 23:13:55 +01:00
57 lines
1018 B
AutoHotkey
57 lines
1018 B
AutoHotkey
#SingleInstance Force
|
|
|
|
; Load library
|
|
#Include komorebic.lib.ahk
|
|
|
|
; 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)
|