qtile float centring and tweaks

This commit is contained in:
atagen 2023-10-19 14:29:33 +11:00
parent 79c9f90e53
commit 6cff59b7ef
16 changed files with 776 additions and 164 deletions

View file

@ -14,10 +14,15 @@
inputs.nixpkgs.follows = "nixpkgs";
};
scenefx = {
url = "path:scenefx";
smartfloat = {
url = "path:smartfloat";
inputs.nixpkgs.follows = "nixpkgs";
};
# scenefx = {
# url = "path:scenefx";
# inputs.nixpkgs.follows = "nixpkgs";
# };
};
outputs = inputs @ {
@ -35,9 +40,9 @@
pkgs,
system,
...
}: {
packages.qtile = with pkgs;
with pkgs.python3Packages;
}: rec {
packages.qtile-unwrapped = with pkgs;
with python3Packages;
buildPythonPackage rec {
pname = "qtile";
version = "unstable-${inputs.qtile-src.lastModifiedDate}";
@ -55,6 +60,8 @@
substituteInPlace libqtile/backend/wayland/cffi/build.py \
--replace /usr/include/pixman-1 ${lib.getDev pkgs.pixman}/include \
--replace /usr/include/libdrm ${lib.getDev pkgs.libdrm}/include/libdrm
cp ${inputs'.smartfloat.packages.default} libqtile/layout/smartfloat.py
echo from libqtile.layout.smartfloat import SmartFloat >> libqtile/layout/__init__.py
'';
nativeBuildInputs = [
pkg-config
@ -82,7 +89,7 @@
libdrm
wayland
xorg.xcbutilwm
inputs'.scenefx.packages.default
# inputs'.scenefx.packages.default
(wlroots.overrideAttrs (wf: wp: {
postPatch =
wp.postPatch
@ -97,6 +104,13 @@
];
doCheck = false;
};
packages.qtile = with pkgs;
with python3Packages;
(python3.withPackages (_: [packages.qtile-unwrapped])).overrideAttrs (_: {
inherit (packages.qtile-unwrapped) pname version meta;
name = with packages.qtile-unwrapped; "${pname}-${version}";
passthru.unwrapped = packages.qtile-unwrapped;
});
};
};
}