Skip to content

Instantly share code, notes, and snippets.

View apkostka's full-sized avatar

Andrew Kostka apkostka

View GitHub Profile
#!/bin/sh
player_status=$(playerctl status 2> /dev/null)
if [ "$player_status" = "Playing" ]; then
echo "$(playerctl metadata artist) - $(playerctl metadata title)"
elif [ "$player_status" = "Paused" ]; then
echo "Paused - $(playerctl metadata artist) - $(playerctl metadata title)"
else
echo "#3"