Sawfish
Scripts quick access edit this

Synopsis[]

Functions that allow you to test and work with window classes.

Description[]

This scripts defines the following functions that allow you to test and work with window classes.

  • wclass-window-class (w): Get the WM class of window w. The class of the the input-focus window will be returned if w isn't supplied.
  • wclass-window-class-p (w class1 class2): Is window w of a given class?
  • wclass-find-windows-of-class (class1 class2): Find windows matching the given class.
  • wclass-find-first-window-of-class (class1 class2): Find first window of given class.

Installation[]

  1. Save wclass.jl in your load-path.
  2. Add the following line to your ~/.sawfishrc:
    (require 'wclass)