Repository navigation
en Window Management and Scripts
Power up your daily desktop flow with orientation-aware window tiling, custom web & folder quicklinks, and local executable scripts.
Type win to arrange the active window or automatically tile multiple open windows without overlap across both landscape and portrait monitors.
| Command | Layout |
|---|---|
win auto |
Auto-Tile: orientation-aware non-overlapping layout across active windows |
win restore |
Batch Restore: revert recently tiled windows back to their original positions and sizes |
win left / win right
|
Left half / Right half |
win top / win bottom
|
Top half / Bottom half |
win top third / win middle third / win bottom third
|
Vertical thirds (great on portrait monitors) |
win top 2/3 / win bottom 2/3
|
Top two-thirds / Bottom two-thirds |
win max / win almost
|
Maximize / Almost Maximize |
win center / win reasonable
|
Center / Reasonable Size (macOS) |
win next / win prev
|
Move window to next / previous display |
Divide your monitor into 2 to 4 custom segments (each weight 1–99, with the smallest segment ≥ 10% of the sum):
| Syntax | Examples | Result |
|---|---|---|
| Compact digits |
win 21, win 12, win 73, win 121, win 1111
|
2:1, 1:2, 7:3, 1:2:1, 1:1:1:1
|
| Colon-separated |
win 2:1, win 70:30, win 1:2:1
|
Proportional left→right (landscape) or top→bottom (portrait) |
| Space-separated |
win 70 30, win 2 5 3
|
Same as colon syntax (note: / is rejected) |
-
Automatic reverse option: Asymmetric ratios like
win 21orwin 70:30show a live preview alongside the reversed option (1:2/30:70). - Multi-window reflow: Distributes windows in fixed spatial order and runs a second reflow pass for apps with minimum window widths; with only one window open, snaps it to the first segment on the left.
-
OS safety boundaries:
- macOS: Uses Accessibility and gracefully skips AX-disabled windows without stalling.
- Windows: Per-monitor DPI-aware work-area coordinates; strictly respects Windows UIPI (skips elevated admin windows cleanly with a clear status message instead of failing).
Manage web search shortcuts, pinned apps, and project folder aliases under Settings → Quicklinks.
-
g <query>: Enabled by default—searches Google (automatically uses attached selection or 60s-fresh clipboard text). -
Opt-in built-ins (enable with one toggle in Settings):
-
gh <query>: GitHub Search -
wiki <query>: Wikipedia (matches your UI language) -
map <query>: Google Maps
-
- Under Settings → Quicklinks, add a Name, Alias (e.g.
npm,mdn,jira), HTTPS Base URL (no query string or#fragment), and Query Parameter (e.g.q). - Trigger anytime with
<alias> <query>.
Bind a frequent project directory to a short alias (e.g. kh → ~/Work/ClientA):
-
kh quotesearches only insideClientA. -
kh+Tabjumps straight into its breadcrumb folder scope. - Pinned folders also surface at the top of the empty bar and inside Quick Switch file dialogs.
Enable and choose a local scripts folder under Settings → Scripts (Windows defaults to %LOCALAPPDATA%\Lumen\Scripts or portable data\Scripts, or a custom folder; scanned non-recursively with zero cloud hydration and no symlink traversal).
-
Supported types:
-
macOS: Any executable script (
chmod +x) — Shell, Python, Ruby, Node, etc. -
Windows:
.ps1(run silently viapowershell.exe -NoProfile -ExecutionPolicy Bypass -FilewithCREATE_NO_WINDOW),.cmd, and.bat.
-
macOS: Any executable script (
-
Metadata headers (
@lumen.*): Declared in comments within the first8 KiB(#or//on macOS;#in.ps1,REMor::in.cmd/.bat):
#!/bin/sh
# @lumen.title Flush Local DNS
# @lumen.alias dns
# @lumen.description Clear macOS DNS cache and print status
# @lumen.mode compact
# @lumen.argument1 domain
echo "Checked target: ${1:-all}"# @lumen.title Flush Local DNS
# @lumen.alias dns
# @lumen.description Clear local Windows DNS cache
# @lumen.mode fullOutput
# @lumen.argument1 domain
param([string]$Target)
ipconfig /flushdns
if ($Target) { Write-Output "Target: $Target" }| Mode | Behavior |
|---|---|
compact (default) |
Shows concise result text in the footer area |
fullOutput |
Opens an expandable output card (scrollable with PgUp/PgDn) |
inline |
Displays single-line inline output |
silent |
Runs quietly in the background, notifying only on error |
Safety limits: Scripts have a 30-second timeout and 256 KiB output cap. When
@lumen.argument1is declared, Lumen prompts for an argument or accepts your currently selected text/files automatically.
Toggle Apple Shortcuts under Settings → Scripts to discover and trigger your macOS Shortcuts (/usr/bin/shortcuts) right from the Lumen search bar.
Next Guide: Indexing Scope, External Volumes & Privacy Boundaries →
Lumen v0.9.0 · Wiki 首页 / Home · Releases · README (中文) · README (EN) · Discussions · 开源许可 MIT
- 1. 快速安装与 1 分钟上手
- 2. 全盘检索、拼音与目录作用域
- 3. 统一预览与 Windows QuickLook
- 4. 文件弹窗秒切与划词直通
- 5. 翻译、问答与本地 AI 搜图
- 6. 常用短语、剪贴板与效率套件
- 7. 智能分屏、快捷链接与脚本
- 8. 索引范围、外置盘与隐私安全
- 9. 快捷键与命令速查表
- 10. 常见问题与 CLI 进阶
- 1. Installation & Quick Start
- 2. Search Syntax & Folder Scope
- 3. Previews & Explorer QuickLook
- 4. Quick Switch & Selection Flow
- 5. Translation, Q&A & Local AI
- 6. Snippets, Clipboard & Utilities
- 7. Window Tiling, Quicklinks & Scripts
- 8. Indexing, Volumes & Privacy
- 9. Shortcuts, Commands & Parity
- 10. FAQ, Troubleshooting & CLI