Skip to content

Instantly share code, notes, and snippets.

@xiyaowong
Last active February 28, 2024 01:11
Show Gist options
  • Save xiyaowong/cb4a3355b9f45a873a340b311cc45f9f to your computer and use it in GitHub Desktop.
Save xiyaowong/cb4a3355b9f45a873a340b311cc45f9f to your computer and use it in GitHub Desktop.
komorebi configuration
{
"$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.20/schema.json",
"app_specific_configuration_path": "C:\\Users\\wongxy\\applications.yaml",
"window_hiding_behaviour": "Cloak",
"cross_monitor_move_behaviour": "Insert",
"default_workspace_padding": 0,
"default_container_padding": 0,
"active_window_border": false,
"active_window_border_colours": {
"single": { "r": 66, "g": 165, "b": 245 },
"stack": { "r": 256, "g": 165, "b": 66 },
"monocle": { "r": 255, "g": 51, "b": 153 }
},
"monitors": [
{
"workspaces": [
{ "name": "I", "layout": "BSP" },
{ "name": "II", "layout": "VerticalStack" },
{ "name": "III", "layout": "HorizontalStack" },
{ "name": "IV", "layout": "UltrawideVerticalStack" },
{ "name": "V", "layout": "Rows" }
]
}
]
}
scoop install komorebi whkd
komorebic enable-autostart
komorebic fetch-asc
komorebic start --whkd
.shell powershell
# Reload whkd configuration
# alt + o : taskkill /f /im whkd.exe && start /b whkd # if shell is cmd
ctrl + alt + o : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell
ctrl + alt + shift + o : komorebic reload-configuration
# App shortcuts - these require shell to be pwsh / powershell
# The apps will be focused if open, or launched if not open
# alt + f : if ($wshell.AppActivate('Firefox') -eq $False) { start firefox }
# alt + b : if ($wshell.AppActivate('Chrome') -eq $False) { start chrome }
# Focus windows
ctrl + alt + h : komorebic focus left
ctrl + alt + j : komorebic focus down
ctrl + alt + k : komorebic focus up
ctrl + alt + l : komorebic focus right
ctrl + alt + shift + oem_4 : komorebic cycle-focus previous # oem_4 is [
ctrl + alt + shift + oem_6 : komorebic cycle-focus next # oem_6 is ]
# Move windows
ctrl + alt + shift + h : komorebic move left
ctrl + alt + shift + j : komorebic move down
ctrl + alt + shift + k : komorebic move up
ctrl + alt + shift + l : komorebic move right
ctrl + alt + shift + return : komorebic promote
# Stack windows
ctrl + alt + left : komorebic stack left
ctrl + alt + down : komorebic stack down
ctrl + alt + up : komorebic stack up
ctrl + alt + right : komorebic stack right
ctrl + alt + oem_1 : komorebic unstack # oem_1 is ;
ctrl + alt + oem_4 : komorebic cycle-stack previous # oem_4 is [
ctrl + alt + oem_6 : komorebic cycle-stack next # oem_6 is ]
# Resize
ctrl + alt + oem_plus : komorebic resize-axis horizontal increase
ctrl + alt + oem_minus : komorebic resize-axis horizontal decrease
ctrl + alt + shift + oem_plus : komorebic resize-axis vertical increase
ctrl + alt + shift + oem_minus : komorebic resize-axis vertical decrease
# Manipulate windows
ctrl + alt + t : komorebic toggle-float
ctrl + alt + shift + f : komorebic toggle-monocle
# Window manager options
ctrl + alt + shift + r : komorebic retile
ctrl + alt + p : komorebic toggle-pause
# Layouts
ctrl + alt + x : komorebic flip-layout horizontal
ctrl + alt + y : komorebic flip-layout vertical
# Workspaces
ctrl + alt + 1 : komorebic focus-workspace 0
ctrl + alt + 2 : komorebic focus-workspace 1
ctrl + alt + 3 : komorebic focus-workspace 2
# Move windows across workspaces
ctrl + alt + shift + 1 : komorebic move-to-workspace 0
ctrl + alt + shift + 2 : komorebic move-to-workspace 1
ctrl + alt + shift + 3 : komorebic move-to-workspace 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment