19 lines
487 B
Bash
Executable file
19 lines
487 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# This script is meant to be set in cmus' `status_display_program`.
|
|
# This script will be called by cmus and will send the
|
|
# status to other programs (e.g. statusupdatectl)
|
|
|
|
# put values from cmus into their own variables
|
|
# TODO: hack
|
|
while test $# -ge 2
|
|
do
|
|
eval _$1='$2'
|
|
shift
|
|
shift
|
|
done
|
|
if [ -z "${_title}" -o "${_status}" = "paused" ]; then
|
|
statusupdatectl "set_media_name::"
|
|
else
|
|
statusupdatectl "set_media_name::${_artist} - ${_title}"
|
|
fi
|