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