Released version 3-2015061300
[notion.git] / etc / cfg_kludges.lua
blob3b79edb6393772498fe7b93d4b9381eb667fc5f4
1 --
2 -- Options to get some programs work more nicely (or at all)
3 --
5 defwinprop {
6 class = "AcroRead",
7 instance = "documentShell",
8 acrobatic = true,
11 defwinprop {
12 class = "Xpdf",
13 instance = "openDialog_popup",
14 ignore_cfgrq = true,
17 -- Better would be to apply these settings automatically whenever a window
18 -- has type _NET_WM_WINDOW_TYPE_NOTIFICATION.
19 defwinprop {
20 class = "Xfce4-notifyd",
21 float = true,
22 userpos = true,
23 switchto = false,
26 -- Put all dockapps in the statusbar's systray, also adding the missing size
27 -- hints necessary for this to work.
28 defwinprop {
29 is_dockapp = true,
30 statusbar = "systray",
31 max_size = { w = 64, h = 64},
32 min_size = { w = 64, h = 64},
35 -- Make an exception for Docker, which sets correct size hints.
36 defwinprop {
37 is_dockapp = true,
38 class = "Docker",
39 statusbar = "systray",
42 -- https://sourceforge.net/tracker/?func=detail&aid=3471910&group_id=314802&atid=1324528
43 defwinprop {
44 class = "Gimp",
45 acrobatic = true,
48 -- You might want to enable these if you really must use XMMS.
49 --[[
50 defwinprop {
51 class = "xmms",
52 instance = "XMMS_Playlist",
53 transient_mode = "off",
56 defwinprop {
57 class = "xmms",
58 instance = "XMMS_Player",
59 transient_mode = "off",
61 --]]
63 -- InteiilJ IDEA - I wonder whether we should do this for *all*
64 -- sun-awt-X11-XWindowPeer windows.
65 defwinprop {
66 class = "jetbrains-idea-ce",
67 instance = "sun-awt-X11-XWindowPeer",
68 transient_mode = "current",
70 defwinprop {
71 class = "jetbrains-idea-ce",
72 instance = "sun-awt-X11-XDialogPeer",
73 transient_mode = "current",
75 defwinprop {
76 class = "jetbrains-idea",
77 instance = "sun-awt-X11-XWindowPeer",
78 transient_mode = "current",
80 defwinprop {
81 class = "jetbrains-idea",
82 instance = "sun-awt-X11-XDialogPeer",
83 transient_mode = "current",
86 -- Define some additional title shortening rules to use when the full title
87 -- doesn't fit in the available space. The first-defined matching rule that
88 -- succeeds in making the title short enough is used.
89 ioncore.defshortening("(.*) - Mozilla(<[0-9]+>)", "$1$2$|$1$<...$2")
90 ioncore.defshortening("(.*) - Mozilla", "$1$|$1$<...")
91 ioncore.defshortening("XMMS - (.*)", "$1$|...$>$1")
92 ioncore.defshortening("[^:]+: (.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
93 ioncore.defshortening("[^:]+: (.*)", "$1$|$1$<...")
94 ioncore.defshortening("(.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
95 ioncore.defshortening("(.*)", "$1$|$1$<...")