Skip to main content
8 events
when toggle format what by license comment
Jan 6, 2020 at 21:00 comment added Cestarian @pizdelect so there are no existing utilities that can utilize this? How about if I were to just create a small python script or something like that to get the needed info about the cursor state?
Jan 6, 2020 at 20:00 comment added user313992 @Cestarian the xfixes x11 extensions has support for "cursor image monitoring" but I don't think that it's supported in any way by xdotool, so if you want to use it from the shell you're out of luck I'm afraid.
Jan 6, 2020 at 19:24 comment added Cestarian @StéphaneChazelas sure there is, otherwise how would we have so much variation in cursor sets? If you hover your cursor over text it usually changes to an I shape, how would it do that without various states? Of course I'm not saying you're wrong that you'd have to query the focused application, maybe that is the only way (and if you can give me a satisfactory answer proving it I could end up accepting it too), I don't know (if I did I wouldn't be asking) but surely there has to be another way right? Like querying X11 for example?
Jan 6, 2020 at 18:31 comment added Stéphane Chazelas @Cestarian, there's no such thing as "a cursor state", or if there's one it is one in the application whose visible window the cursor is positioned in so you'd have to query that application.
Jan 6, 2020 at 17:19 comment added Cestarian Hey man, I'm sorry but this isn't what I was asking. I was asking about a way to get the cursor state, not location (e.g. if it's hovering over a link or text or neutral). There's also a ebtter way to use this in a script, if you use eval $(xdotool getmouselocation --shell) it will set $Y and $X as the current coordinates of the mouse which you can use in whatever variables you wish.
Jan 6, 2020 at 11:18 comment added Stéphane Chazelas See also the xmouspos package from xautomation
Jan 6, 2020 at 10:25 review First posts
Jan 6, 2020 at 10:29
Jan 6, 2020 at 10:20 history answered Akhil Pathania CC BY-SA 4.0