feat(cli): impl quickstart and update config dir

This commit implements the komorebic quickstart command, adds a sample
komorebi.json and a sample skhdrc file which get built into the
komorebic binary, and updates the default config path on macOS to
$HOME/.config/komorebi
This commit is contained in:
LGUG2Z committed 2025-09-26 15:10:03 -07:00
1 parent 33c319ef61
commit 3792da1bb3
5 files changed
+216 -16

No files matched your search

+58
View File
@@ -0,0 +1,58 @@
{
"$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.39/schema.json",
"app_specific_configuration_path": "$HOME/.config/komorebi/applications.json",
"cross_monitor_move_behaviour": "Insert",
"default_workspace_padding": 15,
"default_container_padding": 15,
"floating_window_aspect_ratio": "Widescreen",
"floating_layer_behaviour": "Float",
"resize_delta": 100,
"ignore_rules": [],
"floating_applications": [],
"manage_rules": [],
"monitors": [
{
"workspaces": [
{
"name": "I",
"layout": "BSP",
"initial_workspace_rules": [
// {
// "kind": "Exe",
// "id": "Zen",
// "matching_strategy": "Equals"
// }
]
},
{
"name": "II",
"layout": "VerticalStack"
},
{
"name": "III",
"layout": "HorizontalStack"
},
{
"name": "IV",
"layout": "UltrawideVerticalStack"
},
{
"name": "V",
"layout": "Rows"
},
{
"name": "VI",
"layout": "Grid"
},
{
"name": "VII",
"layout": "RightMainVerticalStack"
},
{
"name": "VIII",
"layout": "Scrolling"
}
]
}
]
}
+69
View File
@@ -0,0 +1,69 @@
# Focus windows
alt - h : komorebic focus left
alt - j : komorebic focus down
alt - k : komorebic focus up
alt - l : komorebic focus right
alt + shift - 0x21 : komorebic cycle-focus previous # 0x21 is [
alt + shift - 0x1E : komorebic cycle-focus next # 0x1E is ]
# Move windows
alt + shift - h : komorebic move left
alt + shift - j : komorebic move down
alt + shift - k : komorebic move up
alt + shift - l : komorebic move right
alt + shift - return : komorebic promote
# Stack windows
ctrl - left : komorebic stack left
ctrl - down : komorebic stack down
ctrl - up : komorebic stack up
ctrl - right : komorebic stack right
alt - 0x29 : komorebic unstack # 0x29 is ;
alt - 0x21 : komorebic cycle-stack previous # 0x21 is [
alt - 0x1E : komorebic cycle-stack next # 0x1E is ]
# Workspace layer
alt + shift - 0x29 : komorebic toggle-workspace-layer # 0x29 is ;
# Resize
alt - 0x18 : komorebic resize-axis horizontal increase # 0x18 is +
alt - 0x1B : komorebic resize-axis horizontal decrease # 0x1B is -
alt + shift - 0x18 : komorebic resize-axis vertical increase
alt + shift - 0x1B : komorebic resize-axis vertical decrease
# Manipulate windows
alt - t : komorebic toggle-float
alt + shift - t : komorebic toggle-workspace-float-override
alt + shift - f : komorebic toggle-monocle
# Window manager options
alt + shift - r : komorebic retile
alt - p : komorebic toggle-pause
alt - 0 : komorebic toggle-window-container-behaviour
# Layouts
alt - x : komorebic flip-layout horizontal
alt - y : komorebic flip-layout vertical
alt + shift - x : komorebic session-float-rule
# Workspaces
alt - 1 : komorebic focus-workspace 0
alt - 2 : komorebic focus-workspace 1
alt - 3 : komorebic focus-workspace 2
alt - 4 : komorebic focus-workspace 3
alt - 5 : komorebic focus-workspace 4
alt - 6 : komorebic focus-workspace 5
alt - 7 : komorebic focus-workspace 6
alt - 8 : komorebic focus-workspace 7
alt - 9 : komorebic focus-workspace 8
# Move windows across workspaces
alt + shift - 1 : komorebic move-to-workspace 0
alt + shift - 2 : komorebic move-to-workspace 1
alt + shift - 3 : komorebic move-to-workspace 2
alt + shift - 4 : komorebic move-to-workspace 3
alt + shift - 5 : komorebic move-to-workspace 4
alt + shift - 6 : komorebic move-to-workspace 5
alt + shift - 7 : komorebic move-to-workspace 6
alt + shift - 8 : komorebic move-to-workspace 7
alt + shift - 9 : komorebic move-to-workspace 8