Kludge IntelliJ IDEA splash popup to be transient
[notion.git] / etc / cfg_kludges.lua
blobf7c9be09e4fb1476e9d3db3a8b6a69bb1139de69
1 --
2 -- Options to get some programs work more nicely (or at all)
3 --
6 defwinprop{
7 class = "AcroRead",
8 instance = "documentShell",
9 acrobatic = true
13 defwinprop{
14 class = "Xpdf",
15 instance = "openDialog_popup",
16 ignore_cfgrq = true,
19 -- Better would be to apply these settings automatically whenever a window
20 -- has type _NET_WM_WINDOW_TYPE_NOTIFICATION
21 defwinprop{
22 class = "Xfce4-notifyd",
24 float = true,
25 userpos = true,
26 switchto = false,
29 -- Put all dockapps in the statusbar's systray, also adding the missing
30 -- size hints necessary for this to work.
31 defwinprop{
32 is_dockapp = true,
33 statusbar = "systray",
34 max_size = { w = 64, h = 64},
35 min_size = { w = 64, h = 64},
38 -- Make an exception for Docker, which sets correct size hints.
39 defwinprop{
40 is_dockapp = true,
41 class = "Docker",
42 statusbar = "systray",
45 -- https://sourceforge.net/tracker/?func=detail&aid=3471910&group_id=314802&atid=1324528
46 defwinprop{
47 class = "Gimp",
48 acrobatic = true,
51 -- You might want to enable these if you really must use XMMS.
52 --[[
53 defwinprop{
54 class = "xmms",
55 instance = "XMMS_Playlist",
56 transient_mode = "off"
59 defwinprop{
60 class = "xmms",
61 instance = "XMMS_Player",
62 transient_mode = "off"
64 --]]
66 -- InteiilJ IDEA - I wonder whether we should do this for *all* sun-awt-X11-XWindowPeer windows
67 defwinprop {
68 class = "jetbrains-idea-ce",
69 instance = "sun-awt-X11-XWindowPeer",
70 transient_mode = "current",
72 defwinprop {
73 class = "jetbrains-idea-ce",
74 instance = "sun-awt-X11-XDialogPeer",
75 transient_mode = "current",
77 defwinprop {
78 class = "jetbrains-idea",
79 instance = "sun-awt-X11-XWindowPeer",
80 transient_mode = "current",
82 defwinprop {
83 class = "jetbrains-idea",
84 instance = "sun-awt-X11-XDialogPeer",
85 transient_mode = "current",
89 -- Define some additional title shortening rules to use when the full
90 -- title doesn't fit in the available space. The first-defined matching
91 -- rule that succeeds in making the title short enough is used.
92 ioncore.defshortening("(.*) - Mozilla(<[0-9]+>)", "$1$2$|$1$<...$2")
93 ioncore.defshortening("(.*) - Mozilla", "$1$|$1$<...")
94 ioncore.defshortening("XMMS - (.*)", "$1$|...$>$1")
95 ioncore.defshortening("[^:]+: (.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
96 ioncore.defshortening("[^:]+: (.*)", "$1$|$1$<...")
97 ioncore.defshortening("(.*)(<[0-9]+>)", "$1$2$|$1$<...$2")
98 ioncore.defshortening("(.*)", "$1$|$1$<...")