better multihead pt II
This commit is contained in:
parent
7882fe6841
commit
2e186237ee
8 changed files with 240 additions and 111 deletions
|
@ -1 +0,0 @@
|
|||
/nix/store/p58d2j0ac7zvja5jl14xzbc19fakjxh2-source
|
|
@ -1 +1 @@
|
|||
/nix/store/vayk34n0cv7ixciw4jvwkhg1jj1433l2-nix-shell-env
|
||||
/nix/store/c11mar1bsnkdiynb2x8nrp2i0661asww-nix-shell-env
|
File diff suppressed because one or more lines are too long
|
@ -101,15 +101,27 @@ keys = [
|
|||
Key([mod], "space", lazy.window.toggle_floating()),
|
||||
Key([mod, "shift"], "space", lazy.window.toggle_fullscreen()),
|
||||
Key([mod], "Tab", lazy.next_screen()),
|
||||
Key([mod, "shift"], "Tab", lazy.function(send_to_next_screen())),
|
||||
]
|
||||
|
||||
def send_to_next_screen() -> Callable:
|
||||
def _inner(qtile: Qtile) -> None:
|
||||
win = qtile.current_window
|
||||
win.toscreen(1 if qtile.current_screen == 0 else 0)
|
||||
if win is not None:
|
||||
screen_to_send = (qtile.current_screen.index+1)%2
|
||||
win.toscreen(screen_to_send)
|
||||
qtile.focus_screen(screen_to_send)
|
||||
if win.floating:
|
||||
win.bring_to_front()
|
||||
info = qtile.current_screen.info()
|
||||
width, height = ((info["width"] // 4) * 3, (info["height"] // 6) * 5)
|
||||
win.set_size_floating(width, height)
|
||||
win.center()
|
||||
return _inner
|
||||
|
||||
keys.append(
|
||||
Key([mod, "shift"], "Tab", lazy.function(send_to_next_screen()))
|
||||
)
|
||||
|
||||
groups = []
|
||||
land_groups = "123"
|
||||
port_groups = "456"
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
pylsp-mypy
|
||||
black
|
||||
pydantic
|
||||
coconut
|
||||
python3Packages.qtile-extras
|
||||
# coconut
|
||||
# python3Packages.qtile-extras
|
||||
python3Packages.qtile
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue