fix(hyprland): avoid mismatching with plugins

This commit is contained in:
kenji
2026-07-06 07:57:36 -05:00
parent e3669e3a8a
commit 9a82cac7c5
2 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -8,7 +8,7 @@
# TODO: rewrite
wallpaperDir = "${config.home.homeDirectory}/.config/nixos/assets/Wallpapers";
defaultWallpaper = "${wallpaperDir}/${myConfig.hyprland.wallpaper}";
cacheWallpaper = "${config.home.homeDirectory}/.local/state/current_wallpaper";
cacheWallpaper = "${config.home.homeDirectory}/.cache/current_wallpaper";
switch-wallpaper = pkgs.writeShellScriptBin "hakase-wallpaper-switch" ''
if [[ "$1" != "run" ]]; then
@@ -70,6 +70,8 @@ in {
wayland.windowManager.hyprland.settings = {
exec-once = [
# "uwsm app -- hyprpaper"
"hyprctl hyprpaper preload ${cacheWallpaper}"
"hyprctl hyprpaper wallpaper ,${cacheWallpaper}"
"uwsm app -- matugen image ${cacheWallpaper} --source-color-index 0"
];
+4 -2
View File
@@ -1,12 +1,14 @@
{
inputs,
myConfig,
pkgs,
...
}: {
programs.hyprland = {
enable = true;
# Use nixpkgs Hyprland for ABI compatibility with plugins
withUWSM = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
};
environment.systemPackages = [
@@ -32,4 +34,4 @@
environment.sessionVariables = {
GTK_USE_PORTAL = "1";
};
}
}