Fandom

Sawfish

Wid

773pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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

Synopsis Edit

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

Description Edit

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

Installation Edit

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

Configuration Edit

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")))))

Also on Fandom

Random Wiki