Viewport save pointer & focus

773pages on
this wiki
Add New Page
Add New Page Talk0
Scripts quick access edit this

Synopsis Edit

Each viewport remembers, after switching the viewport, its previously focused window and pointer position, and restores them when the viewport is changed.

Description Edit

If you switch viewports with keyboard, then this is for you.

Workspace is not supported.

An exception is sticky window; if it is focused before switching the viewport, then it keeps focus after switch, too. This enables to 'carry' windows over viewports.

Installation Edit

Save the file in ~/.sawfish/lisp/sawfish/wm/ext/vpf.jl, and in ~/.sawfishrc, put

(require 'sawfish.wm.ext.vpf).

Then assign keys to change viewport commands. I use Shift + arrow keys. Available commands are vpf-right, vpf-left, vpf-up and vpf-down.

That's all!

Configuration Edit

Also on Fandom

Random Wiki