diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/qtile/hooks.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/qtile/hooks.py b/.config/qtile/hooks.py index 295c265..98308ae 100644 --- a/.config/qtile/hooks.py +++ b/.config/qtile/hooks.py @@ -80,3 +80,14 @@ def repos(window): if window.get_wm_class() and 'mpv' in window.get_wm_class(): window.floating = True window.place(1200, 650, 640, 360, 2, "#ffffff") + +# If 'libreoffice' opens toggle floating off + + +@hook.subscribe.client_new +def libreoffice(window): + wm_class = window.get_wm_class() + if wm_class is None: + wm_class = [] + if [x for x in wm_class if x.startswith("libreoffice")]: + window.disable_floating() |