Skip to content

Commit

Permalink
Fixed waybar not recognizing output json
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikReider committed Jan 11, 2022
1 parent 6a88d46 commit 76dfdfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ void Data::printWayBar(bool activeSink, bool activeSource) {
text += str;
}
if (text.empty()) text = "none";
printf(
"{\"text\": \"\", \"alt\": \"%s\", \"tooltip\": \"\", \"class\": "
"\"%s\"}\n",
text.c_str(), text.c_str());
cout << "{\"text\": \"\", \"alt\": \"" + text +
"\", \"tooltip\": \"\", \"class\": "
"\"" +
text + "\"}" << endl;
}

0 comments on commit 76dfdfb

Please sign in to comment.