summaryrefslogtreecommitdiff
path: root/copy-all.sh
blob: 56934e406cf4e8fa35613f8d412ed78df5bd2607 (plain)
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
38
39
#!/bin/bash

echo "WARNING: this will overwrite the config"
read -p "are you sure? (y/n): " answer
if [ "$answer" != "y" ]; then
    echo "Aborting."
    exit 1
fi

mkdir -p ~/.config
mkdir -p ~/.icons
mkdir -p ~/.themes
find ./config/ -maxdepth 1 -exec cp -rf '{}' ~/.config/ \;
find ./icons/ -maxdepth 1 -exec cp -rf '{}' ~/.icons/ \;
find ./themes/ -maxdepth 1 -exec cp -rf '{}' ~/.themes/ \;
find ./home/ -maxdepth 1 -exec cp -rf '{}' ~/ \;
find ./bin/ -maxdepth 1 -exec cp -rf '{}' ~/.local/bin \;
mkdir -p ~/.local/bin/
cp -f ./vimrc ~/.vimrc
cp -f ./nvimrc ~/.nvimrc
cp -f ./zshrc ~/.zshrc

rm ~/.config/nvim/init.vim
ln -s ~/.nvimrc ~/.config/nvim/init.vim

gsettings set org.gnome.desktop.interface gtk-theme 'platinum-custom'
gsettings set org.gnome.desktop.interface icon-theme 'NineIcons'

pushd $PWD
cd ~/.config/openbox
read -p "do you want (s)mall or (b)ig WM fonts?" answer
if [ "$answer" = "s" ]; then
  echo "small titlebars"
  ~/.config/openbox/fonts-small
else
  echo "big titlebars"
  ~/.config/openbox/fonts-big
fi
popd