From 66b9a5a267495cd456f91daf95d5b281d9d6965a Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 10 May 2016 19:46:13 +0200 Subject: .config/qtile/config.py: Activating cursor warping. Introducing hook function on 'client_new' for making certain windows float, so they won't be ugly. --- .config/qtile/config.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.config/qtile/config.py b/.config/qtile/config.py index f0bf0fd..34d0921 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -289,7 +289,7 @@ dgroups_key_binder = None dgroups_app_rules = [] follow_mouse_focus = True bring_front_click = False -cursor_warp = False +cursor_warp = True floating_layout = layout.Floating() auto_fullscreen = True wmname = "LG3D" @@ -302,3 +302,18 @@ def main(qtile): @hook.subscribe.screen_change def restart_on_randr(qtile, ev): qtile.cmd_restart() + +@hook.subscribe.client_new +def floating_dialogs(window): + float_clients = [ + 'DialogWindow', + 'HelpBrowser', + ] + wm_class = window.window.get_wm_class() + for client in float_clients: + if client in wm_class: + window.floating = True + transient = window.window.get_wm_transient_for() + if transient: + window.floating = True + -- cgit v1.2.3-70-g09d2