feat: wallpaper fix

This commit is contained in:
2023-12-26 13:36:41 +01:00
parent ba39b55193
commit e0e6c637ca
2 changed files with 20 additions and 7 deletions

View File

@@ -3,7 +3,9 @@
config, config,
... ...
}: { }: {
services.darkman = { services.darkman = let
wallpaperPath = "${config.home.homeDirectory}/.local/state/wallpaper.jpg";
in {
enable = true; enable = true;
package = pkgs.buildGoModule rec { package = pkgs.buildGoModule rec {
pname = "darkman"; pname = "darkman";
@@ -70,9 +72,14 @@
'' ''
${pkgs.kitty}/bin/kitty +kitten themes --reload-in=all --config-file-name ${config.home.homeDirectory}/.config/kitty/current-colors.conf Catppuccin-Frappe ${pkgs.kitty}/bin/kitty +kitten themes --reload-in=all --config-file-name ${config.home.homeDirectory}/.config/kitty/current-colors.conf Catppuccin-Frappe
''; '';
wallpaper = '' wallpaper =
${pkgs.swww}/bin/swww img ${./wallpapers/Lakeside-2/Lakeside-2-1.jpg} /*
''; bash
*/
''
${pkgs.coreutils}/bin/ln -sf ${./wallpapers/Lakeside-2/Lakeside-2-1.jpg} ${wallpaperPath}
${pkgs.swww}/bin/swww img ${wallpaperPath}
'';
}; };
lightModeScripts = { lightModeScripts = {
gtk-theme = gtk-theme =
@@ -90,9 +97,14 @@
'' ''
${pkgs.kitty}/bin/kitty +kitten themes --reload-in=all --config-file-name ${config.home.homeDirectory}/.config/kitty/current-colors.conf Catppuccin-Latte ${pkgs.kitty}/bin/kitty +kitten themes --reload-in=all --config-file-name ${config.home.homeDirectory}/.config/kitty/current-colors.conf Catppuccin-Latte
''; '';
wallpaper = '' wallpaper =
${pkgs.swww}/bin/swww img ${./wallpapers/Lakeside-2/Lakeside-2-10.jpg} /*
''; bash
*/
''
${pkgs.coreutils}/bin/ln -sf ${./wallpapers/Lakeside-2/Lakeside-2-10.jpg} ${wallpaperPath}
${pkgs.swww}/bin/swww img ${wallpaperPath}
'';
}; };
}; };
} }

View File

@@ -29,6 +29,7 @@
]; ];
exec-once = [ exec-once = [
"swww init" "swww init"
"swww img ~/.local/state/wallpaper.jpg"
"ags" "ags"
"systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY" "systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY"
"dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY" "dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY"