steal tile all windows
This commit is contained in:
parent
7b80be6c1c
commit
0265daf7c8
|
@ -4,6 +4,7 @@ from libqtile.lazy import lazy
|
|||
import autostart
|
||||
import my_layouts
|
||||
import my_widgets
|
||||
import my_functions
|
||||
|
||||
|
||||
mod = "mod4"
|
||||
|
@ -63,6 +64,7 @@ keys = [
|
|||
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
|
||||
Key([mod], "f", lazy.window.toggle_fullscreen()),
|
||||
Key([mod], "t", lazy.window.toggle_floating()),
|
||||
Key([mod, "shift"], "t", my_functions.set_all_float_windows_to_non_floating_mode()),
|
||||
Key([mod], "w", lazy.window.kill(), desc="Kill focused window"),
|
||||
Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
|
||||
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
from libqtile.lazy import lazy
|
||||
|
||||
|
||||
@lazy.function
|
||||
def set_all_float_windows_to_non_floating_mode(qtile):
|
||||
for window in qtile.current_group.windows:
|
||||
if window.floating:
|
||||
window.cmd_disable_floating()
|
Loading…
Reference in New Issue