Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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)”

Project details


Release history Release notifications

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 Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page