Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

manage Xresources colors from dotshare.it

Project Description

Simplifies managing Xresources colors.

Setup

Put all global settings in ~/.Xresources (fonts, scrollbars, etc). The idea here is to separate global settings from color settings. So now dotcolors will first load settings from whichever theme file is selected, then merge global settings from ~/.Xresources. My ~/.Xresources looks like this:

urxvt.font:xft:Menlo for Powerline:regular:size=12:antialias=true:hinting=true
urxvt.scrollBar: false
urxvt.cursorBlink:1
urxvt.iconFile: /usr/share/icons/custom/terminal_icon.png
urxvt.perl-ext-common:default,matcher,fullscreen,vtwheel
urxvt.perl-ext:default,url-select
urxvt.urlLauncher:firefox
urxvt.matcher.button:1
urxvt.keysym.C-Delete:perl:matcher:last
urxvt.keysym.M-Delete:perl:matcher:list
urxvt.keysym.M-u:perl:url-select:select_next
urxvt.keysym.F11:perl:fullscreen:switch
urxvt.underlineURLs:true
urxvt.tabbed.tabbar-fg: 2
urxvt.tabbed.tabbar-bg: 0
urxvt.tabbed.tab-fg:3
urxvt.tabbed.tab-bg:0
urxvt.loginShell:true
xpdf.viKeys: true
xpdf.initialZoom: width

Usage

Usage: dotcolors

dotcolors [-h]
dotcolors [-s] [(-r <per_page>)] [-t]
dotcolors [(-s <limit>)] [(-r <per_page>)] [-t]
dotcolors [--setup]

-h --help     Display this screen

-s --sync     Download themes, optionally limit the
               number of themes downloaded with <limit>,
               default=all

--setup       create default directorie and config

-r --results  Number of results to display per page

-t --test     Apply changes without writing to file

The interface should be pretty self explanatory except for maybe prefix. The prefix is what gets prepended to a couple lines in ~/.Xresrouces i.e.:

urxvt.depth:        32
urxvt.background:   rgba:0000/0000/0000/bfff

The default is ‘urxvt’, and it can easily be changed but I haven’t tested any other terms/values except urxvt. If it doesn’t work, let me know. Feedback is appreciated.

TODO

  • cleanup / rewrite
  • show number of themes found/downloading: “Fetching theme (21/100)”

Release History

This version
History Node

0.4.1

History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
dotcolors-0.4.1.tar.gz
(7.4 kB) Copy SHA256 Hash SHA256
Source None Nov 16, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting