Giter VIP home page Giter VIP logo

homepage.py's Introduction

homepage.py

homepage generator

Author: Ondrej Kipila <ok100 at openmailbox dot org>
Version: git
Manual section:1

SYNOPSIS

homepage.py [-h] [-c file] [-o directory]

DESCRIPTION

homepage.py is a basic homepage generator.

OPTIONS

-h, --help
Show help message and exit.
-c, --config-file file
Change the configuration file of homepage.py from default $HOME/.config/homepage/homepage.conf to file.
-o, --output-dir directory
Change the output directory of homepage.py from default $HOME to directory. Two files will be created in this directory: homepage.html and style.css.

CONFIGURATION OPTIONS

Default path to the configuration file is $HOME/.config/homepage/homepage.conf.

Configuration file with default options would look like this:

import os
from collections import OrderedDict

output_dir = os.environ['HOME']
title = 'Speed Dial'
font = ('Monospace', '12pt')
separator = '>'
colors = (
    '#020202',  # background
    '#999999',  # links
    '#B3B3B3',  # group title
    '#4C4C4C',  # separator
)
links = OrderedDict([
    ('search', [
        ['google', 'https://www.google.com/'],
        ['duckduckgo', 'http://duckduckgo.com/'],
        ['startpage', 'https://startpage.com/'],
    ]),
    ('media', [
        ['youtube', 'http://www.youtube.com/'],
    ]),
    ('foo', [
        ['wikipedia', 'http://en.wikipedia.org/wiki/Main_Page'],
        ['wallbase', 'http://wallbase.cc/home'],
    ])
])

Options

output_dir (type: string)
Output directory.
title (type: string)
Page title.
font (type: tuple)
Font. First element is font name (string), second element is font size (string).
separator (type: string)
Separator between group title and links.
colors (type: tuple)
Colors. Consists of four string elements: background, links, group title, separator.
links (type: OrderedDict)
Links (see example configuration file above).

homepage.py's People

Contributors

bbenne10 avatar klausborges avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.