mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-16 08:09:23 +01:00
22 lines
675 B
Bash
22 lines
675 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
if ! hash darkman 2> /dev/null; then
|
||
|
echo "You don't seem to have darkman installed." 1>&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
mkdir -vp ~/.local/share/
|
||
|
|
||
|
if [ -d /usr/share/doc/darkman/examples ]; then
|
||
|
ln -nsfv /usr/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/
|
||
|
elif [ -d /usr/local/share/doc/darkman/examples ]; then
|
||
|
ln -nsfv /usr/local/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/
|
||
|
elif [ -d ~/.local/share/doc/darkman/examples ]; then
|
||
|
ln -nsfv ~/.local/share/doc/darkman/examples/{dark,light}-mode.d ~/.local/share/
|
||
|
else
|
||
|
echo "Darkman examples not found in expected locations."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
systemctl --user enable --now darkman.service
|