aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-10-08 04:27:32 -0500
committericeyrazor <iceyrazor@mailfence.com>2026-10-08 04:27:32 -0500
commit91419d70af0ca78be1677626e31942cbc411df43 (patch)
tree3f8a16c8c55eda9731e779cfb5fa8cd9f34535c2
parenta260faa5cc35cb6fd656e49a6235a147d80d863f (diff)
renamed en to enable in title.sh
-rw-r--r--README.md2
-rwxr-xr-xsrc/title.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 7b8dd2b..89450c4 100644
--- a/README.md
+++ b/README.md
@@ -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