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,
...
}: {
services.darkman = {
services.darkman = let
wallpaperPath = "${config.home.homeDirectory}/.local/state/wallpaper.jpg";
in {
enable = true;
package = pkgs.buildGoModule rec {
pname = "darkman";
@@ -70,8 +72,13 @@
''
${pkgs.kitty}/bin/kitty +kitten themes --reload-in=all --config-file-name ${config.home.homeDirectory}/.config/kitty/current-colors.conf Catppuccin-Frappe
'';
wallpaper = ''
${pkgs.swww}/bin/swww img ${./wallpapers/Lakeside-2/Lakeside-2-1.jpg}
wallpaper =
/*
bash
*/
''
${pkgs.coreutils}/bin/ln -sf ${./wallpapers/Lakeside-2/Lakeside-2-1.jpg} ${wallpaperPath}
${pkgs.swww}/bin/swww img ${wallpaperPath}
'';
};
lightModeScripts = {
@@ -90,8 +97,13 @@
''
${pkgs.kitty}/bin/kitty +kitten themes --reload-in=all --config-file-name ${config.home.homeDirectory}/.config/kitty/current-colors.conf Catppuccin-Latte
'';
wallpaper = ''
${pkgs.swww}/bin/swww img ${./wallpapers/Lakeside-2/Lakeside-2-10.jpg}
wallpaper =
/*
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 = [
"swww init"
"swww img ~/.local/state/wallpaper.jpg"
"ags"
"systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY"
"dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY"