hyprland is awesome, but I need to put in a lot of work to get a useable laptop session

This commit is contained in:
William 2025-03-19 12:47:14 -03:00
parent 4709a389dd
commit 5ac3c1cc13
3 changed files with 34 additions and 35 deletions

View file

@ -143,6 +143,38 @@
};
};
systemd.user.services.ulauncher = {
Unit = {
"Description" = "Ulauncher Application Launcher";
"PartOf" = [ "graphical-session.target" ];
};
Install.WantedBy = [ "graphical-session.target" ];
Service = {
Type = "simple";
Environment =
let
pydeps = pkgs.python3.withPackages (
pp: with pp; [
# https://github.com/tchar/ulauncher-albert-calculate-anything
parsedatetime
pint
pytz
requests
simpleeval
]
);
in
[
"PYTHONPATH=${pydeps}/${pydeps.sitePackages}"
];
ExecStart = pkgs.writeShellScript "ulauncher-env-wrapper.sh" ''
export PATH="''${XDG_BIN_HOME}:$HOME/.nix-profile/bin:/etc/profiles/per-user/$USER/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin"
export GDK_BACKEND=wayland
exec ${pkgs.ulauncher}/bin/ulauncher --hide-window
'';
};
};
})
];
}