Make popup window open at configurable location
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Diodon |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Love the app. No bug to report. Just a script that I find useful to get diodon to appear in a predictable location.
Currently the default behaviour of diodon is that the popup window appears at the location of the mouse pointer.
I would prefer to have an option for it to appear at a predictable location independent of where the mouse is, such as the top left corner of the active window.
I wrote the following script as a work-around to have the popup appear at the top left of the active window:
-------
#!/bin/bash
# sends the diodon window to the top left corner of the active window.
unset x y
eval $(
xwininfo -id $(xdotool getactivewindow) |
sed -n -e "s/^ \+Absolute upper-left X: \+\([0-
-e "s/^ \+Absolute upper-left Y: \+\([0-
)
swarp $x $y
diodon
-------
swarp is a utility from the suckless-tools package in debian.
Thanks Ben also for the neat workaround. I think this could be a nice addition. The popup code needs to be rewritten anyway as it is currently using a function which got deprecated.
Any patches are very well come.