Clicksnap - snap windows by Ctrl + Shift + click

Script renamed to snapwin, bindings changed to Ctrl + Shift + LeftClick, now can be also invoked by keyboard only.

Last evenings I wrote small script which let snap windows by Ctrl + Shift + Click.
See how it works…

This script is already shipped with mabox-tools package so you can try it for yourself.
Add this mousebind action to context Frame in ~/.config/openbox/rc.xml:

  <mousebind action="Press" button="C-S-Left">
    <action name="Execute">

or update your rc.xml by command:
You may loose your own customization - if any.

mb-reset obrcxml
openbox --reconfigure

Project on github: ( script renamed and is part of upcoming DeskGrid now - this repo will be archived soon)

What do you think? Any feedback welcome :slight_smile:


Glad to see you fixed the overriding of browser tabs. :slight_smile:

1 Like

In my case, it works by clicking on the window’s border, not inside the window.

Hi @Rhuks,
The whole thing changed a little… and is now included in Mabox with latest updates.
If you want to use it, you have to update rc.xml by yourself.
Two options:

mb-reset -c obrcxml

then you have oportunity to see what changed and pick changes one-by-one.
After saving changes run openbox --reconfigure

… or

mb-reset obrcxml

(this will backup your current rc.xml and update it completly with new default one)

After that use:
C-S-LeftMouseButton to place windows by mouse (on the grid)
or C-S - Keypad Number 1 to 9.

Thanks for your prompt answer. I’ve followed your instructions and now it works like a charm.