Skip to content

IsacEkeroth/ahk-resize-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 

Repository files navigation

ahk-resize-windows

Resizes and moves windows like in dwm and KDE

Standard modkey is meta(windows key)

Features

Resize

Resizes the window under the mouse from the closest corner to the mouse.

Modkey + Right click.

Move

Move the window under the mouse.

Modkey + Left click.

Fullscreen snapping

Move fullscreen windows between screens.

Drag a window to another screen.

Note: Also works on maximized and fullscreened windows.

Warning: May crash games if running in fullscreen, works mostly fine in windowed fullscreen.

Maximize

Maximize windows.

While moving a window double click left mouse button.

Minimize

Minimize windows.

Modkey + Middle mouse button.

Opacity

Changes the opacity of the window under the mouse.

Modkey + scroll up/down.

Configuration

Disabling features

To disable a feature comment out the hotkey at the top of the file.

Example disabling opacity.

Before:

hotif "not filters()"
hotkey modKey " & WheelUp", increaseOpacity
hotkey modKey " & WheelDown", decreaseOpacity
hotkey modKey " & LButton", move
hotkey modkey " & RButton", resize
hotkey modkey " & MButton", minimize
hotif

After:

hotif "not filters()"
; hotkey modKey " & WheelUp", increaseOpacity
; hotkey modKey " & WheelDown", decreaseOpacity
hotkey modKey " & LButton", move
hotkey modkey " & RButton", resize
hotkey modkey " & MButton", minimize
hotif

Changing modkey

Keyname refrence
Edit the top of the script

Example using alt:

; Options
modKey := "alt"

Requirements

Autohotkey v2
Only tested on Windows 10 & 11

Credits

IsFullscreen by Nigh
SetSystemCursor by iseahound

About

Resizes and moves windows like in dwm and KDE

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages