hyprdrag is a Hyprland plugin to enable windowrules and IPC events for window move and resize events. This opens up many possibilities using standard windowrule configurations. Here is an example demonstrating transparency while moving and resizing windows:
demo.mp4
hyprpm add https://github.com/yz778/hyprdrag
hyprpm enable hyprdrag- Clone this repository
- Build plugin:
make -C src all - Add plugin to your
hyprland.conf:
plugin = /full_path_to/hyprdrag.so
Add window rules to your hyprland.conf, for example:
windowrule = noblur, tag:hyprdrag-move
windowrule = noblur, tag:hyprdrag-resize
windowrule = opacity 0.50 override, tag:hyprdrag-move
windowrule = opacity 0.80 override, tag:hyprdrag-resize
windowrule = bordersize 5, tag:hyprdrag-move
windowrule = bordersize 5, tag:hyprdrag-resize
windowrule = bordercolor rgba(ffa726ee) rgba(ffeb3bee) 120deg, tag:hyprdrag-move
windowrule = bordercolor rgba(ffcc80ee) rgba(fff9c4dd) 120deg, tag:hyprdrag-resize
hyprdrag emits four new IPC events:
hyprdrag-movestart>>[window address]
hyprdrag-movestop>>[window address]
hyprdrag-resizestart>>[window address]
hyprdrag-resizestop>>[window address]