qtile-desktop: unset floating for every new window
This commit is contained in:
parent
f0b21eb828
commit
2b6aff8f5e
1 changed files with 9 additions and 2 deletions
|
@ -141,7 +141,7 @@ key_alt = "mod1"
|
||||||
key_control = "control"
|
key_control = "control"
|
||||||
|
|
||||||
keys = [
|
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], "Return", lazy.spawn("${terminalCommand}")),
|
||||||
Key([key_super], "backslash", lazy.spawn("${terminalCommand}")),
|
Key([key_super], "backslash", lazy.spawn("${terminalCommand}")),
|
||||||
Key([key_super], "apostrophe", lazy.spawn("${terminalCommand}")),
|
Key([key_super], "apostrophe", lazy.spawn("${terminalCommand}")),
|
||||||
|
@ -158,6 +158,9 @@ keys = [
|
||||||
# Toggle between different layouts as defined below
|
# Toggle between different layouts as defined below
|
||||||
Key([key_super], "Tab", lazy.next_layout()),
|
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
|
# MonadTall keybindings
|
||||||
Key([key_super], "h", lazy.layout.left()),
|
Key([key_super], "h", lazy.layout.left()),
|
||||||
Key([key_super], "l", lazy.layout.right()),
|
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()),
|
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())
|
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"
|
wmname = "LG3D"
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue