53 lines
1.7 KiB
Markdown
53 lines
1.7 KiB
Markdown
> [!CAUTION]
|
|
> This project heavily used agentic coding practices. It is not recommended to use this for production and should be heavily monitored prior to any implementation. If you do not align with agentic-coding values, do not use this application.
|
|
|
|
> The model(s) used: **Claude Sonnet 5.5**
|
|
|
|
> AI contribution: **99%**, Human contribution: **1%**
|
|
|
|
# plasma-windowgrid
|
|
|
|
A KWin effect for Plasma 6 (Wayland) that copies how [WindowGrid](http://windowgrid.net/) works on Windows. It has not been compiled or tested yet, so expect build errors.
|
|
|
|
## Usage
|
|
|
|
1. Drag a window by its title bar with the left button held.
|
|
2. Hold the right button (or Space) and move the cursor to pick the start cell. The grid shows up.
|
|
3. Release the right button (or Space) and move the cursor. The window resizes live to the cells between the start and the cursor.
|
|
4. Release the left button to finish.
|
|
|
|
Middle button during a drag switches to plain window moving. Escape cancels. The grid is transposed on portrait monitors.
|
|
|
|
## Build
|
|
|
|
Needs the Plasma 6.8 KWin development files, since the effect API changes between releases.
|
|
|
|
sudo pacman -S --needed base-devel cmake extra-cmake-modules kwin libepoxy
|
|
makepkg -si
|
|
|
|
Or by hand:
|
|
|
|
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr
|
|
cmake --build build
|
|
sudo cmake --install build
|
|
|
|
Then enable "WindowGrid" under System Settings > Window Management > Desktop Effects. Rebuild whenever KWin updates.
|
|
|
|
## Config
|
|
|
|
There is no settings page. Edit `~/.config/kwinrc`:
|
|
|
|
[Effect-windowgrid]
|
|
Columns=6
|
|
Rows=4
|
|
UseWorkArea=true
|
|
GridColor=255,255,255
|
|
SelectionColor=61,174,233
|
|
Opacity=0.35
|
|
|
|
Then run `qdbus6 org.kde.KWin /Effects reconfigureEffect windowgrid`.
|
|
|
|
## License
|
|
|
|
GPL-3.0-or-later.
|