summaryrefslogtreecommitdiff
path: root/copy-all.sh
blob: 03b51ba6b54f1d0e39159c7c34f3b3b8fb6398ce (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
#!/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
cp -rf ./config/ ~/.config
cp -rf ./icons/ ~/.icons
cp -rf ./themes/ ~/.themes
mkdir -p ~/.local/bin/
cp -rf ./bin ~/.local/bin/
cp -f ./home/* ~/
cp -f ./vimrc ~/.vimrc
cp -f ./nvimrc ~/.nvimrc
cp -f ./zshrc ~/.zshrc

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

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