-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·104 lines (92 loc) · 2.12 KB
/
install.sh
File metadata and controls
executable file
·104 lines (92 loc) · 2.12 KB
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
#!/bin/bash
## Install dotfiles for mac os or linux hyprland
## For hyprland, install dependencies first for arch linux
unameOut=$(uname -a)
Echo() {
echo -e "\033[1;32m$1\033[0m"
}
tmux() {
Echo "Installing tmux..."
sudo pacman -S --noconfirm tmux
Echo "Installing tmux plugin manager..."
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Echo "link ../.tmux.conf to ~/.tmux.conf"
ln -s $(pwd)/.tmux.conf ~/.tmux.conf
}
fish() {
Echo "Installing fish shell..."
sudo pacman -S --noconfirm fish
Echo "Setup fish shell as default shell..."
chsh -s /usr/bin/fish
}
hyprland() {
Echo "Installing dependencies for hyprland..."
sudo pacman -S --noconfirm \
hyprland \
waybar \
hyprpaper \
foot \
git \
rofi \
dunst \
pamixer \
pavucontrol \
thunar \
thunar-archive-plugin \
thunar-volman \
tumbler \
ffmpegthumbnailer \
openssh
}
nvim() {
Echo "Installing nvim and other tools..."
sudo pacman -S --noconfirm nvim \
wl-clipboard \
fd \
lua5 \
luarocks \
bluez-utils
}
link() {
Echo "Link ../.config/ to ~/.config"
for item in $(pwd)/.config/*; do
Echo "Linking $item to ~/.config/"
ln -s "$item" ~/.config/
done
}
if [[ "$unameOut" == *"Linux"* && "$unameOut" == *"arch"* ]]; then
echo "Installing dependencies for hyprland on arch linux..."
## switch case with first arg or run all if no arg
case $1 in
tmux)
tmux
;;
fish)
fish
;;
hyprland)
hyprland
;;
nvim)
nvim
;;
link)
link
;;
*)
tmux
fish
hyprland
nvim
link
;;
esac
else
Echo "Not arch linux, skipping dependencies installation..."
Echo "Link .config/ to ~/.config"
Echo "Link ../.config/ to ~/.config"
for item in $(pwd)/.config/*; do
Echo "Linking $item to ~/.config/"
ln -s "$item" ~/.config/
done
fi