• This repository has been archived on 05/Jan/2024
  • Stars
    star
    133
  • Rank 272,600 (Top 6 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 12 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Color themes for Xresources aware terminals.

Build Status

About

This is the source code that powers xcolors.net. Xcolors.net is a color theme directory for terminals that support color configuration through X resources. It provides a visual presentation of the themes and will hopefully grow over time with help from the community :).

How to use these themes

Download and use the #include directive in your .Xdefaults or .Xresources files. Then load/reload using the xrdb utility. For more information see here.

E.g.:

#include "<path/to/theme>/rezza"

Contribute

  1. Fork the xcolors repository.

  2. Add your theme file(s) in the themes folder found in the project's root directory.

  3. Commit your changes.

  4. If you make changes to the source code make sure the tests are green.

  5. Make a pull request (make sure you are not on Master branch)

  6. Changes will show at the xcolors site as soon as the PR is merged to the master branch.

  7. You make it to the hall of fame.

Supported formats

Both files using rgb *color0: rgb:19/19/19 and hash *color0: #2e3436 notation are supported. Lines starting with URxvt* and URxvt. are also supported.

Supported keywords

Keywords: *color (from 0 to 15), *background, and *foreground are supported. Everything else is ignored.

How this works

Xcolors.net is powered by Flask, the Python micro-framework and is hosted at Heroku. Only the master branch of this repository is deployed at heroku, so this branch should reflect the website contents/state.

With each push to heroku and before the Flask framework fires-up, a bit of python magic happens. The files (themes) that reside in the themes folder of the root directory are parsed. Then, for each theme file, a corresponding html file is generated using the Jinja2 engine in the templates/xcolors folder. These files are imported later by the templates/index.html template, when the main page is requested.

Local install

Navigate in the project's root directory and create the python virtual environment using mkvirtualenv:

$ mkvirtualenv -p /path/to/pyhon2 xcolors

Then activate it:

$ workon xcolors

Intall dependencies using pip:

$ pip install -r requirements.txt

Run using python xcolors.py or better use heroku's foreman which will honor the Procfile contents.

$ foreman start

Run the tests with:

$ python -m unittest discover

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 3 of the License.

A copy of theGNU General Public License can be found in GNU Licence Page

More Repositories

1

bash-spinner

Display a small progress spinner in bash while running your commands
Shell
152
star
2

jinja2-highlight

Jinja2 extension to highlight source code using Pygments
Python
30
star
3

wigiki

Static html wiki generator using Github's Gistsโ„ข as pages
Python
10
star
4

line-coding

Matlab functions that emulate popular line coding techniques
MATLAB
6
star
5

sensors-test-android

Small app to show Accelerometer/Magnetometer data, useful for testing
Java
5
star
6

webpacker_uploader

Upload webpack(-er) generated assets to the cloud
Ruby
5
star
7

sphinx-serve

Spawns a simple HTTP server to preview your sphinx documents
Python
3
star
8

dotfiles_linux

my dotfiles and scripts
Vim Script
3
star
9

sql_injection_matcher

A ruby gem to detect if a string is used for SQL injection purposes
Ruby
2
star
10

utils-scripts

~/bin script collection for everyday use
Shell
2
star
11

ipsum-blocker-rb

Simple, zero-dependencies ruby script to block IPs using ipsum lists
Ruby
2
star
12

latex-skel

Latex skeleton files
1
star
13

chop

url shortener using sinatra+redis
Ruby
1
star
14

baisho

A bash wrapper over dd and cdrkit to burn/rip iso images
Shell
1
star
15

ignore

Quick access to .gitignore templates from github/gitignore using the github API
Python
1
star
16

pkgbuilds

Arch Linux PKGBUILDs
Shell
1
star
17

incident-locator-android

Android client for an incident locator service - part of my thesis
Java
1
star
18

wigiki-theme-bootstrap

1
star
19

omup

console-based ompldr.org uploader Note: ompldr.org is unfortunatelly dead so I don't maintain omup anymore
Python
1
star
20

manga-parser

parse mangafox for manga info
Python
1
star
21

tzconv

A small python script to convert time between timezones
Python
1
star
22

thesis-latex-template

Latex template files I used for my master thesis
Python
1
star
23

ipz

Simple Node.js app that shows your IP/hostname and can speak json
JavaScript
1
star
24

cwks

Courseworks and learning projects from the crypt
C
1
star
25

dropbox-autoindex

Small and simple utility that automates index generation for dropbox public folder
Python
1
star
26

namcap

local development repo of namcap
Python
1
star
27

darui

Parses rss feeds and emails entries matched against supplied keywords
Python
1
star