qtile: Move the unity domain reload window to the bottom right corner, less annoying

This commit is contained in:
Joseph Ferano 2024-10-07 18:55:17 +07:00
parent 07f12bb78e
commit fc0e258887

View File

@ -76,6 +76,13 @@ def toggle_language(qtile):
def get_current_window_info(qtile):
logger.warning(qtile.current_window.info())
@hook.subscribe.client_new
def new_client(client):
if "Unity" in client.get_wm_class() and "Unity" == client.name:
padding = 10
x = client.group.screen.width - client.width - padding
y = client.group.screen.height - client.height - padding - 22
client.set_position_floating(x,y)
keys = [
# A list of available commands that can be bound to keys can be found