You are not logged in.
I'm looking for the simplest way posible to find the absolute current mouse position for X in bash (or with a simple cli program, hopefully possible with plain X!).
If there is no KISS way to do this I'll make my own program, but that probably shouldn't be necessary. I'm just trying to make gmrun start at the mouse cursor position.
Last edited by Statix (2008-09-21 02:05:20)
Madly in love with Arch64, Openbox, DotA, and of course... penguins!
Happy to help if you're not a Help Vampire. Use your wonderful resources like ArchWiki, Google, and our wonderful search page.
Offline
Maybe you could do it with xev? It can give you mouse position info, but it may not be a good format for use in a script (for example, I'm not sure if you can do it without opening a new window for a short time).
Offline
I found this thread, could be useful to you?
Offline
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
Thanks all. Moljac's link was exactly what I was looking for.
Madly in love with Arch64, Openbox, DotA, and of course... penguins!
Happy to help if you're not a Help Vampire. Use your wonderful resources like ArchWiki, Google, and our wonderful search page.
Offline