Sawfish
Scripts quick access edit this
  • Author: Matthew Mueller <donut@dakotacom.dot.net>
  • License: Permission to use, modify and redistribute
  • Download: sawscreen

Synopsis[]

Shell script to switch input between screens without needing to use the mouse.

Description[]

Shell script to switch input between screens without needing to use the mouse. Uses sawfish-client to connect to the instance of sawfish running on the other screen and focus the last used window there.

Notes:

  1. If your other screen was on an empty workspace, it will be moved back to the workspace with the last used window on it.
  2. If there are no windows at all, it will launch an xterm in order that focus will move to it.
  3. It assumes you only have two screens. (Though changing to accept a command line arg of what screen to switch to would be trivial.)

Installation[]

Stick in your path, make it executable, then add a "run shell command" keybinding in sawfish to run it. It will switch your input and mouse pointer to the last used window on the other screen.