zsh: only change theme if darkman is available

This commit is contained in:
Charlotte Van Petegem 2024-01-08 20:14:50 +01:00
parent 3ec5ea5728
commit 99a78a8a64
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -91,11 +91,14 @@ let
darkmode
}
if [ "$(darkman get)" = "dark" ]
if type darkman >/dev/null
then
darkmode
else
lightmode
if [ "$(darkman get)" = "dark" ]
then
darkmode
else
lightmode
fi
fi
'';
sessionVariables = { DEFAULT_USER = "charlotte"; };