]> git.decadent.org.uk Git - ion3.git/blob - etc/cfg_kludges.lua
[svn-upgrade] Integrating new upstream version, ion3 (20070506)
[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
13 defwinprop{
14     class = "Xpdf",
15     instance = "openDialog_popup",
16     ignore_cfgrq = true,
17 }
18
19
20 -- Put all dockapps in the statusbar's systray, also adding the missing
21 -- size hints necessary for this to work.
22 defwinprop{
23     is_dockapp = true,
24     statusbar = "systray",
25     max_size = { w = 64, h = 64},
26     min_size = { w = 64, h = 64},
27 }
28
29
30 -- You might want to enable these if you really must use XMMS. 
31 --[[
32 defwinprop{
33     class = "xmms",
34     instance = "XMMS_Playlist",
35     transient_mode = "off"
36 }
37
38 defwinprop{
39     class = "xmms",
40     instance = "XMMS_Player",
41     transient_mode = "off"
42 }
43 --]]
44
45
46
47 -- Define some additional title shortening rules to use when the full
48 -- title doesn't fit in the available space. The first-defined matching 
49 -- rule that succeeds in making the title short enough is used.
50 ioncore.defshortening("(.*) - Mozilla(<[0-9]+>)", "$1$2$|$1$<...$2")
51 ioncore.defshortening("(.*) - Mozilla", "$1$|$1$<...")
52 ioncore.defshortening("XMMS - (.*)", "$1$|...$>$1")
53 ioncore.defshortening("[^:]+: (.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
54 ioncore.defshortening("[^:]+: (.*)", "$1$|$1$<...")
55 ioncore.defshortening("(.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
56 ioncore.defshortening("(.*)", "$1$|$1$<...")