Skip to content

Commit

Permalink
Rename count_lines to line
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed Aug 20, 2018
1 parent f9585b9 commit c41fc42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py3status/modules/external_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
(default False)
Format placeholders:
{line} number of lines in the output
{output} output of script given by "script_path"
{count_lines} number of lines in the output
i3status.conf example:
Expand Down Expand Up @@ -86,7 +86,7 @@ def external_script(self):
output_text = ''

response['full_text'] = self.py3.safe_format(
self.format, {'output': output_text, 'count_lines': len(output_lines)})
self.format, {'output': output_text, 'line': len(output_lines)})
return response

def on_click(self, event):
Expand Down

0 comments on commit c41fc42

Please sign in to comment.