Hyprland Windows
Hyprland-style window handling: move, resize, maximize and close windows with Win + mouse from anywhere on them, hide title bars, color window borders, and go round the virtual desktops with Win+Tab
Author: hiword9
Window handling the way Hyprland does it, on Windows.

- Win + left mouse button - drag a window from anywhere on it, not just by
its title bar.
- Win + right mouse button - resize a window from anywhere on it, from
whichever corner is closest to the cursor. With a setting turned on,
Win + Alt + left mouse button does the same, which a touchpad can hold
through a drag.
- Win + mouse wheel - make a window larger or smaller, around its center or
the cursor; two fingers on a touchpad do it too.
- Win + double click - maximize a window, or restore it. The title bar is
gone, so the double click that used to be on it now works anywhere on the
window; the settings offer other things for it to do.
- Win + middle click - close the window under the cursor. The button, the
modifiers and the action are all settings; it can be a key instead, such as
Win+Q - even one Windows already uses, like Win+W.
- Ctrl+Alt+H - hide the focused window's title bar; press it again to bring
the title bar back.
- Win+Tab - go to the next virtual desktop that has windows on it, at once;
Win+Shift+Tab goes back. With no other one that has windows, it goes to an
empty desktop - a new one, if there is no other desktop at all, which stays
like one made with Win+Ctrl+D. Task View moves to Win+Ctrl+Tab.
Moving and resizing feel like the real thing: windows still snap to the screen
edges, dragging one to the top still offers the Windows 11 snap layouts, and
Esc cancels a drag in progress. A window you are dragging fades to slightly
translucent while you hold it, the way a Hyprland window does. Hold Ctrl as
well and its edges turn magnetic: bring one close to another window or to the
edge of the screen and it lines up with it. Hold Shift while resizing to
keep the window's proportions.
Title bars can also go away on their own: with hiding by default turned on,
every new window opens without one, except the programs on a list of
exceptions (Paint and the Snipping Tool to begin with).
Give windows a border color - your own, or accent to follow the Windows
accent color - and it fades from one color to the other as focus moves, the
way a Hyprland border does. That goes for every window with a frame, or only
for the ones whose title bar is hidden, whichever the settings say.
Everything is configurable in the settings - the hotkey, the modifier key, the
translucency, the magnet, the border, and how much of the frame goes away with
the title bar.
Good to know
- Apps that draw their own title bar instead of using the system one (Chrome,
Electron apps, VS Code, Office) are not affected by the hotkey.
- A window with a classic menu bar (File, Edit, ...) can't keep that menu where it
is once the title bar is gone, so by default it is hidden along with it and
stays reachable from the keyboard: letting go of
Alt, or F10, brings it
up over the window until you are done with it. The settings offer the other
choices.
- Win+Tab switches desktops through a part of Windows that Microsoft doesn't
publish. It is known for Windows 10 and for Windows 11 from 22H2 on; on a
build the mod doesn't recognize, Win+Tab stays Task View.
- File Explorer scrolls with two fingers on a touchpad its own way, which the
mod has no say in: there, Win + two fingers scroll as they always do, and
the mouse wheel is what scales the window.
- The hotkey, and a window shortcut that is a key, are taken everywhere: a
program that uses the same keys for something of its own doesn't get them
while the mod is on. Pick other keys in the settings if one does.
Conflicts
- AltDrag moves and resizes windows with
a key and the mouse as well, and
Slick Window Arrangement
snaps windows while they are dragged. Running either of them alongside this
mod, two mods act on the same drag: use one of them at a time - or, with
Slick Window Arrangement, turn this mod's magnetic edges off.
Source and feedback
The source is on GitHub -
feedback is welcome.