-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfetch_dotfiles.sh
executable file
·49 lines (37 loc) · 1.3 KB
/
fetch_dotfiles.sh
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
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
if [[ $EUID == 0 ]]; then
echo ">> Please do nut run as root :)"
exit
fi
# the (sub)directories in this dotfiles repo, except for _root, are structured
# relative to $HOME. the contents of _root should be pasted to `/`.
# $HOME/.config stuff.
mkdir -p .config
cp -r $HOME/.config/dunst .config/
cp -r $HOME/.config/nemo .config/
cp -r $HOME/.config/nvim .config/
cp -r $HOME/.config/picom .config/
cp -r $HOME/.config/polybar .config/
# cp -r $HOME/.config/pulse .config/
cp -r $HOME/.config/rofi .config/
cp -r $HOME/.config/zathura .config/
cp -r $HOME/.config/mimeapps.list .config/
cp -r $HOME/.config/pavucontrol.ini .config/
cp -r $HOME/.config/i3 .config/
# zsh, including `sortraev theme` (no plugins -- assume these are stored in
# .zshrc).
cp $HOME/.zshrc .
mkdir -p .oh-my-zsh/themes
cp -r $HOME/.oh-my-zsh/themes/sortraev.zsh-theme .
# misc (probably not all of these are even in use).
cp $HOME/.bashrc .
cp $HOME/.dir_colors .
cp $HOME/.gitconfig .
cp $HOME/.Xresources .
cp $HOME/.xinitrc .
# system stuff (everything in _root should simply be installed using
# sudo cp -r _root /.
# TODO: is anything missing?
_root=./Root
mkdir -p $_root/systemd/system/
mkdir -p $_root/etc/udev/rules.d