summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2014-05-01 14:22:15 +0200
committerKevin Chabowski <kevin@kch42.de>2014-05-01 14:33:15 +0200
commit500af457c12a8c11c4b32301f6ab324248c4ccaa (patch)
treefdb4c474e6cc0e8717cee4edac875faefdb0f1f6 /README.markdown
parentac3aafafeef06bc38d1b980807786e2558edb2cb (diff)
downloadstartpage-500af457c12a8c11c4b32301f6ab324248c4ccaa.tar.gz
startpage-500af457c12a8c11c4b32301f6ab324248c4ccaa.tar.bz2
startpage-500af457c12a8c11c4b32301f6ab324248c4ccaa.zip
Introduced new config file format
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown24
1 files changed, 14 insertions, 10 deletions
diff --git a/README.markdown b/README.markdown
index 346d386..ccf2d1c 100644
--- a/README.markdown
+++ b/README.markdown
@@ -9,22 +9,26 @@ A simple start page with a background image from [/r/EarthPorn](http://www.reddi
## Configuration
-startpage uses two files in your home directory for configuration:
+The startpage configuration is located in the file ~/.startpagerc. It is a list of commands. A command has a name and can optionally have parameters separated by spaces or tabs. A backspace `\\` will interpret the next charcter literally (can be used to escape whitespace, linebreaks and backspaces). Commands are separated by newlines.
-### ~/.startpage-urls
+These commands are implemented:
-This describes the hyperlinks that are displayed on the startpage. A list of key-value-pairs. Each line is such a pair. Key and value are separated with `->`. The key is the title of the link, the value the URL.
+### `set-weather-place`
-Example:
+Takes one argument, the place used for weather info. startpage uses [yr.no](http://www.yr.no) to get weather data. Use the search box on that page to search for your place. You will then be redirected to an URL like this: `http://www.yr.no/place/<myplace>`. Put the `<myplace>` part after the `set-weather-place` command like this:
+
+ set-weather-place <myplace>
- github -> http://www.github.com
- reddit -> http://www.reddit.com
- go -> http://www.golang.org
- example -> http://www.example.org
+### `add-link`
-### ~/.startpage-weather
+Add a link that is displayed on the startpage. First argument is the title, second one the URL.
+
+Example:
-The place for the weather is stored here. startpage uses [yr.no](http://www.yr.no) to get weather data. Use the search box on that page to search for your place. You will then be redirected to an URL like this: `http://www.yr.no/place/<myplace>`. Put the `<myplace>` part into the `.startpage-weather` file.
+ add-link github http://www.github.com
+ add-link reddit http://www.reddit.com
+ add-link go http://www.golang.org
+ add-link another\ example http://www.example.org
## Running