hm/swww: update symlink when swww-daemon is not active
This commit is contained in:
parent
aff0796cd3
commit
a4549f7052
|
@ -2,7 +2,5 @@
|
|||
{
|
||||
home.globalPersistence.directories = [
|
||||
"Projects"
|
||||
|
||||
".local/share/uv"
|
||||
];
|
||||
}
|
||||
|
|
|
@ -38,11 +38,11 @@ in
|
|||
pkgs.writeShellApplication {
|
||||
name = "darkman-switch-swww-${mode}";
|
||||
text = ''
|
||||
ln --force --symbolic --verbose "${config.theme.${mode}.wallpaper}" "$HOME/.config/swww/wallpaper"
|
||||
if ! ${config.systemd.user.systemctlPath} --user is-active swww-daemon; then
|
||||
echo "swww-daemon is not active"
|
||||
exit 1
|
||||
fi
|
||||
ln --force --symbolic --verbose "${config.theme.${mode}.wallpaper}" "$HOME/.config/swww/wallpaper"
|
||||
${swww}/bin/swww img ~/.config/swww/wallpaper
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue