diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-10-08 04:27:32 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-10-08 04:27:32 -0500 |
| commit | 91419d70af0ca78be1677626e31942cbc411df43 (patch) | |
| tree | 3f8a16c8c55eda9731e779cfb5fa8cd9f34535c2 | |
| parent | a260faa5cc35cb6fd656e49a6235a147d80d863f (diff) | |
renamed en to enable in title.sh
| -rw-r--r-- | README.md | 2 | ||||
| -rwxr-xr-x | src/title.sh | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -25,7 +25,7 @@ This is made for me so its complicated to use. Do NOT cd bin then run ``chatloop``. Always have cd in this directory. -Set ``en=1`` in ``src/title.sh`` if you want song titles and artist name to display. Requires playerctl with mpris. +Set ``enable=1`` in ``src/title.sh`` if you want song titles and artist name to display. Requires playerctl with mpris. There is also ``bin/type`` to just send text to the chat box. diff --git a/src/title.sh b/src/title.sh index e83d91c..c6e9454 100755 --- a/src/title.sh +++ b/src/title.sh @@ -8,8 +8,8 @@ echo "$status" | grep Paused > /dev/null && output="♫⏸️ " echo "$status" | grep Stopped > /dev/null && output="♫⏹️ " # set to 1 to enable song title and artist name -en=0 -if [ $en = 1 ]; then +enable=0 +if [ $enable = 1 ]; then title="$(playerctl metadata title)" artist="$(playerctl metadata artist)" if [ "$artist" ]; then |
