]> git.decadent.org.uk Git - ion3.git/blob - etc/cfg_kludges.lua
[svn-upgrade] Integrating new upstream version, ion3 (20070318)
[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 defwinprop{
21     class = "Xpdf",
22     instance = "openDialog_popup",
23     ignore_cfgrq = true,
24 }
25
26
27 -- You might want to enable these if you really must use XMMS. 
28 --[[
29 defwinprop{
30     class = "xmms",
31     instance = "XMMS_Playlist",
32     transient_mode = "off"
33 }
34
35 defwinprop{
36     class = "xmms",
37     instance = "XMMS_Player",
38     transient_mode = "off"
39 }
40 --]]
41
42
43
44 -- Define some additional title shortening rules to use when the full
45 -- title doesn't fit in the available space. The first-defined matching 
46 -- rule that succeeds in making the title short enough is used.
47 ioncore.defshortening("(.*) - Mozilla(<[0-9]+>)", "$1$2$|$1$<...$2")
48 ioncore.defshortening("(.*) - Mozilla", "$1$|$1$<...")
49 ioncore.defshortening("XMMS - (.*)", "$1$|...$>$1")
50 ioncore.defshortening("[^:]+: (.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
51 ioncore.defshortening("[^:]+: (.*)", "$1$|$1$<...")
52 ioncore.defshortening("(.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
53 ioncore.defshortening("(.*)", "$1$|$1$<...")