update komorebi.ahk

This commit is contained in:
Cynthia Foxwell 2022-09-15 10:35:14 -06:00
parent a636a14809
commit 36a8c5c3f8
1 changed files with 10 additions and 71 deletions

View File

@ -5,24 +5,17 @@
; https://github.com/LGUG2Z/komorebi/#generating-common-application-specific-configurations ; https://github.com/LGUG2Z/komorebi/#generating-common-application-specific-configurations
#Include %A_ScriptDir%\komorebi.generated.ahk #Include %A_ScriptDir%\komorebi.generated.ahk
; Default to minimizing windows when switching workspaces ;;;; Settings ;;;;
WindowHidingBehaviour("hide") WindowHidingBehaviour("hide")
; Set cross-monitor move behaviour to insert instead of swap
CrossMonitorMoveBehaviour("swap")
; Enable hot reloading of changes to this file
WatchConfiguration("enable") WatchConfiguration("enable")
; Ensure there is 1 workspace created on monitor 0
EnsureWorkspaces(0, 9) EnsureWorkspaces(0, 9)
; Configure the invisible border dimensions
InvisibleBorders(2,2,2,2) InvisibleBorders(2,2,2,2)
MouseFollowsFocus("disable") MouseFollowsFocus("disable")
; Configure the 1st workspace
WorkspaceName(0, 0, "I") WorkspaceName(0, 0, "I")
WorkspaceName(0, 1, "II") WorkspaceName(0, 1, "II")
WorkspaceName(0, 2, "III") WorkspaceName(0, 2, "III")
@ -42,6 +35,7 @@ WorkspacePadding(0, 5, 0)
WorkspacePadding(0, 6, 0) WorkspacePadding(0, 6, 0)
WorkspacePadding(0, 7, 0) WorkspacePadding(0, 7, 0)
WorkspacePadding(0, 8, 0) WorkspacePadding(0, 8, 0)
ContainerPadding(0, 0, 8) ContainerPadding(0, 0, 8)
ContainerPadding(0, 1, 8) ContainerPadding(0, 1, 8)
ContainerPadding(0, 2, 8) ContainerPadding(0, 2, 8)
@ -52,30 +46,17 @@ ContainerPadding(0, 6, 8)
ContainerPadding(0, 7, 8) ContainerPadding(0, 7, 8)
ContainerPadding(0, 8, 8) ContainerPadding(0, 8, 8)
; Uncomment the next two lines if you want a visual border drawn around the focused window ;;;; Rules ;;;;
; ActiveWindowBorderColour(66, 165, 245) ; this is a nice blue colour FloatRule("exe", "steam.exe")
; ActiveWindowBorder("enable") FloatRule("exe", "steamwebhelper.exe")
FloatRule("exe", "scrcpy.exe")
; Allow komorebi to start managing windows IdentifyTrayApplication("exe", "SoulseekQt.exe")
;;;; Finalize config ;;;;
CompleteConfiguration() CompleteConfiguration()
; Change the focused window, Alt + Vim direction keys (HJKL) ;;;; Keys ;;;;
;!h::
;Focus("left")
;return
;
;!j::
;Focus("down")
;return
;
;!k::
;Focus("up")
;return
;
;!l::
;Focus("right")
;return
#!q:: #!q::
Stop() Stop()
return return
@ -83,7 +64,6 @@ return
ReloadConfiguration() ReloadConfiguration()
return return
; Move the focused window in a given direction, Alt + Shift + Vim direction keys (HJKL)
#+h:: #+h::
Move("left") Move("left")
return return
@ -100,19 +80,6 @@ return
Move("right") Move("right")
return return
#+w::
Move("up")
return
#+a::
Move("left")
return
#+s::
Move("down")
return
#+d::
Move("right")
return
#1:: #1::
FocusWorkspace(0) FocusWorkspace(0)
return return
@ -183,31 +150,3 @@ return
#Enter:: #Enter::
Run, wezterm-gui start Run, wezterm-gui start
return return
; There are many more commands that you can bind to whatever keys combinations you want!
;
; Have a look at the komorebic.lib.ahk file to see which arguments are required by different commands
;
; If you want more information about a command, you can run every komorebic command with "--help"
;
; For example, if you see this in komorebic.lib.ahk
;
; WorkspaceLayout(monitor, workspace, value) {
; Run, komorebic.exe workspace-layout %monitor% %workspace% %value%, , Hide
; }
;
; Just run "komorebic.exe workspace-layout --help" and you'll get all the information you need to use the command
;
; komorebic.exe-workspace-layout
; Set the layout for the specified workspace
;
; USAGE:
; komorebic.exe workspace-layout <MONITOR> <WORKSPACE> <VALUE>
;
; ARGS:
; <MONITOR> Monitor index (zero-indexed)
; <WORKSPACE> Workspace index on the specified monitor (zero-indexed)
; <VALUE> [possible values: bsp, columns, rows, vertical-stack, horizontal-stack, ultrawide-vertical-stack]
;
; OPTIONS:
; -h, --help Print help information