rvp If you just want to centre the xterm window, why not just use the -geometry flag itself?
If you define it as floating, otherwise it will be tiled by default.
EDIT: Actually, this is exactly what quirks on spectrwm
are used for.
See for example this one from @pfr config,
program[feh] = feh -g 700x393 --scale-down
quirk[feh:feh] = FLOAT
Obviously, this depends on the WM as well.
I no longer use spectrwm
, moved to frankenwm
about a month ago. On frankenwm
this is defined in config.def.h
and must be edited and defined at compile time.
EDIT 2: I also use awesomewm
on another machine, in this case, floating clients are defined in rc.lua
, example
-- Floating clients.
{ rule_any = {
instance = {
"DTA", -- Firefox addon DownThemAll.
"copyq", -- Includes session name in class.
},
class = {
"Galculator",
"mpv"},
name = {
"Event Tester", -- xev.
},
role = {
"AlarmWindow", -- Thunderbird's calendar.
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
}
}, properties = { floating = true }},