summaryrefslogtreecommitdiff
path: root/README.markdown
blob: aa87dbbaebbf4d5665208f5baa8a8c07814fed96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
A simple start page with a background image from a subreddit ([/r/EarthPorn](http://www.reddit.com/r/earthporn) by default), weather from [yr.no](http://www.yr.no) and customizable links.

## Screenshot
![Screenshot](http://i.imgur.com/u42QOZe.png)

## Installation

`go get github.com/silvasur/startpage`

## Configuration

The optional startpage configuration is a JSON file located at `~/.config/startpage/config.json`.

Here is an example with all fields filled out.

    {
        // The place for which to get the weather data. If omitted, no weather will be shown
        "WeatherPlace": "Germany/Hamburg/Hamburg",

        // A list of links to show. Can be omitted.
        "Links": [
            {
                "Title": "example",
                "URL": "https://www.example.com"
            }
        ],

        // If set, background images can be saved here
        "BackgroundSavepath": "/home/laria/Pictures/cool-backgrounds",

        // If set, this limits the background image size, the default is DEFAULT_BACKGROUND_MAXDIM (=2500)
        "BackgroundMaxdim": 4000,

        // Get background images from this subreddit. Defaults to "EarthPorn"
        "ImageSubreddit": "ruralporn"
    }

## Running

If `$GOPATH/bin` is in your `$PATH`, you can run startpage with the command `startpage`. By default, startpage listens on port 25145. You can change that with a command line switch: `startpage -laddr :<port>`