fix(hyprland): avoid mismatching with plugins
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
# TODO: rewrite
|
# TODO: rewrite
|
||||||
wallpaperDir = "${config.home.homeDirectory}/.config/nixos/assets/Wallpapers";
|
wallpaperDir = "${config.home.homeDirectory}/.config/nixos/assets/Wallpapers";
|
||||||
defaultWallpaper = "${wallpaperDir}/${myConfig.hyprland.wallpaper}";
|
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" ''
|
switch-wallpaper = pkgs.writeShellScriptBin "hakase-wallpaper-switch" ''
|
||||||
if [[ "$1" != "run" ]]; then
|
if [[ "$1" != "run" ]]; then
|
||||||
@@ -70,6 +70,8 @@ in {
|
|||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
exec-once = [
|
exec-once = [
|
||||||
# "uwsm app -- hyprpaper"
|
# "uwsm app -- hyprpaper"
|
||||||
|
"hyprctl hyprpaper preload ${cacheWallpaper}"
|
||||||
|
"hyprctl hyprpaper wallpaper ,${cacheWallpaper}"
|
||||||
"uwsm app -- matugen image ${cacheWallpaper} --source-color-index 0"
|
"uwsm app -- matugen image ${cacheWallpaper} --source-color-index 0"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
{
|
{
|
||||||
|
inputs,
|
||||||
myConfig,
|
myConfig,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Use nixpkgs Hyprland for ABI compatibility with plugins
|
|
||||||
withUWSM = true;
|
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 = [
|
environment.systemPackages = [
|
||||||
@@ -32,4 +34,4 @@
|
|||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
GTK_USE_PORTAL = "1";
|
GTK_USE_PORTAL = "1";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user