Yanjing - plasma 5

Kwin Scripts kwin

Source i (link to git-repo or to original if based on someone elses unmodified work):

https://github.com/davidosomething/yanjing

Original
1
Become a Fan
5.4

Description:
# Yanjing

KWin script to resize and move windows. Like Spectacle/Rectangle on mac.

## Installation

Available in the [KDE store](https://store.kde.org/p/1492899/)
After installation, set up using System Settings > Shortcuts > KWin as pictured here ( https://raw.githubusercontent.com/davidosomething/yanjing/19b8703b114f26306d32db285d23db6d90e78a44/meta/setup.png )


## Configuration

You can customize the sizes this script cycles through by setting them in your
kwin config using this command:

```sh
kwriteconfig5 --file kwinrc --group Script-yanjing --key sizes "50,66,34,100"
qdbus org.kde.KWin /KWin reconfigure
```

This will write the sizes to your `~/.config/kwinrc` file under the
`[Script-yanjing]` group.
You may need to disable and re-enable the plugin in
`System Settings > KWin Scripts` for the sizes to be read.

## Commands

- Yanjing LEFT - `no default`
- Vertically maximize, flush the window to the LEFT side of the screen, or
resize width if already flushed.
- Yanjing CENTER - `no default`
- Vertically maximize, center window horizontally, or resize width if
already centered. Centering allows a 2px margin of error.
- Yanjing RIGHT - `no default`
- Vertically maximize, flush the window to the RIGHT side of the screen,
or resize width if already flushed.
- Yanjing yMax + LEFT - `ctrl-shift-meta-a`
- Vertically maximize, flush the window to the LEFT side of the screen, or
resize width if already flushed.
- Yanjing yMax + CENTER - `ctrl-shift-meta-x` -
- Vertically maximize, center window horizontally, or resize width if
already centered. Centering allows a 2px margin of error.
- Yanjing yMax + RIGHT - `ctrl-shift-meta-d`
- Vertically maximize, flush the window to the RIGHT side of the screen,
or resize width if already flushed.

### Resizing logic

The window will steps through the [Sizes array](./contents/code/main.js).
It does so in reverse order, so as you "shove" the window against each edge of
the screen or into the center more, it shrinks. It will loop back to the
largest size.

## License

MIT
Last changelog:

v6.1.2

- Republish, remove old metadata.desktop


Ratings & Comments

3 Comments

fdeluca

3 3 bad No setup instructions

davidosomething

Configure it in System Settings -> Shortcuts -> KWin https://raw.githubusercontent.com/davidosomething/yanjing/19b8703b114f26306d32db285d23db6d90e78a44/meta/setup.png Hope you'll reconsider the rating since that's more of a how-to-use plasma issue than a plugin one.

xvello

10 10/10, works great and author is very responsive

Pling
0 Affiliates
Details
license MIT License
version 6.1.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

Other Kwin Scripts:

Snap To Deco
thomas12777
last update date: 11 years ago

Score 5.0

Unminimize windows w/o taskbar entry
thomas12777
last update date: 11 years ago

Score 5.0

MiniStack
faho
last update date: 11 years ago

Score 5.0

Debug Clients
thomas12777
last update date: 11 years ago

Score 5.0

TIL3R
causa-prima
last update date: 11 years ago

Score 5.7

Spam Transients
thomas12777
last update date: 10 years ago

Score 5.0