Devilspie

From wikinotes

A daemon that matches window titles, and performs actions on them when they are opened.
Like udev but for windows.

Locations

~/.devilspie config

Install

sudo pacman -S devilspie

Syntax

# Comments
;; this is a comment

# If Statement
if ((is (application_name) "firefox") {
    (begin 
        ;; code here
    )
} else {
    (begin
        ;; code here
    )
}


# Logical Operators
(if (is (application_name) "firefox")
    ( and (matches "firefox" "[0-9]+") )
    ( or  (matches "firefox" "[a-Z]+") )
    ( and (not (matches "firefox" "aaa")) )
) { ;;code }