scripts/waybar/reload-waybar
2025-03-17 01:03:15 -07:00

11 lines
494 B
Bash
Executable File

#!/bin/sh
if pgrep -af "waybar -c /home/sudacode/.config/waybar/catppuccin-macchiato/config-battery.jsonc -s /home/sudacode/.config/waybar/catppuccin-macchiato/style.css" ||
pgrep -af "waybar -c /home/sudacode/.config/waybar/catppuccin-macchiato/config.jsonc -s /home/sudacode/.config/waybar/catppuccin-macchiato/style.css"; then
killall waybar
fi
BASE_DIR="$HOME/.config/waybar/catppuccin-macchiato"
waybar -c "$BASE_DIR/config-battery.jsonc" -s "$BASE_DIR/style.css" &>/dev/null &