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