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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java使Eclipse在其控制台中显示最顶层的异常,而不是完整的堆栈跟踪   java如何为一个组件提供多个DropTargetListener?   在Eclipse包资源管理器中,有些文件不可见?   java在Spring Boot中使用@Bean配置设置类属性的默认值   在JTextPane中使用#链接的Java HTML?   java当应用程序打开时,如何将通知内容发送给活动?   java Android ROOM如何编写包含多个实体的查询,这是在哪里完成的?   Play Framework的java登录/注销问题?   java如何从安卓 Cordova/Phonegap调用javascript函数   JavaFX8如何在Java8中显示上次修改的LocalDateTime?   javabean验证中的多个约束注释   java使用JSTL设置请求属性   java在Android启动的服务中调用函数   用于检查xml是否包含键和值的java XPath表达式   在java游戏中使用斜坡因子挥杆   Java文件:尝试使用FileWriter将结果附加到已经存在的文件中   bootclasspath Java Xbootclasspath,相对路径   java我如何让这个“怪物战斗模拟器”工作?   swing使用动作侦听器隐藏和显示java桌面应用程序