You could grab the mouse XY coordinates as shown in issue 1249, then 
compare that to xrandr output which gives the coordinate box for each 
display. Not sure what the best way to do that last part in qtile is though.

Alternatively, if you use `follow_mouse_focus`, then `current_screen` would 
always be at the correct location (except if the screen does not have any 
windows on it, in which case it requires clicking the blank window, see issue 
2098 <https://github.com/qtile/qtile/issues/2098> for more details on that).

On Friday, September 24, 2021 at 6:17:54 AM UTC-6 Johnystar wrote:

> I'm used to switching workspaces/groups per screen by holding down Super 
> and scrolling up and down. On Awesome (the WM I'm switching from), this 
> would start switching workspace on the screen that my cursor is currently 
> on.
> How would I implement this in QTile? Is there a way to find out where the 
> cursor is?
> The best thing I could find was https://github.com/qtile/qtile/issues/1249 
> , but that didn't really seem to help me.
>
> Kind regards

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/9c278c44-a055-44aa-833d-7bb8713c788cn%40googlegroups.com.

Reply via email to