Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

93 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ฒ AHK WM v2.10.0

AutoHotkey v2 Platform License Release

English ็ฎ€ไฝ“ไธญๆ–‡

**A tiny, fast, single-file window manager for Windows โ€” powered by AutoHotkey v2.**

AHK WM tagline

AHK WM Banner


๐Ÿ“‘ Contents


โœจ Features

๐Ÿ–ฅ๏ธ 9 Virtual Desktops Switch, move, gather via hotkeys ๐Ÿงฉ Smart Tiling
๐Ÿ“Š Status Bar Gradient, rounded, multi-monitor ๐ŸŽจ 20+ Themes
๐Ÿฅง Pie Menu Space + Right Mouse โŒจ๏ธ WTM Mode
โœ‹ KDE-style Drag Alt + drag anywhere to move/resize ๐Ÿ”ค WinSelect
๐Ÿ“‹ Clipboard History Built-in logger & viewer ๐Ÿ”Œ External API
โฑ๏ธ Work Timer Configurable progress bar ๐Ÿ“ Snapping

Two years of daily-use refinement. Built because every other Windows WM was too heavy and made my machine unusable for anyone else.

๐Ÿ“ธ Screenshots

Preview Description
Screenshots Desktop overview โ€” borders, tiling, multi-window layout
Smart Tile Smart Tiling โ€” one key arranges all windows
Pie Menu Pie Menu โ€” radial menu, Space + Right Mouse
WinSelect WinSelect โ€” letter-labeled overlay
Bar Widgets Status Bar โ€” gradient widgets, rounded corners
Border Gradient Gradient Borders โ€” focus/unfocus with gradient colors
Border Fullscreen Border in action โ€” colored frames around tiled windows
Help Built-in Help โ€” Alt + / for full hotkey reference

divider

๐Ÿ“ฆ Installation

  1. Install AutoHotkey v2 โ†’ https://www.autohotkey.com/
  2. Download wm.ahk from the latest release
  3. Run as Administrator (required for elevated windows)

Download Latest Release

โš ๏ธ Pie menu customization and some advanced features require AHK v2. Running the .ahk script is recommended.


๐Ÿš€ Quick Start

Action Hotkey
๐Ÿ“– Help page Alt + /
๐Ÿงฉ Tile current monitor Alt + D
โœ‹ Move window (anywhere) Alt + Left Mouse
๐Ÿ“ Resize window (anywhere) Alt + Right Mouse
๐Ÿ”„ Switch desktop 1~9 Alt + 1 ~ 9
๐Ÿ“ฆ Move window to desktop Alt + Shift + 1 ~ 9
๐Ÿš€ Move & follow to desktop Ctrl + Alt + 1 ~ 9
๐Ÿ“Š Toggle status bar Ctrl + Alt + B
โŒจ๏ธ WTM keyboard tiling Ctrl + Alt + T
๐Ÿ’พ Save layout Alt + Shift + S
๐Ÿงฒ Gather all windows Alt + Shift + G
๐Ÿ“Œ Toggle always-on-top Alt + T
๐Ÿ”ƒ Reload script Alt + R
๐Ÿฅง Pie menu Space + Right Mouse
โšก Power menu Alt + X


๐Ÿงฐ Detailed Features

Feature Description
๐Ÿ–ฅ๏ธ Virtual Desktops 9 independent desktops. Switch (Alt+N), move windows (Alt+Shift+N), or move-and-follow (Ctrl+Alt+N). Inactive-desktop windows can be minimized or hidden.
๐Ÿงฉ Smart Tiling One key tiles all windows on the current monitor. Custom layout rules per monitor with gap control.
โœ‹ KDE-style Drag Move windows by holding Alt + dragging anywhere (not just the title bar). Resize with Alt + Right Mouse.
๐Ÿฅง Pie Menu Hold Space, then right-click: a radial menu appears. Move the mouse in a direction to trigger that action.
๐Ÿ“Š Status Bar Multi-monitor bar with gradient colors, rounded corners, and per-element alignment. Shows desktops, clock, date, progress, system stats, and custom widgets.
๐Ÿ–ผ๏ธ Window Borders Colored borders around active/inactive windows with live gradient support. Toggle with Ctrl+Alt+B.
โŒจ๏ธ WTM Mode Full keyboard window management: HJKL to move focus and swap windows, Ctrl+HJKL to resize, Alt+HJKL to snap.
๐Ÿ“ Window Snapping Drag windows to screen edges or other windows to snap. Configurable snap/release distances.
๐ŸŽจ Themes 20+ built-in themes (Nord, Dracula, Catppuccin, Gruvbox, Tokyo Night, Monokaiโ€ฆ). Export any theme to custom in one click.
โฑ๏ธ Work Timer Configurable work period with progress bar on the status bar.
๐Ÿ“‹ Clipboard History Logs all copied text to a file with timestamps.
โšก Power Menu Shutdown / Sleep / Reboot menu with gradient buttons.

๐Ÿ”Œ External Interfaces

AHK_WM listens for WM_COPYDATA messages. External scripts can push text to the status bar or pop up center-screen notifications โ€” with full per-call visual customization.

OSD (on-screen display)

; Basic โ€” uses config defaults
AHK_WM_OSD("Build passed!", 3000)

; With per-call overrides (all keys optional)
AHK_WM_OSD("Disk full!", 5000, "fs=36,bg=CC3333,tx=FFFFFF,op=95,pos=30")

Available override keys (see docs/config-reference.md for full table):

Key Meaning Default
fs Font size Config OSDFontSize (20)
op Opacity % Config OSDOpacity (78)
pos Vertical position % Config OSDPositionPct (80)
x / y Pixel/percentage coordinates (center / config)
bg / tx Background / text color Theme colors
wr Max width (auto-wrap) 85% monitor width
rd / rr Rounded corners on/off + radius Config values
fn Font face Config FontName
tag Logical label (same-tag OSDs replace each other) (none)

External OSDs run in a separate instance pool โ€” they never interfere with wm.ahk's own internal OSD popups.

Bar custom widgets (external_N)

Like OSD, the bar exposes an external interface โ€” push content from any script:

WMBarPush(1, "0.5/0.8", "Now Playing: Hey Jude โ€” The Beatles")
WMBarPush(2, "(200-550)/1920", "Take a sad song`nand make it better")  ; `n = newline, renders as 2 lines

Bundled examples

Ready-to-run examples are in docs/Examples/OSDExamples/ and docs/Examples/BarExamples/, each with English (En/) and Chinese (Ch/) variants, heavily commented with full parameter docs.

Claude Code integration

{
  "hooks": {
    "Stop": [
      { "command": "C:\\Users\\Administrator\\Desktop\\AHK_WM\\docs\\Examples\\OSDExamples\\En\\osd-simple.ahk" }
    ]
  }
}

A simple config lets Claude Code pop an OSD on completion โ€” the same idea works for task schedulers, CI pipelines, Pomodoro timers, whatever.

๐Ÿ“‚ docs/Examples/OSDExamples/ and docs/Examples/BarExamples/ โ€” several ready-to-run demos to learn from.

โš™๏ธ Configuration

Config Reference

All configuration lives in %USERPROFILE%\.config\AHK_WM\wm_config.ini. Edit it, then press Alt + R to reload โ€” no restart needed.


๐Ÿ”ฎ Roadmap

  • WTM mode โ€” the current WTM has many rough edges
  • Per-monitor desktops โ€” independent desktop switching per monitor
  • Package managers โ€” Scoop, Chocolatey, winget distribution
  • Window exclude rules โ€” current exclusion rules need improvement
  • Bar auto-hide & reveal โ€” currently only full hide; add occlusion-based auto-hide or transparency mode

โ“ Troubleshooting

Symptom Fix
Hotkeys fail in admin windows Run script as Administrator
Pie menu customization broken Install AHK v2 (not just the .exe)
Borders look offset Adjust Border thickness or radius

๐Ÿค Contributing

  • ๐Ÿ› Bug reports โ€” Open an issue with repro steps and Windows version
  • ๐Ÿ’ก Feature requests โ€” Open an issue with the enhancement label
  • ๐Ÿ”ง Pull requests โ€” Welcome. For large changes, open an issue first.
  • ๐ŸŽจ Themes โ€” Submit with a screenshot.

Thanks

๐Ÿ“„ License

MIT ยฉ 2024-2026 EngineeringMechanicsB

About

A tiny, fast, single-file, AHK window manager for Windows

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages