From fc0e2588878be24d75153bcad516fcc659f6d4cd Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Mon, 7 Oct 2024 18:55:17 +0700 Subject: [PATCH] qtile: Move the unity domain reload window to the bottom right corner, less annoying --- .config/qtile/config.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 50ba06d..3652002 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -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