sx-moveresize
sx-moveresize is a plugin that adds the actions ‘moveresize.move’ and ‘moveresize.resize’
which move and resize the current or specified window respectivly.
Configuration
-
moveresize.border-move
- Boolean value that when True shows a rectangle preview of the moved/resized
window instead of moving/resizing the window directly
-
moveresize.hide-win
- Boolean value that when True will hide the window that is being moved/resized.
Most usefull when moveresize.border-move is True.
Actions
-
moveresize.move()
Start moving a client.
| Parameters: |
- screen
required
- client
the client to move
(optional, defaults to the currently focused client)
- x, y
the coordinates of the event that emitted the action (optional)
|
-
moveresize.resize()
Start resizing a client
| Parameters: |
- screen
required
- client
the client to resize
(optional, defaults to the currently focused client)
- x, y
the coordinates of the event that emitted the action (optional)
|
-
class sxmoveresize.ClientHandler(client, x, y, cursor=None, border_move=True, hide_win=True)
-
on_button_release(evt)
-
on_motion_notify(evt)
-
class sxmoveresize.MoveHandler(client, x, y, cursor=None, **kwargs)
-
clear_preview()
- clear old preview if necessary
-
on_button_release(evt)
-
on_motion_notify(evt)
-
class sxmoveresize.ResizeHandler(client, x, y, **kwargs)
-
clear_preview()
- clear old preview if necessary
-
on_button_release(evt)
-
on_motion_notify(evt)
-
class sxmoveresize.SXMoveResize(app)
-
action_move(info)
-
action_resize(info)
-
on_load_config(config)