diff options
Diffstat (limited to 'widgets/command_output')
-rw-r--r-- | widgets/command_output/README | 5 | ||||
-rwxr-xr-x | widgets/command_output/command | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/widgets/command_output/README b/widgets/command_output/README new file mode 100644 index 00000000..f73a0326 --- /dev/null +++ b/widgets/command_output/README @@ -0,0 +1,5 @@ +This widget is for an own command +The command "command" will be executed every time the widget is drawn, so please keep it short and fast. +The command have to provide two output files: "title" and "output". +"title" is the title of the Widget. +The "output" file is read line by line. And every line is drawn without wrap the lines if they are to long. diff --git a/widgets/command_output/command b/widgets/command_output/command new file mode 100755 index 00000000..03b12b23 --- /dev/null +++ b/widgets/command_output/command @@ -0,0 +1,6 @@ +#!/bin/bash + +echo "MyTitle" > title + +echo "output line 1" > output +echo "output line 2" >> output |