From 500af457c12a8c11c4b32301f6ab324248c4ccaa Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Thu, 1 May 2014 14:22:15 +0200 Subject: Introduced new config file format --- README.markdown | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'README.markdown') 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/`. Put the `` part after the `set-weather-place` command like this: + + set-weather-place - 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/`. Put the `` 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 -- cgit v1.2.3-70-g09d2