]> git.decadent.org.uk Git - ion3.git/blob - etc/cfg_kludges.lua
[svn-inject] Installing original source of ion3
[ion3.git] / etc / cfg_kludges.lua
1 --
2 -- Options to get some programs work more nicely (or at all)
3 --
4
5
6 defwinprop{
7     class = "AcroRead",
8     instance = "documentShell",
9     acrobatic = true
10 }
11
12 -- Galeon's find dialog does not always have its transient_for hint 
13 -- set when the window is being mapped.
14 defwinprop{
15     class = "galeon_browser",
16     instance = "dialog_find",
17     transient_mode = "current",
18 }
19
20 -- You might want to enable these if you really must use XMMS. 
21 --[[
22 defwinprop{
23     class = "xmms",
24     instance = "XMMS_Playlist",
25     transient_mode = "off"
26 }
27
28 defwinprop{
29     class = "xmms",
30     instance = "XMMS_Player",
31     transient_mode = "off"
32 }
33 --]]
34
35
36
37 -- Define some additional title shortening rules to use when the full
38 -- title doesn't fit in the available space. The first-defined matching 
39 -- rule that succeeds in making the title short enough is used.
40 ioncore.defshortening("(.*) - Mozilla(<[0-9]+>)", "$1$2$|$1$<...$2")
41 ioncore.defshortening("(.*) - Mozilla", "$1$|$1$<...")
42 ioncore.defshortening("XMMS - (.*)", "$1$|...$>$1")
43 ioncore.defshortening("[^:]+: (.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
44 ioncore.defshortening("[^:]+: (.*)", "$1$|$1$<...")
45 ioncore.defshortening("(.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
46 ioncore.defshortening("(.*)", "$1$|$1$<...")