update waybar scripts

This commit is contained in:
2025-03-18 20:07:55 -07:00
parent b931f47e07
commit 8e19d89ba2
5 changed files with 38 additions and 7 deletions

View File

@@ -6,5 +6,14 @@ if pgrep -af "waybar -c /home/sudacode/.config/waybar/catppuccin-macchiato/confi
fi
BASE_DIR="$HOME/.config/waybar/catppuccin-macchiato"
NODE_NAME="$(hyprctl systeminfo | grep -i "node name" | sed 's/Node name: //')"
waybar -c "$BASE_DIR/config-battery.jsonc" -s "$BASE_DIR/style.css" &>/dev/null &
if [[ "$NODE_NAME" = "sc-arch" ]]; then
CONFIG="$BASE_DIR/config.jsonc"
else
CONFIG="$BASE_DIR/config-laptop.jsonc"
fi
waybar -c "$CONFIG" -s "$BASE_DIR/style.css" &>/dev/null &