feat: add fastfetch hampter config and bashrc setup to ecosystem
This commit is contained in:
parent
cd45a704fa
commit
e3d496502a
@ -93,18 +93,27 @@ cmake --build build
|
||||
sudo cmake --install build
|
||||
```
|
||||
|
||||
### Step 3: Deploy QuickShell Configuration to `~/.config/quickshell/`
|
||||
### Step 3: Deploy QuickShell & Fastfetch Configurations to `~/.config/`
|
||||
|
||||
Copy the QuickShell ecosystem into Zoey's `.config` directory:
|
||||
Copy the QuickShell ecosystem and Fastfetch Hampter configuration into Zoey's `.config` directory:
|
||||
|
||||
```bash
|
||||
mkdir -p ~/.config/quickshell
|
||||
mkdir -p ~/.config/quickshell ~/.config/fastfetch
|
||||
cp -r quickshell/* ~/.config/quickshell/
|
||||
cp -r fastfetch/* ~/.config/fastfetch/
|
||||
chmod +x ~/.config/quickshell/toggle_launcher.sh
|
||||
chmod +x ~/.config/quickshell/services/python/*.py
|
||||
```
|
||||
|
||||
### Step 4: Configure Systemd User Service
|
||||
### Step 4: Configure `~/.bashrc` to Auto-run Fastfetch
|
||||
|
||||
Ensure `fastfetch` runs on interactive terminal startup in `~/.bashrc`:
|
||||
|
||||
```bash
|
||||
grep -q "fastfetch" ~/.bashrc || echo -e "\n# Run fastfetch on terminal startup\nfastfetch" >> ~/.bashrc
|
||||
```
|
||||
|
||||
### Step 5: Configure Systemd User Service
|
||||
|
||||
Create `~/.config/systemd/user/quickshell.service`:
|
||||
|
||||
|
||||
33
fastfetch/config.jsonc
Normal file
33
fastfetch/config.jsonc
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"logo": {
|
||||
"source": "~/.config/fastfetch/hamster_cookie.txt",
|
||||
"padding": {
|
||||
"right": 4
|
||||
}
|
||||
},
|
||||
"display": {
|
||||
"color": {
|
||||
"keys": "#a7c080",
|
||||
"title": "#7fbbb3"
|
||||
}
|
||||
},
|
||||
"modules": [
|
||||
"title",
|
||||
"separator",
|
||||
"os",
|
||||
"host",
|
||||
"kernel",
|
||||
"uptime",
|
||||
"packages",
|
||||
"shell",
|
||||
"display",
|
||||
"wm",
|
||||
"terminal",
|
||||
"cpu",
|
||||
"gpu",
|
||||
"memory",
|
||||
"break",
|
||||
"colors"
|
||||
]
|
||||
}
|
||||
4
fastfetch/hamster_cookie.txt
Normal file
4
fastfetch/hamster_cookie.txt
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
(\_/)
|
||||
( •_•)
|
||||
/ >🍪 "nom nom"
|
||||
28
install.sh
28
install.sh
@ -200,10 +200,33 @@ deploy_configs() {
|
||||
chmod +x "${TARGET_CONFIG_DIR}/quickshell/services/python/"*.py 2>/dev/null || true
|
||||
fi
|
||||
|
||||
# Fastfetch Config
|
||||
if [ -d "${SCRIPT_DIR}/fastfetch" ]; then
|
||||
info "Deploying Fastfetch Hampter configuration..."
|
||||
mkdir -p "${TARGET_CONFIG_DIR}/fastfetch"
|
||||
cp -r "${SCRIPT_DIR}/fastfetch/"* "${TARGET_CONFIG_DIR}/fastfetch/"
|
||||
fi
|
||||
|
||||
success "QuickShell configuration deployed successfully!"
|
||||
}
|
||||
|
||||
# 5. Systemd User Service Setup
|
||||
# 5. Bashrc Fastfetch Setup
|
||||
setup_bashrc() {
|
||||
info "Setting up fastfetch in ~/.bashrc..."
|
||||
BASHRC_FILE="${HOME}/.bashrc"
|
||||
if [ -f "$BASHRC_FILE" ]; then
|
||||
if ! grep -q "fastfetch" "$BASHRC_FILE"; then
|
||||
echo "" >> "$BASHRC_FILE"
|
||||
echo "# Run fastfetch on terminal startup" >> "$BASHRC_FILE"
|
||||
echo "fastfetch" >> "$BASHRC_FILE"
|
||||
success "Fastfetch added to ~/.bashrc"
|
||||
else
|
||||
info "Fastfetch already present in ~/.bashrc"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# 6. Systemd User Service Setup
|
||||
setup_systemd_service() {
|
||||
info "Setting up Systemd User Service for QuickShell..."
|
||||
SERVICE_DIR="${TARGET_CONFIG_DIR}/systemd/user"
|
||||
@ -232,7 +255,7 @@ EOF
|
||||
success "Systemd user service configured!"
|
||||
}
|
||||
|
||||
# 6. Run Theme Sync Engine
|
||||
# 7. Run Theme Sync Engine
|
||||
run_initial_sync() {
|
||||
info "Triggering initial multi-app dynamic theme synchronization..."
|
||||
THEME_SYNC_SCRIPT="${TARGET_CONFIG_DIR}/quickshell/services/python/theme_sync.py"
|
||||
@ -256,6 +279,7 @@ run_initial_sync() {
|
||||
install_dependencies
|
||||
install_quickshell
|
||||
deploy_configs
|
||||
setup_bashrc
|
||||
setup_systemd_service
|
||||
run_initial_sync
|
||||
|
||||
|
||||
@ -22,6 +22,8 @@ PanelWindow {
|
||||
exclusionMode: ExclusionMode.Ignore
|
||||
color: "transparent"
|
||||
|
||||
mask: Region {}
|
||||
|
||||
implicitWidth: mainCol.implicitWidth
|
||||
implicitHeight: mainCol.implicitHeight
|
||||
|
||||
|
||||
@ -1059,6 +1059,12 @@ def sync_fastfetch(bg, surface, current_line, fg, accent, sub_accent):
|
||||
|
||||
fastfetch_jsonc = f"""{{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"logo": {{
|
||||
"source": "~/.config/fastfetch/hamster_cookie.txt",
|
||||
"padding": {{
|
||||
"right": 4
|
||||
}}
|
||||
}},
|
||||
"display": {{
|
||||
"color": {{
|
||||
"keys": "{accent}",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user