-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login



Sponsoring


-
- Content .- Fans (3) . 

Sticky Window Snapping

   0.2  

KWin Scripts

Score 67%
Issue Tacker:  Link
Version Control:  Link
Downloads:  217
Submitted:  Mar 9 2013
Updated:  Mar 10 2013

Description:

Let snapped window edges stick together when one window is resized.

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. The default shortcut keys are Meta+Shift+S and Ctrl+Shift+S, respectively. You can change them using systemsettings (or kcmshell4 keys); they are associated with the component “KWin”. Their names are prefixed by “KWin Script: Sticky Window Snapping”.

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” by dbus, but it expects arguments of types for which I do not know how to produce values with Java Script.

  • 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, if this is a bug or a feature, yet.



  • Changelog:

    v0.2:
  • maximized windows are ignored now

  • shaded windows are ignored now

  • windows on other screens are ignored now

  • changed behavior when windows get very small while resizing


  • v0.1:
  • initial release



  • LicenseGPL
    (sticky-window-snapping-v0.2.kwinscript)
    (sticky-window-snapping-v0.1.kwinscript)
    Donate
    Send to a friend
    Subscribe
    Other  Artwork  from Flupp
    Report inappropriate content



    goto page: prev   1  2 

    -
    .

     Doesn't work for me

     
     by Henri on: Apr 12 2013
     
    Score 50%

    I've installed and enabled the script. When I snap two windows side by side and resize one window it doesn't resize the another one. Using Kde 4.10.2.


    Reply to this

    -

     Re: Doesn't work for me

     
     by Flupp on: Apr 12 2013
     
    Score 50%

    Have you forgotten to press the “Apply” button in systemsettings? (Maybe this seems like a stupid question, but I occasionally forget it myself.)

    Have you tried restarting kwin after applying the changes (Alt+F2: kwin --replace)? I have to do this sometimes – this may be a bug in kwin, but I am not sure.

    Alternatively you can try to log out and log in again.


    Reply to this

    -
    .

     Re: Re: Doesn't work for me

     
     by Henri on: Apr 15 2013
     
    Score 50%

    I've rebooted my system and it's working now as it should. Thanks. I love the script! Something that should be default in KDE imho.


    Reply to this

    -

     Really Nice

     
     by Crespyl on: May 15 2013
     
    Score 50%

    Ever since I found out about the removal of tiling features in 4.10 I've been looking for a good work-around, and I'm really liking this so far.
    Really elegant idea.

    The one suggestions/request I have is that I would like to see support for the kwin "Resize Window" effect during resize, which displays the resizing window using a faster/more responsive scale effect until the resize ends. I've no idea how hard that might be though...


    Reply to this

    -

     Re: Really Nice

     
     by Crespyl on: May 15 2013
     
    Score 50%

    Actually, I should clarify about the resize effect; The focused window is scaled appropriately, but the snapped window being resized by the script has to keep recalculating its layout.


    Reply to this

    -

     awesome

     
     by jospoortvliet on: Jun 27 2013
     
    Score 50%
    jospoortvlietjospoortvlie t
    KDE, openSUSE, ownCloud
    editor
    Home

    This is really awesome. I have a small behavioral suggestion which could make it a bit more intuitive, esp when you do NOT want a window to follow resizing: only resize both windows in the area where they touch each other. Say that one window is full-height of the screen and the other half-height, then resizing the full-height one in the area where the other is not, should leave the other alone, un-snapping them.

    This is what I intuitively expected when I tried to 'unsnap' the windows. It is easier than having to move one of the windows to unsnap.

    Not sure how hard this is, though, and in any case - great script :D


    Reply to this

    -

     Re: awesome

     
     by Flupp on: Jul 6 2013
     
    Score 50%

    Unfortunately, as far as I know, it is not possible to get the mouse position with a KWin script. But I also think the behavior would be rather unintuitive if there are two small windows snapped to the same edge of a large window.


    Reply to this

    -

     Ignore overlapped window maybe?

     
     by csslayer on: Oct 31 2013
     
    Score 50%

    I found this script seems also resize window that are overlapped, for example

    --------
    | | |
    | |----
    | |
    -------

    Resize the upper edge will resize both window, I can't think of a useful case for this.


    Reply to this

    -

     maximization state problem

     
     by jhnnslschnr on: Jun 2 2014
     
    Score 50%

    I find this script pretty useful, but i would like an option for deciding whether windows should be sticky on borders that are not between the windows.
    However this behaviour causes a small bug regarding the maximization state: in case i have two quick tiled windows and shrink one from the bottom, the other one follows, but is still marked as vertically maximized, so i have to middle click the maximize button twice to remaximize it vertically.


    Reply to this

    goto page: prev   1  2 

    Add commentBack






    -

    -
    Do you like or dislike Ubuntu Unity?
     Yes, unity is alien technology!
     It is less confusing than Gnome 3 default, shell.
     Granny thinks it is much more usable than Gnome 2
     Canonical is embarrasing itself with this split project
     Gnome 3 default shell is much better
     I dislike Unity, Gnome 3 default shell is alien technology!
     None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

    resultmore




     
     
     Who we are
    Contact
    More about us
    Frequently Asked Questions
    Register
    Twitter
    Blog
    Explore
    Artwork
    Jobs
    Knowledge
    Events
    People
    Updates on identi.ca
    Updates on Twitter
    Facebook App
    Content RSS   
    News RSS   
    Discussion RSS   
    Events RSS   

    Participate
    Groups
    Forum
    Add Artwork
    Public API
    About KDE-Look.org
    Legal Notice
    Spreadshirt Shop
    CafePress Shop
    Advertising
    Sponsor us
    Report Abuse
     

    Copyright 2001-2014 KDE-Look.org Team  
    All rights reserved. KDE-Look.org is not liable for any content or goods on this site.
    All contributors are responsible for the lawfulness of their uploads.
    KDE and K Desktop Environment are trademarks of KDE e.V.