在外面也有类似的问题,但是,我无法找出.xinitrc文件中导致.Xresources未加载的缺陷。各自的.xinitrc
#!/bin/sh
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
exec startxfce4相应的DE是xfce4,不使用登录管理器(仅使用startx),运行在arch上。我读过维基和帖子,似乎什么也解决不了这个问题.
.Xresources文件
#define _background #272822
#define _color8 #303030
#define _foreground #d0d0d0
#define _color9 #ff0090
#define _color2 #66AA11
#define _color10 #80FF00
#define _color3 #c47f2c
#define _color11 #ffba68
#define _color4 #30309b
#define _color12 #5f5fee
#define _color5 #7e40a5
#define _color13 #bb88dd
#define _color6 #3579A8
#define _color14 #4eb4fa
#define _color7 #9999AA
#define _color15 #ffffff
xterm*background: _background
xterm*foreground: _foreground
xterm*cursorColor: _foreground
xterm*color0: _background
xterm*color1: _foreground
xterm*color2: _color2
xterm*color3: _color3
xterm*color4: _color4
xterm*color5: _color5
xterm*color6: _color6
xterm*color7: _color7
xterm*color8: _color8
xterm*color9: _color9
xterm*color10: _color10
xterm*color11: _color11
xterm*color12: _color12
xterm*color13: _color13
xterm*color14: _color14
xterm*color15: _color15发布于 2016-07-18 13:59:16
问题是.Xresources文件中的语法不正确。#define语法似乎不起作用,因此使用十六进制代码直接解决了这个问题。举个例子:
*.foreground: #ababab
*.background: #000000
*.cursorColor: #ababab发布于 2020-12-23 00:57:33
资源存储在X服务器中,因此只能读取一次。远程X11客户端(如通过SSH转发的客户端)也可以访问它们。加载资源文件(如常规.Xresources),替换任何当前设置:
xrdb ~/.Xresources请参阅:ArchWiki的X资源
https://unix.stackexchange.com/questions/296355
复制相似问题