aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-05-10 19:46:13 +0200
committerDavid Runge <dave@sleepmap.de>2016-05-10 19:46:13 +0200
commit66b9a5a267495cd456f91daf95d5b281d9d6965a (patch)
tree85c59a0bd7c4cffe20d0e10a4f9c1346c6bf2832
parent550ed5db4d4d58b5f3ef355000f9ab90e0fd0c6f (diff)
downloaddotfiles-66b9a5a267495cd456f91daf95d5b281d9d6965a.tar.gz
dotfiles-66b9a5a267495cd456f91daf95d5b281d9d6965a.tar.bz2
dotfiles-66b9a5a267495cd456f91daf95d5b281d9d6965a.tar.xz
dotfiles-66b9a5a267495cd456f91daf95d5b281d9d6965a.zip
.config/qtile/config.py: Activating cursor warping. Introducing hook function on 'client_new' for making certain windows float, so they won't be ugly.
-rw-r--r--.config/qtile/config.py17
1 files changed, 16 insertions, 1 deletions
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
+