better multihead pt II
This commit is contained in:
parent
7882fe6841
commit
2e186237ee
8 changed files with 240 additions and 111 deletions
140
flake.lock
generated
140
flake.lock
generated
|
@ -195,6 +195,42 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils_5": {
|
||||
"inputs": {
|
||||
"systems": "systems_5"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1701680307,
|
||||
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils_6": {
|
||||
"inputs": {
|
||||
"systems": "systems_6"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1681202837,
|
||||
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"gitignore": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -523,6 +559,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1681358109,
|
||||
"narHash": "sha256-eKyxW4OohHQx9Urxi7TQlFBTDWII+F+x2hklDOQPB50=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "96ba1c52e54e74c3197f4d43026b3f3d92e83ff9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nur": {
|
||||
"locked": {
|
||||
"lastModified": 1705031957,
|
||||
|
@ -649,7 +701,8 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable_2",
|
||||
"nur": "nur",
|
||||
"qtile": "qtile",
|
||||
"rust-overlay": "rust-overlay_2"
|
||||
"rust-overlay": "rust-overlay_2",
|
||||
"swayosd": "swayosd"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
|
@ -700,6 +753,61 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"rust-overlay_3": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_6",
|
||||
"nixpkgs": "nixpkgs_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1705025860,
|
||||
"narHash": "sha256-9vcqo5CJLOHU63S7pVlP0u4OhgJxrXebQR4vqMPXLRg=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "d458975da373a37422577886566fce8201bc1254",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"swayosd": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_5",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"rust-overlay": "rust-overlay_3",
|
||||
"swayosd-src": "swayosd-src"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1,
|
||||
"narHash": "sha256-2A4xxc3t3TS7NGYJWS9tXHPlBI0MXAmYPIAgMHDNIJ4=",
|
||||
"path": "flakes/swayosd",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"path": "flakes/swayosd",
|
||||
"type": "path"
|
||||
}
|
||||
},
|
||||
"swayosd-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1702248404,
|
||||
"narHash": "sha256-3NJHZv4Ed7haUUmE9JV9Yl4rRnJlPqQFv53Xuw0q+IY=",
|
||||
"owner": "ErikReider",
|
||||
"repo": "SwayOSD",
|
||||
"rev": "a0709bcd89d6ca19889486972bac35e69f1fa8e4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "ErikReider",
|
||||
"repo": "SwayOSD",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
|
@ -759,6 +867,36 @@
|
|||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems_5": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems_6": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
|
@ -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
|
||||
];
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"}";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue