Make popup window open at configurable location

Bug #1855101 reported by Ben
6
This bug affects 1 person
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-9]\+\).*/x=\1/p" \
               -e "s/^ \+Absolute upper-left Y: \+\([0-9]\+\).*/y=\1/p" \
)
swarp $x $y
diodon
---------------------------------------------------

swarp is a utility from the suckless-tools package in debian.

Revision history for this message
Oliver Sauder (sao) wrote :

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.

summary: - Wrapper script to make diodon appear in a predictable place.
+ Make popup window open at configurable location
Changed in diodon:
status: New → Confirmed
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.