-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·52 lines (45 loc) · 1.97 KB
/
setup.sh
File metadata and controls
executable file
·52 lines (45 loc) · 1.97 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
#!/usr/bin/env sh
if [ -n "$TERMUX_APP_PID" ]; then
echo "" > "$PREFIX/etc/motd"
fi
## Cozette font
# curl --progress-bar -LO https://github.com/the-moonwitch/Cozette/releases/latest/download/CozetteVector.ttf -O https://github.com/the-moonwitch/Cozette/releases/latest/download/cozette_hidpi.otb
# install -v -m 600 -D CozetteVector.ttf "$HOME/.termux/font.ttf"
# install -v -m 600 -D cozette_hidpi.otb "$HOME/.local/share/fonts/cozette_hidpi.otb"
# rm -rfv CozetteVector.ttf cozette_hidpi.otb
## Maple font
curl --progress-bar -LO https://github.com/subframe7536/maple-font/releases/latest/download/MapleMono-NF-unhinted.zip
unzip -d font MapleMono-NF-unhinted.zip
install -v -m 600 -D "./font/MapleMono-NF-Regular.ttf" "$HOME/.termux/font.ttf"
install -v -m 600 -D "./font/MapleMono-NF-Regular.ttf" "$HOME/.local/share/fonts/MapleMono-NF-Regular.ttf"
rm -rfv MapleMono-NF-unhinted.zip font/
## Update symlinks
SCRIPT_DIR=$(cd -- "$(dirname -- "$0")" && pwd)
update_symlink() {
file=$1
destination=$2
ln -sf "$SCRIPT_DIR/$file" "$destination"
}
mkdir -pv "$HOME/.config"
mkdir -pv "$HOME/.config/emacs"
mkdir -pv "$HOME/.cache/zsh"
mkdir -pv "$HOME/.local/bin"
mkdir -pv "$HOME/.vnc"
update_symlink termux/termux.properties "$HOME/.termux/termux.properties"
update_symlink termux/colors.properties "$HOME/.termux/colors.properties"
update_symlink scripts/startx11 "$HOME/.local/bin/startx11"
update_symlink vnc/xstartup "$HOME/.vnc/xstartup"
update_symlink shell "$HOME/.config/"
update_symlink .zshenv "$HOME/.zshenv"
update_symlink zsh "$HOME/.config/"
update_symlink tmux "$HOME/.config/"
update_symlink nvim "$HOME/.config/"
update_symlink yazi "$HOME/.config/"
update_symlink sc-im "$HOME/.config/"
update_symlink elinks "$HOME/.config/"
update_symlink aerc "$HOME/.config/"
update_symlink awesome "$HOME/.config/"
update_symlink rofi "$HOME/.config/"
update_symlink wezterm "$HOME/.config/"
update_symlink alacritty "$HOME/.config/"
update_symlink emacs/init.el "$HOME/.config/emacs/init.el"