Skip to content

Commit 04a4340

Browse files
committed
feat: added new theme to autosetup
1 parent 38aedb1 commit 04a4340

4 files changed

Lines changed: 181 additions & 121 deletions

File tree

autosetup.sh

Lines changed: 96 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,168 @@
1+
12
#!/bin/zsh
23
# =========================================
34
# Arch Linux Essentials Setup Script
45
# Use this after resetting your Arch PC
56
# Author: Ravindran S
67
# =========================================
78

9+
RED='\033[0;31m'
10+
GREEN='\033[0;32m'
11+
YELLOW='\033[1;33m'
12+
BLUE='\033[1;34m'
13+
CYAN='\033[1;36m'
14+
MAGENTA='\033[1;35m'
15+
RESET='\033[0m'
16+
BOLD='\033[1m'
17+
18+
line() {
19+
printf "${BLUE}%*s${RESET}\n" "$(tput cols)" "" | tr ' ' '-'
20+
}
21+
22+
23+
24+
section() {
25+
echo
26+
line
27+
echo -e "${BOLD}${CYAN}$1${RESET}"
28+
line
29+
}
30+
31+
success() {
32+
echo -e "${GREEN}$1${RESET}"
33+
}
34+
35+
info() {
36+
echo -e "${YELLOW}$1${RESET}"
37+
}
38+
39+
section "Shell Setup (Zsh)"
840

941
sudo pacman -S --noconfirm zsh
1042
if [ "$SHELL" != "$(which zsh)" ]; then
11-
echo ">>> Changing default shell to zsh..."
43+
info "Changing default shell to zsh..."
1244
chsh -s "$(which zsh)"
1345
fi
46+
success "Zsh installed & configured"
1447

48+
section "System Update"
1549

16-
echo ">>> Updating system..."
50+
info "Updating system..."
1751
sudo pacman -Syu --noconfirm
52+
success "System up to date"
1853

54+
section "Mirrorlist"
1955

20-
echo ">>> Installing mirrorlist..."
56+
info "Installing mirrorlist..."
2157
sudo pacman -Syu
58+
success "Mirrorlist synced"
2259

60+
section "Timezone Configuration"
2361

24-
echo ">>> Setting timezone to Asia/Kolkata..."
62+
info "Setting timezone to Asia/Kolkata..."
2563
sudo timedatectl set-timezone Asia/Kolkata
64+
success "Timezone set"
2665

66+
section "Installing Arch Essentials"
2767

28-
echo ">>> Installing Arch essentials..."
2968
sudo pacman -S --noconfirm \
3069
base-devel git wget curl neovim tmux zsh htop btop \
3170
kdeconnect fastfetch unzip zip zlib xz tk kcalc \
3271
firefox discord power-profiles-daemon
3372

73+
success "Core packages installed"
3474

75+
section "Installing paru (AUR Helper)"
3576

36-
echo ">>> Installing paru (AUR helper)..."
3777
if [ ! -d ~/paru ]; then
3878
git clone https://aur.archlinux.org/paru.git ~/paru
3979
cd ~/paru && makepkg -si --noconfirm && cd ~
4080
fi
81+
success "paru ready"
4182

83+
section "Installing yay (AUR Helper)"
4284

43-
echo ">>> Installing yay (AUR helper)..."
4485
if [ ! -d ~/yay ]; then
4586
git clone https://aur.archlinux.org/yay.git ~/yay
4687
cd ~/yay && makepkg -si --noconfirm && cd ~
4788
fi
89+
success "yay ready"
4890

91+
section "Installing Browsers"
4992

50-
echo ">>> Installing Brave browser..."
5193
export PATH="$HOME/.local/bin:$PATH"
5294
if ! command -v paru &> /dev/null; then
53-
echo "paru not found. Please restart your shell or source ~/.zshrc before running this script."
95+
echo -e "${RED}paru not found. Restart shell or source ~/.zshrc${RESET}"
5496
exit 1
5597
fi
56-
paru -S brave-bin
5798

99+
info "Installing Brave..."
100+
paru -S brave-bin
58101

59-
echo ">>> Installing Google Chrome..."
102+
info "Installing Google Chrome..."
60103
yay -S google-chrome
61104

62-
echo ">>> Installing Spotify..."
105+
success "Browsers installed"
106+
107+
section "Installing Spotify"
108+
63109
yay -S spotify
110+
success "Spotify installed"
64111

112+
section "Zsh Theme & Plugins"
65113

66-
echo ">>> Cloning Powerlevel10k and Zsh plugins..."
67114
mkdir -p ~/.zsh
68115

69116
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
70117
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
71118
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.zsh/powerlevel10k
72119

73-
echo ">>> Cloning Tmux Plugin Manager..."
120+
success "Powerlevel10k & plugins cloned"
121+
122+
section "Tmux Plugin Manager"
123+
74124
if [ ! -d ~/.tmux/plugins/tpm ]; then
75125
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
76126
fi
127+
success "TPM installed"
77128

129+
section "GitHub CLI"
78130

79-
echo ">>> Installing GitHub CLI and authenticating..."
80131
sudo pacman -S github-cli
81132
gh auth login
82-
133+
success "GitHub authenticated"
83134

84135
echo
85-
echo " Setup complete!"
86-
echo "--------------------------------------------------"
87-
echo "✔ Run: chsh -s $(which zsh) to set zsh as default shell."
88-
echo "✔ Open tmux and press prefix + I to install plugins."
136+
line
137+
echo -e "${MAGENTA}${BOLD} Setup Complete! ${RESET}"
138+
line
139+
140+
echo -e "${GREEN}✔ Run:${RESET} chsh -s $(which zsh)"
141+
echo -e "${GREEN}✔ Tmux:${RESET} prefix + I to install plugins"
89142
echo
90-
echo " After setup, consider:"
91-
echo " - cd into each repo & install dependencies"
92-
echo " - Download the mirrorlist from the github repo and save it in Downloads and use the below commands to activate"
93-
echo " - sudo cp -rf /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak"
94-
echo " - sudo cp -rf ~/Downloads/mirrorlist /etc/pacman.d/mirrorlist"
95-
echo "--------------------------------------------------"
96-
echo " Done! Enjoy your Arch setup :)"
143+
echo -e "${CYAN}Post Setup Tips:${RESET}"
144+
echo " • Activate custom mirrorlist if needed"
145+
echo " • Sync Neovim plugins (:Lazy sync)"
146+
echo " • Configure fastfetch & tmux"
147+
148+
line
149+
echo -e "${BOLD}${GREEN}Done! Enjoy your Arch setup ${RESET}"
150+
line
151+
152+
153+
# echo
154+
# echo " Setup complete!"
155+
# echo "--------------------------------------------------"
156+
# echo "✔ Run: chsh -s $(which zsh) to set zsh as default shell."
157+
# echo "✔ Open tmux and press prefix + I to install plugins."
158+
# echo
159+
# echo " After setup, consider:"
160+
# echo " - cd into each repo & install dependencies"
161+
# echo " - Download the mirrorlist from the github repo and save it in Downloads and use the below commands to activate"
162+
# echo " - sudo cp -rf /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak"
163+
# echo " - sudo cp -rf ~/Downloads/mirrorlist /etc/pacman.d/mirrorlist"
164+
# echo "--------------------------------------------------"
165+
# echo " Done! Enjoy your Arch setup :)"
97166
# =========================================================================================================
98167

99168
# Instructions:

configs/fastfetch/config.jsonc

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11

2-
32
{
43
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
54

6-
/* ================= LOGO ================= */
5+
76
"logo": {
87
"source": "~/.local/share/fastfetch/images/me.png",
98
"type": "kitty-icat",
109
"height": 4,
11-
"padding": { "top": 1 }
10+
"padding": { "top": 0 }
1211
},
1312

14-
/* ================= DISPLAY ================= */
13+
1514
"display": {
1615
"separator": "",
1716
"constants": [
1817
"\u001b[90m│ │\u001b[61D\u001b[39m"
1918
]
2019
},
2120

22-
/* ================= MODULES ================= */
21+
2322
"modules": [
2423
"break",
2524

26-
/* ===== BOX TOP ===== */
25+
2726
{
2827
"type": "custom",
2928
"key": "{#90}╭─────────────╮",
3029
"format": "{#90}╭─────────────────────────────────────────────────────────────╮"
3130
},
3231

33-
/* ===== USER ===== */
32+
3433
{
3534
"type": "title",
3635
"key": "{#90}│ {#92}User {#90}│",
@@ -47,7 +46,7 @@
4746
"format": "{$1}\u001b[38;2;224;175;104m{year}-{month-pretty}-{day-in-month} {hour-pretty}:{minute-pretty}:{second-pretty} [{weekday}] [W{week}] [UTC{offset-from-utc}]\u001b[39m"
4847
},
4948

50-
/* ===== SYSTEM ===== */
49+
5150
{
5251
"type": "host",
5352
"key": "{#90}│ {#93}Machine {#90}│",
@@ -69,7 +68,7 @@
6968
"format": "{$1}\u001b[38;2;224;175;104m{hours}:{minutes}\u001b[39m"
7069
},
7170

72-
/* ===== PERFORMANCE ===== */
71+
7372
{
7473
"type": "cpu",
7574
"key": "{#90}│ {#91}CPU {#90}│",
@@ -103,27 +102,27 @@
103102
"format": "{$1}\u001b[38;2;158;206;106m{used} / {total} ({percentage})\u001b[39m"
104103
},
105104

106-
/* ===== GPU ===== */
105+
107106
{
108107
"type": "gpu",
109-
"index": 0,
108+
110109
"key": "{#90}│ {#91}GPU {#90}│",
111110
"format": "{$1}\u001b[38;2;247;118;142m{name}\u001b[39m"
112111
},
113112

114113

115114

116-
/* ===== STORAGE ===== */
115+
117116
{
118117
"type": "disk",
119118
"key": "{#90}│ {#91}Disk / {#90}│",
120-
"mountpoint": "/",
119+
"mountpoints": "/",
121120
"format": "{$1}\u001b[38;2;158;206;106m{size-used}/{size-total} ({size-percentage})\u001b[39m"
122121
},
123122
{
124123
"type": "disk",
125124
"key": "{#90}│ {#91}Disk ~ {#90}│",
126-
"mountpoint": "/home",
125+
"mountpoints": "/home",
127126
"format": "{$1}\u001b[38;2;158;206;106m{size-used}/{size-total} ({size-percentage})\u001b[39m"
128127
},
129128

@@ -134,7 +133,7 @@
134133
"format": "{$1}\u001b[38;2;122;162;247m{}\u001b[39m"
135134
},
136135

137-
/* ===== POWER ===== */
136+
138137
{
139138
"type": "command",
140139
"key": "{#90}│ {#91}Battery {#90}│",
@@ -156,7 +155,7 @@
156155
"format": "{$1}\u001b[38;2;158;206;106m{}\u001b[39m"
157156
},
158157

159-
/* ===== DEV ===== */
158+
160159
{
161160
"type": "shell",
162161
"key": "{#90}│ {#95}Shell {#90}│",
@@ -173,14 +172,14 @@
173172
"format": "{$1}\u001b[38;2;187;154;247m{name} [size:{size}]\u001b[39m"
174173
},
175174

176-
/* ===== NETWORK ===== */
175+
177176
{
178177
"type": "localip",
179178
"key": "{#90}│ {#94}Local IPv4 {#90}│",
180179
"format": "{$1}\u001b[38;2;125;207;255m{ifname}: {ipv4}\u001b[39m"
181180
},
182181

183-
/* ===== BOX BOTTOM ===== */
182+
184183
{
185184
"type": "custom",
186185
"key": "{#90}╰─────────────╯",

configs/kitty/kitty.conf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
shell zsh
1+
shell /usr/bin/zsh
22

3-
#text cursor animation
3+
4+
5+
# For gnome-terminal transparency effect
6+
7+
background_opacity 0.85
48

59
cursor_trail 50
610
cursor_trail_decay 0.1 1
711
cursor_shape beam
812
cursor_beam_thickness 5
13+
cursor_blink_interval 0.5

0 commit comments

Comments
 (0)