But when invoking xmenu using xmenu -p 0x0 it shows at position 0,0 (top-left) of the monitor. If I'm not wrong here, following the documentation of XParseGeometry, we should be invoking xmenu -p '+0+0' instead for the same behavior. This causes some ambiguity in positioning the menus.
On the same note, using xmenu -p '-0-0' should theoretically place it at the bottom right of the monitor which would be a good use-case to considering the user is left to do xrandr math in shell.
I'm sure that there are other users who would want to do the same.
personal note:
I ran into this weirdness when I was creating a power menu using xmenu.
According to the xmenu documentation,
XParseGeometry
is used for parsing the (first part of)-p
option.The
XParseGeometry
documentation says the format should be:[=][<width>{xX}<height>][{+-}<xoffset>{+-}<yoffset>]
But when invoking xmenu using
xmenu -p 0x0
it shows at position 0,0 (top-left) of the monitor. If I'm not wrong here, following the documentation ofXParseGeometry
, we should be invokingxmenu -p '+0+0'
instead for the same behavior. This causes some ambiguity in positioning the menus.On the same note, using
xmenu -p '-0-0'
should theoretically place it at the bottom right of the monitor which would be a good use-case to considering the user is left to do xrandr math in shell.I'm sure that there are other users who would want to do the same.
personal note:
I ran into this weirdness when I was creating a power menu using xmenu.
whenever I added a new item to the menu I have to adjust the y-position using awk as the height of the menu changes.
I hope you see that this is a bit awkward to work with.