update waybar to catppuccin macchiato
This commit is contained in:
18
scripts/firefox-status.sh
Executable file
18
scripts/firefox-status.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
STATUS="$(playerctl -p firefox status)"
|
||||
|
||||
if [ -z "$STATUS" ] || [ "$STATUS" = "Stopped" ]; then
|
||||
exit 0
|
||||
elif [ "$STATUS" = "Paused" ]; then
|
||||
STATUS=" "
|
||||
elif [ "$STATUS" = "Playing" ]; then
|
||||
STATUS=" "
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
TITLE="$(playerctl -p firefox metadata title)"
|
||||
ARTIST="$(playerctl -p firefox metadata artist)"
|
||||
|
||||
printf "%s\n" "$STATUS$TITLE - $ARTIST"
|
||||
Reference in New Issue
Block a user