blob: 21bed0d14d883355130452e985e8b92ce4e6723e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/sh
set -e
timestamp="$(date +%m.%d.%Y)"
if [ -e "$HOME/.waylandrc" ] && ! [ -L "$HOME/.waylandrc" ] ; then
mv "$HOME"/.waylandrc "$HOME"/.waylandrc-"$timestamp"
fi
if [ -L "$HOME/.waylandrc" ] ; then
rm "$HOME/.waylandrc"
fi
ln -sv "$(pwd)"/waylandrc "$HOME"/.waylandrc
# Default to dark if we don't have any conf yet
if ! [ -e mako/config ] ; then
ln -s dark mako/config
fi
if ! [ -e river/theme_conf ] ; then
echo 'mode=dark' > river/theme_conf
fi
for _d in * ; do
! [ -d "$_d" ] && continue
dest="$HOME"/.config/"$_d"
if ! [ -L "$dest" ] && [ -d "$dest" ] ; then
mv "$dest" "$dest-$timestamp"
elif [ -L "$dest" ] ; then
rm "$dest"
fi
ln -sv "$(pwd)"/"$_d" "$dest"
done
if ! [ -r "$HOME/.wallpaper.jpg" ] ; then
echo "Warning: no $HOME/.wallpaper.jpg found. Put a file or link there to set wallpaper"
fi
|