default wallpaper
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkOption recursiveUpdate types;
|
||||
inherit (lib) mkOption recursiveUpdate types optionals;
|
||||
rosePineHyprcursor = pkgs.callPackage ./rose-pine-hyprcursor.nix { };
|
||||
|
||||
defaultInput = {
|
||||
@@ -25,6 +25,8 @@ let
|
||||
sensitivity = 0.0;
|
||||
};
|
||||
|
||||
wallpaperCommand = config.hare.hyprland.wallpaperCommand;
|
||||
|
||||
baseSettings = {
|
||||
exec-once = [
|
||||
# "/usr/lib/polkit-kde-authentication-agent-1"
|
||||
@@ -37,8 +39,11 @@ let
|
||||
"eww open bar"
|
||||
"eww open roundedEdge"
|
||||
];
|
||||
exec = [
|
||||
"swww img /usr/share/wallpaper/arknights-02.jpg"
|
||||
exec =
|
||||
optionals (wallpaperCommand != null) [
|
||||
wallpaperCommand
|
||||
]
|
||||
++ [
|
||||
"dconf write /org/gnome/desktop/interface/gtk-theme 'Adwaita Dark'"
|
||||
"dconf write /org/gnome/desktop/interface/icon-theme 'Adwaita Dark'"
|
||||
"dconf write /org/gnome/desktop/interface/document-font-name 'Noto Sans Medium 11'"
|
||||
@@ -62,7 +67,8 @@ let
|
||||
|
||||
misc = {
|
||||
force_default_wallpaper = false;
|
||||
disable_hyprland_logo = false;
|
||||
disable_hyprland_logo = true;
|
||||
disable_splash_rendering = true;
|
||||
};
|
||||
|
||||
windowrulev2 = [
|
||||
@@ -210,6 +216,11 @@ in
|
||||
default = { };
|
||||
description = "Overrides for the Hyprland input block (e.g., sensitivity, accel profiles).";
|
||||
};
|
||||
options.hare.hyprland.wallpaperCommand = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = "Command to set the wallpaper (e.g., \"swww img <path>\"); appended to Hyprland's exec list when provided.";
|
||||
};
|
||||
|
||||
config = {
|
||||
wayland.windowManager.hyprland = {
|
||||
@@ -221,14 +232,13 @@ in
|
||||
plugins = [
|
||||
];
|
||||
};
|
||||
home.packages =
|
||||
[
|
||||
rosePineHyprcursor
|
||||
]
|
||||
++ (with pkgs; [
|
||||
swww
|
||||
eww
|
||||
]);
|
||||
home.packages = [
|
||||
rosePineHyprcursor
|
||||
]
|
||||
++ (with pkgs; [
|
||||
swww
|
||||
eww
|
||||
]);
|
||||
home.sessionVariables = {
|
||||
HYPRCURSOR_THEME = "rose-pine-hyprcursor";
|
||||
HYPRCURSOR_SIZE = "24";
|
||||
|
||||
Reference in New Issue
Block a user