-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patharch-setup.sh
More file actions
88 lines (70 loc) · 3 KB
/
arch-setup.sh
File metadata and controls
88 lines (70 loc) · 3 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
#!/bin/bash
# Install packages with pacman
sudo pacman -S --noconfirm \
android-tools \
bluez bluez-utils blueman \
cloudflared power-profiles-daemon \
bat htop jq fastfetch ripgrep tree wget yq \
neovim tmux \
gcc npm \
helm kubectl kubectx \
noto-fonts-cjk noto-fonts-extra \
celluloid discord telegram-desktop discord
# Enable bluetooth and power profiles
systemctl enable --now bluetooth
systemctl enable --now power-profiles-daemon
# Setup git
sudo pacman -S --noconfirm git github-cli
if [[ $USER == "karan" ]]; then
git config --global user.email "whyredfire@gmail.com"
git config --global user.name "Karan Parashar"
fi
git config --global alias.cp 'cherry-pick'
git config --global alias.c 'commit'
git config --global alias.f 'fetch'
git config --global alias.m 'merge'
git config --global alias.rb 'rebase'
git config --global alias.rs 'reset'
git config --global alias.ck 'checkout'
git config --global commit.verbose true
git config --global core.editor 'nvim'
# Install yay and their packages
git clone https://aur.archlinux.org/yay.git && cd yay
makepkg -si
cd .. && rm -rf yay
yay -S --noconfirm \
google-chrome \
motrix-bin
# Install battop
wget https://github.com/svartalf/rust-battop/releases/download/v0.2.4/battop-v0.2.4-x86_64-unknown-linux-gnu -O battop
sudo mv battop /usr/bin/
sudo chmod +x /usr/bin/battop
# Setup docker
sudo pacman -S --noconfirm dive docker docker-buildx docker-compose
sudo usermod -aG docker $USER
sudo systemctl enable --now docker
# Configure GNOME shell
sudo pacman -S --noconfirm gnome-themes-extra extension-manager
# gsettings list-recursively org.gnome.desktop.interface
gsettings set org.gnome.shell disable-user-extensions false
gsettings set org.gnome.desktop.interface show-battery-percentage true
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
gsettings set org.gnome.desktop.interface locate-pointer true
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
gsettings set org.gnome.desktop.interface clock-show-weekday true
gsettings set org.gnome.desktop.interface clock-format '12h'
gsettings set org.gnome.desktop.interface monospace-font-name 'JetBrainsMono Nerd Font Medium 10'
# tmux
git clone https://github.com/tmux-plugins/tpm --depth=1 ~/.tmux/plugins/tpm
# oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
# dotfiles
git clone https://github.com/whyredfire/dotfiles dotfiles
cp -r dotfiles/.config/* ~/.config/
rm -rf dotfiles
ZSH_PATH=~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_PATH/zsh-autosuggestions --depth=1
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_PATH/zsh-syntax-highlighting --depth=1
git clone https://github.com/zsh-users/zsh-completions.git $ZSH_PATH/zsh-completions --depth=1