Add fetch and install scripts

- Add fetch script which fetches the current config that is used by the
  system into the git repo
- Add install script which copies the config in the repo into the config
  folder for the user
- Add waybar as config
This commit is contained in:
Thraix
2026-05-19 19:38:06 +02:00
parent e18df83174
commit aecdb34116
21 changed files with 1508 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#!/bin/bash
WAYBAR_DIR="$HOME/.config/waybar"
STYLECSS="$WAYBAR_DIR/style.css"
CONFIG="$WAYBAR_DIR/config"
ASSETS="$WAYBAR_DIR/assets"
THEMES="$WAYBAR_DIR/themes"
menu() {
find "${ASSETS}" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.gif" \) | awk '{print "img:"$0}'
}
main() {
choice=$(menu | wofi -c ~/.config/wofi/waybar -s ~/.config/wofi/style-waybar.css --show dmenu --prompt " Select Waybar (Scroll with Arrows)" -n)
selected_wallpaper=$(echo "$choice" | sed 's/^img://')
echo $selected_wallpaper
if [[ "$selected_wallpaper" == "$ASSETS/experimental.png" ]]; then
cat $THEMES/experimental/style-experimental.css > $STYLECSS
cat $THEMES/experimental/config-experimental > $CONFIG
pkill waybar && waybar
elif [[ "$selected_wallpaper" == "$ASSETS/main.png" ]]; then
cat $THEMES/default/style-default.css > $STYLECSS
cat $THEMES/default/config-default > $CONFIG
pkill waybar && waybar
elif [[ "$selected_wallpaper" == "$ASSETS/line.png" ]]; then
cat $THEMES/line/style-line.css > $STYLECSS
cat $THEMES/line/config-line > $CONFIG
pkill waybar && waybar
elif [[ "$selected_wallpaper" == "$ASSETS/zen.png" ]]; then
cat $THEMES/zen/style-zen.css > $STYLECSS
cat $THEMES/zen/config-zen > $CONFIG
pkill waybar && waybar
fi
}
main