initial dotfiles setup
Profile-based dotfiles with switchable color themes. Structure: profiles/ with themes/ and config/ per profile.
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
THEME=$(basename "$(readlink "$HOME/.active_theme" 2>/dev/null)" 2>/dev/null || echo "unknown")
|
||||
echo "$THEME" > ~/.cache/wal/current-theme
|
||||
|
||||
python3 ~/.config/wal/generate.py
|
||||
|
||||
# Symlinks (harmless to repeat)
|
||||
ln -sf ~/.cache/wal/colors-hypr.conf ~/.config/hypr/colors.conf
|
||||
ln -sf ~/.cache/wal/waybar-style.css ~/.config/waybar/style.css
|
||||
ln -sf ~/.cache/wal/wofi-style.css ~/.config/wofi/style.css
|
||||
|
||||
# Apply Hyprland colors without full reload
|
||||
bash ~/.cache/wal/hypr-apply.sh
|
||||
|
||||
# Restart waybar
|
||||
pkill waybar; sleep 0.3; waybar &disown
|
||||
|
||||
# Switch wallpaper only if it changed
|
||||
WALLPAPER=$(cat ~/.cache/wal/wallpaper 2>/dev/null)
|
||||
PREV=$(cat ~/.cache/wal/wallpaper-active 2>/dev/null)
|
||||
if [[ -n "$WALLPAPER" && "$WALLPAPER" != "None" && -f "$WALLPAPER" && "$WALLPAPER" != "$PREV" ]]; then
|
||||
awww img "$WALLPAPER" --transition-type fade
|
||||
echo "$WALLPAPER" > ~/.cache/wal/wallpaper-active
|
||||
fi
|
||||
Reference in New Issue
Block a user