mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 14:19:43 +00:00
Merge pull request #6 from thytom/spacingfixed
Spacing fixed in many modules.
This commit is contained in:
commit
ffc3c2ea0a
3 changed files with 10 additions and 10 deletions
|
@ -5,20 +5,20 @@ PREFIX_PAUSE=' '
|
|||
|
||||
get_mpd()
|
||||
{
|
||||
current_song=$(mpc current)
|
||||
current_song="$(mpc current)"
|
||||
|
||||
if [[ "$current_song" = "" ]]; then
|
||||
exit 0
|
||||
else
|
||||
playpause=$(mpc | awk '/\[.*]/{split($0, a, " "); print a[1]}')
|
||||
if [[ "$playpause" = "[playing]" ]]; then
|
||||
current_song=$PREFIX_PLAY$current_song
|
||||
current_song="$PREFIX_PLAY $current_song"
|
||||
elif [[ "$playpause" = "[paused]" ]]; then
|
||||
current_song=$PREFIX_PAUSE$current_song
|
||||
current_song="$PREFIX_PAUSE $current_song"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo $current_song
|
||||
echo "$current_song"
|
||||
}
|
||||
|
||||
get_mpd
|
||||
|
|
Loading…
Reference in a new issue