fix waybar

This commit is contained in:
2025-10-11 00:27:21 -07:00
parent d8f8d4425b
commit 9933e7a7f2
2 changed files with 2 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ if [ -z "$PLAYER" ]; then
exit 1
fi
STATUS="$(playerctl -p "$PLAYER" status 2>/dev/null)"
STATUS="$(playerctl -sp "$PLAYER" status)"
case "$STATUS" in "" | "Stopped")
exit 0

View File

@@ -2,6 +2,7 @@
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 zscroll
killall waybar
fi