Skip to content

Xresources or Arch system color variables

Currently I am setting up my arch install and the time has come to make some last tweaks and so on. My question is: Is it possible to use the colors defined in the .Xresources file and use them to colorize my conky status bar? I want to be able to only change the colors in my .Xresources, and the colors in the bar to change with that too. Are there global color variables that are affected by this? For instance vim does change colors with my .Xresources file. Urxvt is also affected by this as you may know.

2 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
36976n

Author

2
posts
23
comments
1
media
View profile

10 comments

I have yet to see a script applying colors globally for all applications and window managers. Btw, how do you make vim use the colors from Xresources? I've been trying for days.

3 points

I believe vim is using the colors from the terminal it's run in.

1 points

How would that work? Vim is an independent application. I don't believe this functionality exists by design

1 points

Check base16-shell and base16-xresources to see how they're structured (also, they're great color schemes!), I haven't tested vim with only those, because I also have the base16 vim plugin but I guess it should work.

1 points

For me it just takes the colors from the .Xresources. I have the colors specified as *color0 - *color7 for the lighter colors and *color8 - *color15 for the darker versions. So for example the dark red is: *color1: #cc241d

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.