rndm_luser /.ion3/cfg_kludges.lua

--
-- Options to get some programs work more nicely (or at all)
--

defwinprop{class="xbiff",instance="xbiff",target="*dock*"}
defwinprop{instance="xbiff",target="*dock*"}
defwinprop{class="xbiff",target="*dock*"}

defwinprop{class="xclock",instance="xclock",target="*dock*"}
defwinprop{instance="xclock",target="*dock*"}
defwinprop{class="xclock",target="*dock*"}

defwinprop{class="xload",instance="xload",target="*dock*"}
defwinprop{instance="xload",target="*dock*"}
defwinprop{class="xload",target="*dock*"}

defwinprop{class="xnetload",instance="xnetload",target="*dock*"}
defwinprop{instance="xnetload",target="*dock*"}
defwinprop{class="xnetload",target="*dock*"}

defwinprop{class="xeyes",instance="xeyes",target="*dock*"}
defwinprop{instance="xeyes",target="*dock*"}
defwinprop{class="xeyes",target="*dock*"}

--defwinprop{class="XTerm", instance="dock",target="*dock*",max_size={w=64,h=64}}

defwinprop{
    class = "AcroRead",
    instance = "documentShell",
    acrobatic = true
}


defwinprop{
    class = "Xpdf",
    instance = "openDialog_popup",
    ignore_cfgrq = true,
}


-- Put all dockapps in the statusbar's systray, also adding the missing
-- size hints necessary for this to work.
defwinprop{
    is_dockapp = true,
    statusbar = "systray",
    max_size = { w = 64, h = 64},
    min_size = { w = 64, h = 64},
}


-- You might want to enable these if you really must use XMMS. 
defwinprop{
    class = "xmms",
    instance = "XMMS_Playlist",
    transient_mode = "off"
}

defwinprop{
    class = "xmms",
    instance = "XMMS_Player",
    transient_mode = "off"
}


-- Define some additional title shortening rules to use when the full
-- title doesn't fit in the available space. The first-defined matching 
-- rule that succeeds in making the title short enough is used.
ioncore.defshortening("(.*) - Mozilla(<[0-9]+>)", "$1$2$|$1$<...$2")
ioncore.defshortening("(.*) - Mozilla", "$1$|$1$<...")
ioncore.defshortening("XMMS - (.*)", "$1$|...$>$1")
ioncore.defshortening("[^:]+: (.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
ioncore.defshortening("[^:]+: (.*)", "$1$|$1$<...")
ioncore.defshortening("(.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
ioncore.defshortening("(.*)", "$1$|$1$<...")