mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-30 20:24:09 +01:00
feat(usage): start adding usage docs and add skeletons
This commit is contained in:
1 parent
b780193b3a
commit
64c31feca3
14 files changed
+247
No files matched your search
@@ -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" },
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
---
|
||||
// src/components/PlatformLink.astro
|
||||
interface Props {
|
||||
command: string;
|
||||
text?: string;
|
||||
}
|
||||
|
||||
const { command, text } = Astro.props;
|
||||
const displayText = text || `komorebic ${command}`;
|
||||
---
|
||||
<a
|
||||
class="platform-link"
|
||||
data-command={command}
|
||||
href={`/reference/komorebic-macos/#${command}`}
|
||||
>{displayText}</a>
|
||||
|
||||
<script>
|
||||
function getPlatform(): string {
|
||||
const stored = localStorage.getItem('starlight-synced-tabs__platform');
|
||||
if (!stored) return 'macos';
|
||||
|
||||
// Starlight stores as plain string (e.g., "Windows", "macOS")
|
||||
const label = stored.toLowerCase();
|
||||
if (label === 'windows' || label === 'win') return 'windows';
|
||||
return 'macos';
|
||||
}
|
||||
|
||||
function updateLinks() {
|
||||
const platform = getPlatform();
|
||||
document.querySelectorAll('.platform-link').forEach(link => {
|
||||
const cmd = link.getAttribute('data-command');
|
||||
link.setAttribute('href', `/reference/komorebic-${platform}/#${cmd}`);
|
||||
});
|
||||
}
|
||||
|
||||
// Update on page load
|
||||
updateLinks();
|
||||
|
||||
// Listen for tab changes via storage event (works across tabs too)
|
||||
window.addEventListener('storage', updateLinks);
|
||||
|
||||
// Listen for tab clicks on the same page
|
||||
document.addEventListener('click', (e) => {
|
||||
const target = e.target as HTMLElement;
|
||||
const tab = target.closest('[role="tab"]');
|
||||
if (tab) {
|
||||
// Small delay to let Starlight update localStorage
|
||||
setTimeout(updateLinks, 50);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -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.
|
||||
|
||||
<Tabs syncKey="platform">
|
||||
<TabItem label="Windows">
|
||||
* 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
|
||||
</TabItem>
|
||||
|
||||
<TabItem label="macOS">
|
||||
* 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
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
@@ -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.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Animations
|
||||
description: Configuring animations
|
||||
---
|
||||
|
||||
TODO
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Borders
|
||||
description: Configuring borders
|
||||
---
|
||||
|
||||
TODO
|
||||
@@ -0,0 +1,48 @@
|
||||
---
|
||||
title: Containers
|
||||
description: Manipulating containers
|
||||
---
|
||||
|
||||
import PlatformLink from '../../../components/PlatformLink.astro';
|
||||
import { Tabs, TabItem, Steps } from '@astrojs/starlight/components';
|
||||
|
||||
<Tabs syncKey="platform">
|
||||
<TabItem label="Windows">
|
||||
</TabItem>
|
||||
|
||||
<TabItem label="macOS">
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
## 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 <PlatformLink command="stack" /> command.
|
||||
|
||||
#### Consolidation
|
||||
|
||||
All windows on a workspace can be consolidated into a single stack using the <PlatformLink command="stack-all" /> command.
|
||||
|
||||
### Focus
|
||||
|
||||
The focused window at the top of a container stack can be cycled using the <PlatformLink command="cycle-stack" /> command.
|
||||
|
||||
### Unstacking
|
||||
|
||||
#### Single Windows
|
||||
|
||||
The focused window at the top of a container stack can be popped into an independent container using the <PlatformLink command="unstack" /> command.
|
||||
|
||||
#### All Windows
|
||||
|
||||
All windows in a stack can be split into independent containers using the <PlatformLink command="unstack-all" /> command.
|
||||
|
||||
## Monocle Containers
|
||||
|
||||
A container can be set as the monocle container, hiding all other containers on the workspace, by using the <PlatformLink command="toggle-monocle" /> command. This command is reversible.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Layers
|
||||
description: Understanding workspace layers
|
||||
---
|
||||
|
||||
TODO
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Monitors
|
||||
description: Configuring monitors
|
||||
---
|
||||
|
||||
TODO
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Rules
|
||||
description: Understanding komorebi's rules system
|
||||
---
|
||||
|
||||
TODO
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Themes
|
||||
description: Selecting and defining themes
|
||||
---
|
||||
|
||||
TODO
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Wallpapers
|
||||
description: Configuring monitor and workspace wallpapers
|
||||
---
|
||||
|
||||
TODO
|
||||
@@ -0,0 +1,51 @@
|
||||
---
|
||||
title: Windows
|
||||
description: Manipulating windows
|
||||
---
|
||||
import PlatformLink from '../../../components/PlatformLink.astro';
|
||||
import { Tabs, TabItem, Steps } from '@astrojs/starlight/components';
|
||||
|
||||
<Tabs syncKey="platform">
|
||||
<TabItem label="Windows">
|
||||
</TabItem>
|
||||
|
||||
<TabItem label="macOS">
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
## Focus
|
||||
|
||||
Windows can be focused in the following ways.
|
||||
|
||||
### Relative Direction
|
||||
|
||||
Windows can be focused in a relative direction using the <PlatformLink command="focus"/> command.
|
||||
|
||||
### Cycle Direction
|
||||
|
||||
Windows can be focused in a cyclic direction using the <PlatformLink command="cycle-focus" /> command.
|
||||
|
||||
### Largest Tile
|
||||
|
||||
The window at the largest tile can be focused using the <PlatformLink command="promote-focus" /> command.
|
||||
|
||||
### Eager focus
|
||||
|
||||
It is possible to attempt to focus the first window on any workspace matching an executable name using the <PlatformLink command="eager-focus" /> command.
|
||||
|
||||
## Movement
|
||||
|
||||
Windows can be moved in the following ways.
|
||||
|
||||
### Relative Direction
|
||||
|
||||
Windows can be moved in a relative direction using the <PlatformLink command="move"/> command.
|
||||
|
||||
### Cycle Direction
|
||||
|
||||
Windows can be moved in a cyclic direction using the <PlatformLink command="cycle-move" /> command.
|
||||
|
||||
### Largest Tile
|
||||
|
||||
Windows can be moved to the largest tile using the <PlatformLink command="promote-swap" /> command. This command is reversible.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Workspaces
|
||||
description: Configuring workspaces
|
||||
---
|
||||
|
||||
TODO
|
||||
Reference in new issue
Block a user