-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-installation.sh
55 lines (44 loc) · 1.75 KB
/
post-installation.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
50
51
52
53
54
55
#!/bin/bash
# Install packages
echo "(i) install packages"
sudo -E pacman -S - < pkglist.txt
# Set the keyboard layout settings
echo "(i) set the keyboard layout"
localectl set-x11-keymap fr
# Pull dotfiles
dotfiles_dir=$HOME/Documents/dotfiles
mkdir -p $dotfiles_dir
git clone https://github.com/cboin/dotfiles $dotfiles_dir
# Set bash config
echo "(i) set bash config"
ln -sf $dotfiles_dir/config_files/bash/bashrc $HOME/.bashrc
# Set i3wm config
echo "(i) set i3wm config"
ln -sf $dotfiles_dir/config_files/i3wm/config $HOME/.config/i3/config
ln -sf $dotfiles_dir/config_files/i3wm/i3status.conf $HOME/.config/i3/i3status.conf
sudo -E wget http://static.simpledesktops.com/uploads/desktops/2015/02/20/zentree_1.png -O /usr/share/pixmaps/wallpaper.png
sudo -E wget http://raspberrypi.windowswiki.info/img/archlinuxlogo.png -O /usr/share/pixmaps/arch-logo.png
ln -sf $dotfiles_dir/config_files/i3wm/lock.sh $HOME/.config/i3/lock.sh
sudo ln -sf $HOME/.config/i3/lock.sh /usr/bin/lock
chmod +x /usr/bin/lock
# Set X11 config
echo "(i) set X11 config"
ln -sf $dotfiles_dir/config_files/X11/Xresources $HOME/.Xresources
ln -sf $dotfiles_dir/config_files/X11/xinitrc $HOME/.xinitrc
# Set lightdm config
echo "(i) set lightdm config"
sudo ln -sf $dotfiles_dir/lightdm/* /etc/lightdm/
# Set git config
echo "(i) set git config"
ln -sf $dotfiles_dir/config_files/git/gitconfig $HOME/.gitconfig
# Set vim config
echo "(i) set vim config"
ln -sf $dotfiles_dir/config_files/vim/vimrc $HOME/.vimrc
ln -sf $dotfiles_dir/vim $HOME/.vim
# Set zsh config
echo "(i) set zsh config"
ln -sf $dotfiles_dir/zsh/oh-my-zsh $HOME/.oh-my-zsh
ln -sf $dotfiles_dir/zsh/zshrc $HOME/.zshrc
# Set temite config
echo "(i) set termite config"
ln -sf $dotfiles_dir/termite/config $HOME/.config/termite/config