从dotshare.it管理xresources颜色
dotcolors的Python项目详细描述
简化了xresources颜色的管理。
设置
将所有全局设置放入~/.xresources(字体、滚动条等)。这里的想法是将全局设置与颜色设置分开。所以现在dotcolors将首先从选定的主题文件加载设置,然后从~/.xresources合并全局设置。我的~/.x资源如下:
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: 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
这个接口应该是非常自解释的,除了可能的前缀。前缀是在~/.xresrouces中的几行前加的,即:
urxvt.depth: 32 urxvt.background: rgba:0000/0000/0000/bfff
默认值是“urxvt”,很容易更改,但除了urxvt,我没有测试任何其他术语/值。如果不行,告诉我。欢迎反馈。
待办事项
- 清除/重写
- 显示找到/下载的主题数:“获取主题(21/100)”