-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_onchange_initial_setup.sh
More file actions
executable file
·55 lines (44 loc) · 1.37 KB
/
run_onchange_initial_setup.sh
File metadata and controls
executable file
·55 lines (44 loc) · 1.37 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
#!/bin/bash
# Locale
LOCALE="en_GB.UTF-8"
sudo sed -i -E "s|^#($LOCALE)|\1|" /etc/locale.gen
sudo locale-gen
echo "LANG=$LOCALE" | sudo tee /etc/locale.conf > /dev/null
# Timezone
TIMEZONE="Europe/London"
sudo ln -sf "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime
# Keyboard layout
KEYS="uk"
sudo loadkeys $KEYS
echo "KEYMAP=$KEYS" | sudo tee /etc/vconsole.conf > /dev/null
# Basics
sudo pacman -S --noconfirm --needed \
zsh git github-cli otf-droid-nerd bitwarden-cli neovim \
firefox firefox-i18n-en-gb man-db starship base-devel \
htop tailscale
## Enable tailscaled
sudo systemctl enable --now tailscaled
## Lunarvim
sudo pacman -S --noconfirm --needed make gcc python python-pip npm rustup
[[ ! -e ~/.local/bin/lvim ]] && LV_BRANCH='release-1.3/neovim-0.9' curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.sh | bash -
# SSH
if [[ ! -e ~/.ssh/id_ed25519 ]]; then
echo ""
echo "SSH key does not exist, creating..."
echo ""
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519
fi
# Bitwarden Login
if [[ ! -e ~/.config/Bitwarden\ CLI/data.json ]]; then
echo ""
echo "Running bitwarden login..."
echo ""
export BW_SESSION=$(bw login --raw)
fi
# Github Login
# Desktop
if [[ ! -e ~/.config/hypr/hyprland.conf ]]; then
git clone https://github.com/jsmcnair/hyprdots ~/Hyprdots
cd ~/Hyprdots/Scripts
./install.sh
fi