- Wrote entire dwm-flexipatch build as org document - Moved README and README.md into README.org - Setup keybindings, colors, etc. for dwm-flexipatch
19 lines
633 B
Bash
Executable File
19 lines
633 B
Bash
Executable File
#!/bin/bash
|
|
mediaStatus=$(playerctl --player=playerctld metadata 2>&1)
|
|
|
|
if [[ "$mediaStatus" == "No player could handle this command" ]]; then
|
|
echo " N/A"
|
|
else
|
|
artist=$(playerctl --player=playerctld metadata --format '{{ artist }}')
|
|
title=$(playerctl --player=playerctld metadata --format '{{ title }}')
|
|
status=$(playerctl --player=playerctld metadata --format '{{ status }}')
|
|
|
|
if [[ $status == "Paused" ]]; then
|
|
status_icon=" "
|
|
elif [[ $status == "Playing" ]]; then
|
|
status_icon=" "
|
|
fi
|
|
|
|
echo "$status_icon $artist - $title"
|
|
fi
|