qtile-desktop: unset floating for every new window

This commit is contained in:
steveej 2021-04-29 16:45:45 +02:00
parent f0b21eb828
commit 2b6aff8f5e

View file

@ -141,7 +141,7 @@ key_alt = "mod1"
key_control = "control"
keys = [
# https://github.com/qtile/qtile/blob/develop/libqtile/xkeysyms.py
# https://github.com/qtile/qtile/blob/master/libqtile/xkeysyms.py
Key([key_super], "Return", lazy.spawn("${terminalCommand}")),
Key([key_super], "backslash", lazy.spawn("${terminalCommand}")),
Key([key_super], "apostrophe", lazy.spawn("${terminalCommand}")),
@ -158,6 +158,9 @@ keys = [
# Toggle between different layouts as defined below
Key([key_super], "Tab", lazy.next_layout()),
# this is usefull when floating windows get buried
Key([key_super], "Escape", lazy.window.bring_to_front()),
# MonadTall keybindings
Key([key_super], "h", lazy.layout.left()),
Key([key_super], "l", lazy.layout.right()),
@ -279,7 +282,11 @@ mouse = [
Drag([key_super,key_control], "Button2", lazy.window.set_size_floating(), start=lazy.window.get_size()),
Click([key_super,key_control], "Button3", lazy.window.disable_floating())
]
floating_layout = layout.Floating()
# disable any floating
@hook.subscribe.client_new
def disable_floating_for_all_new_windows(window):
window.floating = False
wmname = "LG3D"
'';