From a4cfb3c53d7c5dbd7904ccacb1c3f65773ef0c6f Mon Sep 17 00:00:00 2001 From: Martin Schirrmacher Date: Sun, 9 Nov 2014 16:49:57 +0100 Subject: add main menu widgets --- widgets/command_output/README | 5 +++++ widgets/command_output/command | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 widgets/command_output/README create mode 100755 widgets/command_output/command (limited to 'widgets/command_output') 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 -- cgit v1.2.3