From 64c31feca31dd6c101036b87838c0434467c4eb6 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Thu, 1 Jan 2026 17:41:19 -0800 Subject: [PATCH] feat(usage): start adding usage docs and add skeletons --- astro.config.mjs | 16 ++++++ src/components/PlatformLink.astro | 51 +++++++++++++++++++ src/content/docs/guides/known-issues.mdx | 26 ++++++++++ .../docs/guides/license-registration.md | 7 +++ src/content/docs/usage/animations.mdx | 6 +++ src/content/docs/usage/borders.mdx | 6 +++ src/content/docs/usage/containers.mdx | 48 +++++++++++++++++ src/content/docs/usage/layers.mdx | 6 +++ src/content/docs/usage/monitors.mdx | 6 +++ src/content/docs/usage/rules.mdx | 6 +++ src/content/docs/usage/themes.mdx | 6 +++ src/content/docs/usage/wallpapers.mdx | 6 +++ src/content/docs/usage/windows.mdx | 51 +++++++++++++++++++ src/content/docs/usage/workspaces.mdx | 6 +++ 14 files changed, 247 insertions(+) create mode 100644 src/components/PlatformLink.astro create mode 100644 src/content/docs/guides/known-issues.mdx create mode 100644 src/content/docs/usage/animations.mdx create mode 100644 src/content/docs/usage/borders.mdx create mode 100644 src/content/docs/usage/containers.mdx create mode 100644 src/content/docs/usage/layers.mdx create mode 100644 src/content/docs/usage/monitors.mdx create mode 100644 src/content/docs/usage/rules.mdx create mode 100644 src/content/docs/usage/themes.mdx create mode 100644 src/content/docs/usage/wallpapers.mdx create mode 100644 src/content/docs/usage/windows.mdx create mode 100644 src/content/docs/usage/workspaces.mdx diff --git a/astro.config.mjs b/astro.config.mjs index 1d872633..654a41c5 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -43,9 +43,25 @@ export default defineConfig({ }, { label: "Quickstart", slug: "guides/quickstart" }, { label: "Upgrades", slug: "guides/upgrades" }, + { label: "Known Issues", slug: "guides/known-issues" }, { label: "Uninstallation", slug: "guides/uninstallation" }, ], }, + { + label: "Usage", + items: [ + { label: "Windows", slug: "usage/windows" }, // focusing, moving, resizing + { label: "Containers", slug: "usage/containers" }, // stacking + { label: "Workspaces", slug: "usage/workspaces" }, // send-to / move-to, padding, offsets, layouts, layout flips + { label: "Monitors", slug: "usage/monitors" }, // send-to / move-to, padding, offsets, move behavior + { label: "Layers", slug: "usage/layers" }, // floating vs tiling layer + { label: "Borders", slug: "usage/borders" }, // borders and colors + { label: "Themes", slug: "usage/themes" }, // themes for borders (and the bar) + { label: "Animations", slug: "usage/animations" }, // experimental animations + { label: "Wallpapers", slug: "usage/wallpapers" }, // wallpapers per monitor/workspace and themegen + { label: "Rules", slug: "usage/rules" }, // layout rules, behavior rules, matching rules, composite rules + ], + }, { label: "Reference", autogenerate: { directory: "reference" }, diff --git a/src/components/PlatformLink.astro b/src/components/PlatformLink.astro new file mode 100644 index 00000000..ac7fa8f4 --- /dev/null +++ b/src/components/PlatformLink.astro @@ -0,0 +1,51 @@ +--- +// src/components/PlatformLink.astro +interface Props { + command: string; + text?: string; +} + +const { command, text } = Astro.props; +const displayText = text || `komorebic ${command}`; +--- +{displayText} + + diff --git a/src/content/docs/guides/known-issues.mdx b/src/content/docs/guides/known-issues.mdx new file mode 100644 index 00000000..5e86618f --- /dev/null +++ b/src/content/docs/guides/known-issues.mdx @@ -0,0 +1,26 @@ +--- +title: Known Issues +description: A license registration guide for komorebi. +--- + +import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; + +If you're interested in working on any of these issues you can drop by the +[#development](https://discord.gg/mGkn66PHkx) channel on the Discord. + + + + * Resizing with the mouse is janky - This probably needs a whole rewrite but I don't use this feature enough to do it myself + * The Scrolling layout is limited to setups with a single monitor - This is to avoid bleeding windows into other monitors. There is a workaround which technically works which involves resizing windows at the edges when they move in and out of the viewport, but Electron sucks and every Electron app gives the black screen of death when resized like this + + + + * The flow for manually adding Accessibility and Screen Recording permissions sucks - I am open to ideas on how to improve this + * Fullscreen windows aren't supported and break the state - I don't have any plans or ideas on how to support them smoothly but I'm open to hear yours + * Application hiding isn't supported and breaks the state - This will probably never be supported and I suggest disabling the CMD+H hotkey entirely + * The hotkey CMD+H is used by macOS to hide the application - I suggest disabling it entirely + * Resizing with the mouse is janky - This probably needs a whole rewrite but I don't use this feature enough to do it myself + * Resizing windows with animations enabled is a train wreck - I suggest keeping animations disabled if you like to use the mouse to resize and move windows + * The Scrolling layout is limited to setups with a single monitor - This is due to the lack of public window hiding API which komorebi works around by stashing windows in hidden corners, which would bleed "hidden" windows into other monitors + + diff --git a/src/content/docs/guides/license-registration.md b/src/content/docs/guides/license-registration.md index 6b4e663c..ede9e575 100644 --- a/src/content/docs/guides/license-registration.md +++ b/src/content/docs/guides/license-registration.md @@ -32,3 +32,10 @@ This is currently a manual process - most days this shouldn't take more than If you haven't had a reply to your email within 24h you can reach out to me on [Discord](https://discord.gg/mGkn66PHkx). + +## Edge Cases on Windows + +There are always edge cases, and if you are using komorebi for personal use and +think you have been caught up in one of them you can email me with a screenshot +of the output from `dsregcmd /status` and a few lines about why the device you +are using is enrolled in (BYOD) MDM and I can usually add an override for you. diff --git a/src/content/docs/usage/animations.mdx b/src/content/docs/usage/animations.mdx new file mode 100644 index 00000000..3f225cc3 --- /dev/null +++ b/src/content/docs/usage/animations.mdx @@ -0,0 +1,6 @@ +--- +title: Animations +description: Configuring animations +--- + +TODO diff --git a/src/content/docs/usage/borders.mdx b/src/content/docs/usage/borders.mdx new file mode 100644 index 00000000..af1fca35 --- /dev/null +++ b/src/content/docs/usage/borders.mdx @@ -0,0 +1,6 @@ +--- +title: Borders +description: Configuring borders +--- + +TODO diff --git a/src/content/docs/usage/containers.mdx b/src/content/docs/usage/containers.mdx new file mode 100644 index 00000000..57d971ab --- /dev/null +++ b/src/content/docs/usage/containers.mdx @@ -0,0 +1,48 @@ +--- +title: Containers +description: Manipulating containers +--- + +import PlatformLink from '../../../components/PlatformLink.astro'; +import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; + + + + + + + + + + +## Container Stacks + +Container stacks can be manipulated in the following ways. + +### Stacking + +#### Directional Stacking + +The focused window can be stacked on top of another window in a relative direction using the command. + +#### Consolidation + +All windows on a workspace can be consolidated into a single stack using the command. + +### Focus + +The focused window at the top of a container stack can be cycled using the command. + +### Unstacking + +#### Single Windows + +The focused window at the top of a container stack can be popped into an independent container using the command. + +#### All Windows + +All windows in a stack can be split into independent containers using the command. + +## Monocle Containers + +A container can be set as the monocle container, hiding all other containers on the workspace, by using the command. This command is reversible. diff --git a/src/content/docs/usage/layers.mdx b/src/content/docs/usage/layers.mdx new file mode 100644 index 00000000..ccd24523 --- /dev/null +++ b/src/content/docs/usage/layers.mdx @@ -0,0 +1,6 @@ +--- +title: Layers +description: Understanding workspace layers +--- + +TODO diff --git a/src/content/docs/usage/monitors.mdx b/src/content/docs/usage/monitors.mdx new file mode 100644 index 00000000..21f298cf --- /dev/null +++ b/src/content/docs/usage/monitors.mdx @@ -0,0 +1,6 @@ +--- +title: Monitors +description: Configuring monitors +--- + +TODO diff --git a/src/content/docs/usage/rules.mdx b/src/content/docs/usage/rules.mdx new file mode 100644 index 00000000..c8c83475 --- /dev/null +++ b/src/content/docs/usage/rules.mdx @@ -0,0 +1,6 @@ +--- +title: Rules +description: Understanding komorebi's rules system +--- + +TODO diff --git a/src/content/docs/usage/themes.mdx b/src/content/docs/usage/themes.mdx new file mode 100644 index 00000000..afdcea46 --- /dev/null +++ b/src/content/docs/usage/themes.mdx @@ -0,0 +1,6 @@ +--- +title: Themes +description: Selecting and defining themes +--- + +TODO diff --git a/src/content/docs/usage/wallpapers.mdx b/src/content/docs/usage/wallpapers.mdx new file mode 100644 index 00000000..ad5ff331 --- /dev/null +++ b/src/content/docs/usage/wallpapers.mdx @@ -0,0 +1,6 @@ +--- +title: Wallpapers +description: Configuring monitor and workspace wallpapers +--- + +TODO diff --git a/src/content/docs/usage/windows.mdx b/src/content/docs/usage/windows.mdx new file mode 100644 index 00000000..37de0856 --- /dev/null +++ b/src/content/docs/usage/windows.mdx @@ -0,0 +1,51 @@ +--- +title: Windows +description: Manipulating windows +--- +import PlatformLink from '../../../components/PlatformLink.astro'; +import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; + + + + + + + + + + +## Focus + +Windows can be focused in the following ways. + +### Relative Direction + +Windows can be focused in a relative direction using the command. + +### Cycle Direction + +Windows can be focused in a cyclic direction using the command. + +### Largest Tile + +The window at the largest tile can be focused using the command. + +### Eager focus + +It is possible to attempt to focus the first window on any workspace matching an executable name using the command. + +## Movement + +Windows can be moved in the following ways. + +### Relative Direction + +Windows can be moved in a relative direction using the command. + +### Cycle Direction + +Windows can be moved in a cyclic direction using the command. + +### Largest Tile + +Windows can be moved to the largest tile using the command. This command is reversible. diff --git a/src/content/docs/usage/workspaces.mdx b/src/content/docs/usage/workspaces.mdx new file mode 100644 index 00000000..cc6aa16c --- /dev/null +++ b/src/content/docs/usage/workspaces.mdx @@ -0,0 +1,6 @@ +--- +title: Workspaces +description: Configuring workspaces +--- + +TODO