mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-16 08:09:23 +01:00
darkman-setup.bash: a simple script to setup darkman
This commit is contained in:
parent
10c59347f0
commit
1e6bf757b1
21
bash/darkman-setup.bash
Executable file
21
bash/darkman-setup.bash
Executable file
@ -0,0 +1,21 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user