-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharch_configure.sh
More file actions
executable file
·121 lines (101 loc) · 2.63 KB
/
arch_configure.sh
File metadata and controls
executable file
·121 lines (101 loc) · 2.63 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#!/bin/bash
# Package installation
sudo pacman -Sy archlinux-keyring
sudo pacman -Syyu
sudo pacman -Syy \
gnome-keyring \
jq \
npm \
rust \
rofi \
rofi-emoji \
wl-clipboard \
clipcat \
neovim \
nwg-look \
tmux \
waybar \
sddm \
zsh \
zoxide \
man-db \
flameshot \
fzf \
hypridle \
hyprpaper \
hyprlock \
brightnessctl \
ghostty \
git \
github-cli \
base-devel \
luarocks \
tldr \
lazygit \
bluez \
bluez-utils \
bluez-deprecated-tools \
bluetui \
pacman-contrib
## Install yay
sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
## Install aur packages
yay -S opencode-bin
yay -S ascii-image-converter-git
yay -S rofi-greenclip
yay -S python-pywal16 # Actively maintained pywal fork
yay -S sesh-bin
## Install other packages
curl -fsSL https://pkgs.netbird.io/install.sh | sh
gh extension install dlvhdr/gh-dash
# # Configure Displayling
# sudo pacman -Sy linux-headers # Might be necessary to replace with `linux-lts-headers`
# yay -S evdi-dkms
# yay -S displaylink
# sudo modprobe udl
# systemctl enable displayink.service
# systemctl start displayink.service
# Enable bluetooth
# systemctl enable bluetooth.service
# systemctl start bluetooth.service
# Docker
read -p "Install Docker and related tools? [y/N] " install_docker
if [[ "$install_docker" =~ ^[Yy]$ ]]; then
## Install docker, buildx, compose, and lazydocker
sudo pacman -S docker docker-buildx docker-compose lazydocker
## Create docker group and add current user
sudo groupadd -f docker
sudo usermod -aG docker "$USER"
## Enable and start docker service
sudo systemctl enable docker.service
sudo systemctl start docker.service
echo "Docker installed and configured. Log out and back in for group changes to take effect."
fi
dotfiles_dir=$HOME/dotfiles
#
# Create config symlinks
create_config_symlink () {
config_entry=$1
ln -s ${dotfiles_dir}/.config/${config_entry}/ $HOME/.config/${config_entry}
}
mv .config/hypr .config/hypr.bkp
create_config_symlink hypr
create_config_symlink nvim
create_config_symlink rofi
create_config_symlink waybar
create_config_symlink ghostty
create_config_symlink flameshot
create_config_symlink lazygit
create_config_symlink tmux
create_config_symlink gh-dash
create_config_symlink clipcat
ln -s ${dotfiles_dir}/.aliases $HOME/.aliases
ln -s ${dotfiles_dir}/.tmux.conf $HOME/.tmux.conf
ln -s ${dotfiles_dir}/.zshrc $HOME/.zshrc
# Change file permissions
chmod +x ~/.config/rofi/scripts/rofi-power.sh
chmod +x ~/.config/hypr/scripts/rotate-wallpaper.sh
# Configure nvim
# TODO: Add to script
# - oh-my-zsh install
# - powerlevel10k install