Sticky Window Snapping [Plasma 5]

Kwin Scripts

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

https://github.com/Flupp/sticky-window-snapping

Original
0
Become a Fan
5.0

Description:
KWin script to let snapped window edges stick together when one window is resized.

The script provides an easy to use configuration dialog, which can be reached via “systemsettings”. (However, note section “Bugs and Workarounds”.)

When windows stick accidentally, you can release them by shaking the mouse while still resizing. The exact behavior is configurable. This feature can also be disabled.

Additionally, the script registers two global shortcuts: one for enabling/disabling the script permanently, and one for enabling/disabling the script only for the next resize. By default, no key combinations are assigned. You can change this using `systemsettings` (or `kcmshell6 keys`); the shortcuts are associated with the component “KWin”. Their names are prefixed by “KWin Script: Sticky Window Snapping”.

Bugs and Workarounds

  • If the configuration dialog is not reachable via “systemsettings”, then try running the following included script and restart “systemsettings”:
    ~/.local/share/kwin/scripts/sticky-window-snapping/backwards-compatibility/metadata-backwards-compatibility-fix.bash
  • If the script does not work, the options under the “Fine Tuning” tab in the configuration dialog might help.

Known issues

  • There is no optical feedback when a shortcut is pressed. I do not know how to initiate a KNotify notification from a KWin script. There is the function “callDBus”, but I do not know if or how it can be used for that purpose. KNotify provides the method “event” via D-Bus, but it expects arguments of types for which I do not know how to produce values with JavaScript.
  • Currently, not only snapped window edges are considered as connected, but even edges which are only on the same row/column are considered as connected. I have not decided yet if this is a bug or a feature.
Last changelog:

2.0.1

fixed:
• fix unsticking on rapid resize


Ratings & Comments

0 Comments

Be the first to comment
Pling
0 Affiliates
Details
license GPLv2 only
version 2.0.1
updated
added
downloads 24h 4
mediaviews 24h 0
pageviews 24h 0

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



System Tags