I use zenity to post a simple notification when my spam filter daemon filters a group of messages. This message is currently being sent to the middle of the screen, which is intrusive. I want to send it to the upper left corner. However, zenity does not comply with the -geometry option, which should be standard for all X applications, and its documentation provides options for controlling the height and width of the window, but not for placement.
Is there any way to control the coordinate (x, y) at which the zenity window is posted?
If not, is there a way to solve this problem by using X resources or the window manager (I use fvwm )?
EDIT . In ~/.fvwm2rc ( fvwm version 2.5.26) do not work:
Style "Information" PositionPlacement -0 -0 Style "Zenity" PositionPlacement -0 -0
They also do not work with garbage -0 -0 , as shown on the manual page. (The window name for zenity --info is “Information.”)
Interestingly, zenity ignored my previous window manager directive, that by default windows must be manually placed.
EDIT
Among many other fascinating pieces of information, xprop(1) reports this in the zenity window:
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DIALOG WM_NORMAL_HINTS(WM_SIZE_HINTS): program specified location: 0, 0 program specified minimum size: 307 by 128 program specified maximum size: 307 by 128 window gravity: NorthWest WM_CLASS(STRING) = "zenity", "Zenity" WM_ICON_NAME(STRING) = "Information" WM_NAME(STRING) = "Information"
Despite this, apparently an encouraging report, the window was not actually placed at 0.0: - (
I know that the Style command takes effect because I added the !Borders parameter, and of course the zenity window will fit without borders ... but still in the center of the damned screen!