diff options
author | Dennis Vesterlund <dennisvesterlund@gmail.com> | 2019-02-21 15:34:32 +0100 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2019-02-21 15:34:32 +0100 |
commit | 9b5f6ae5f460c8642286cf174751a317f155d043 (patch) | |
tree | 802a6ca40521ffddffe91fcab5d4a50f67fdd8f2 /testcases/025-file-contents/i3status.conf | |
parent | 9d28a661a72cd118448e92c30a35b98100aa57bf (diff) |
Added function to print content from file (#331)
Added a function to print file contents to status bar without newlines.
Added tests for print file contents function
Added manpage entry for file contents
Diffstat (limited to 'testcases/025-file-contents/i3status.conf')
-rw-r--r-- | testcases/025-file-contents/i3status.conf | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testcases/025-file-contents/i3status.conf b/testcases/025-file-contents/i3status.conf new file mode 100644 index 0000000..26646cd --- /dev/null +++ b/testcases/025-file-contents/i3status.conf @@ -0,0 +1,14 @@ +general { + output_format = "none" +} + +order += "read_file EXISTING" +order += "read_file NONEXISTANT" + +read_file EXISTING { + path = "testcases/025-file-contents/short.txt" +} + +read_file NONEXISTANT { + path = "testcases/025-file-contents/nonexistant" +} |