better multihead pt II

This commit is contained in:
atagen 2024-01-13 02:07:50 +11:00
parent 7882fe6841
commit 2e186237ee
8 changed files with 240 additions and 111 deletions

View file

@ -1 +0,0 @@
/nix/store/p58d2j0ac7zvja5jl14xzbc19fakjxh2-source

View file

@ -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

View file

@ -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"

View file

@ -26,8 +26,8 @@
pylsp-mypy
black
pydantic
coconut
python3Packages.qtile-extras
# coconut
# python3Packages.qtile-extras
python3Packages.qtile
];
};

View file

@ -16,7 +16,7 @@ in {
./programs/wlogout.nix
./programs/fuzzel.nix
./programs/qtile.nix
./programs/swayosd.nix
# ./programs/swayosd.nix
./programs/swaync.nix
./programs/firefox.nix
./programs/kitty.nix

View file

@ -1,12 +1,11 @@
{
config,
lib,
pkgs,
swayosd,
...
}:
{
config.ezServices = {
swayosd = "${lib.getExe' swayosd "swayosd-server" }";
}
config,
lib,
pkgs,
swayosd,
...
}: {
config.ezServices = {
swayosd = "${lib.getExe' swayosd "swayosd-server"}";
};
}