Sawfish
Scripts quick access edit this
  • Author: Nikita Danilov <NikitaDanilov.Yahoo.COM>
  • License: GNU GPL 2 or later
  • Download: wid.jl

Synopsis[]

Assign to windows short ids and provide shortcuts to switch to them by one key-stroke.

Description[]

Assigns short ids (wids) to windows and provides shortcuts to switch to a particular window by one key-stroke.

Installation[]

  1. Save wid.jl to your load-path.
  2. Add the following lines to your ~/.sawfishrc:
    (load "wid")

Configuration[]

After installation window titles will be prefixed with strings of the form "<wid>| ". To switch to the window with id <wid>, press Hyper-<wid>.

By default, this module binds its shortcuts to the Hyper-prefixed keystrokes. If you want to use Hyper and Super modifiers on PC keyboard with Microsoft keys, add something like this to your ~/.xmodmap file:

! for pc-keyboard with `Windows' keys  
! left key with MSWindows logo  
keycode 115 = Hyper_L  
! right key with MSWindows logo  
keycode 116 = Hyper_R  
! local menu  
keycode 117 = Super_R

wid-widability-hook is used to select which windows should be decorated with wids. To skip Gnome panel, keyboard switcher etc. use something like this:

(add-hook 'wid-widability-hook 
          (lambda (win) 
            (and (not (equal (aref (get-x-text-property win 'WM_CLASS) 1) 
                             "Panel")) 
                 (not (equal (aref (get-x-text-property win 'WM_CLASS) 1) 
                             "Xrus")))))