-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-config.sh
executable file
·145 lines (122 loc) · 3.97 KB
/
install-config.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#!/bin/bash
GREEN='\033[0;32m'
CLEAR='\033[0m'
ROOT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
SCRIPT_DIR=$ROOT_DIR/scripts
echo -e "$GREEN [dotfiles] $CLEAR"
echo -e "$GREEN Install .gitconfig? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking gitconfig to home $CLEAR"
ln -s $ROOT_DIR/.gitconfig ~/.gitconfig
fi
echo -e "$GREEN Install .tmux? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking tmux config to home $CLEAR"
ln -s $ROOT_DIR/.tmux.conf ~/.tmux.conf
fi
echo -e "$GREEN Install .xinitrc? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking xinitrc to home $CLEAR"
ln -s $ROOT_DIR/.xinitrc ~/.xinitrc
fi
echo -e "$GREEN Install neovim config? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking neovim config folder $CLEAR"
ln -s $ROOT_DIR/.config/nvim ~/.config/nvim
fi
echo -e "$GREEN Install alacritty config? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking Alacritty config folder $CLEAR"
ln -s $ROOT_DIR/.config/alacritty ~/.config/alacritty
fi
echo -e "$GREEN Install i3 config? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking i3 config folder $CLEAR"
rm -rf ~/.config/i3
ln -s $ROOT_DIR/.config/i3 ~/.config/i3
fi
echo -e "$GREEN Install i3status config? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking i3status config folder $CLEAR"
ln -s $ROOT_DIR/.config/i3status ~/.config/i3status
fi
echo -e "$GREEN Install picom config? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking picom config folder $CLEAR"
ln -s $ROOT_DIR/.config/picom ~/.config/picom
fi
echo -e "$GREEN Install dunst config? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking dunst config folder $CLEAR"
ln -s $ROOT_DIR/.config/dunst ~/.config/dunst
fi
echo -e "$GREEN Install volumeicon config? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking volumeicon config folder $CLEAR"
rm -rf ~/.config/volumeicon
ln -s $ROOT_DIR/.config/volumeicon ~/.config/volumeicon
fi
echo -e "$GREEN Install MangoHud config? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking MangoHud config folder $CLEAR"
ln -s $ROOT_DIR/.config/MangoHud ~/.config/MangoHud
fi
echo -e "$GREEN Install vkBasalt config? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking vkBasalt config folder $CLEAR"
ln -s $ROOT_DIR/.config/vkBasalt ~/.config/vkBasalt
fi
echo -e "$GREEN Install util scripts in ~/bin? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo -e "$GREEN Linking util scripts $CLEAR"
mkdir -p ~/bin
ln -s $ROOT_DIR/scripts/utils/setup-laptop.sh ~/bin/setup-laptop.sh
ln -s $ROOT_DIR/scripts/utils/setup-desktop.sh ~/bin/setup-desktop.sh
fi
echo -e "$GREEN Install firefox wayland environment variable? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
ln -s $ROOT_DIR/.config/environment.d/firefox_wayland.conf \
~/.config/environment.d/firefox_wayland.conf
fi
echo -e "$GREEN Install Intel GPU Tweaks? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
echo dev.i915.perf_stream_paranoid=0 \
| sudo tee -a /etc/sysctl.d/99-i915psp.conf
fi
echo -e "$GREEN Install NVIDIA environment VAAPI config? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
ln -s $ROOT_DIR/.config/environment.d/nvidia_vaapi.conf \
~/.config/environment.d/nvidia_vaapi.conf
fi
echo -e "$GREEN Install NVIDIA NVDEC config for mpv? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
mkdir -p ~/.config/mpv
ln -s $ROOT_DIR/.config/mpv/mpv-nvidia.conf \
~/.config/mpv/mpv.conf
fi
echo -e "$GREEN Install Intel VAAPI config for mpv? [y/n] $CLEAR"
read ANS
if [ "$ANS" == "y" ]; then
mkdir -p ~/.config/mpv
ln -s $ROOT_DIR/.config/mpv/mpv-intel.conf \
~/.config/mpv/mpv.conf
fi
echo -e "$GREEN Done! $CLEAR"
echo -e "$GREEN If using i3 remeber to configure XDG_CURRENT_DESKTOP to i3 and /usr/share/xdg-desktop-portal/portals/gtk.portal! $CLEAR"