I wanted to create a hook so that whenever I float a window, it brings it
to the center of the screen. How would I go about accomplishing this? This
is what I came up with and this doesn't work.
@hook.subscribe.float_change
def center_window():
current_window = InteractiveCommandClient().window
if current_window.info()['floating']:
current_window.set_position_floating(288, 200)
current_window.set_size_floating(600, 600)
Any directions would be immense. Thanks!
--
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/6982582f-6266-4c00-81a3-92b92a474798n%40googlegroups.com.