You are not logged in.
I want to make everything in my terminal (urxvt) transparent. Not just the background, but all colors (for instance when I run vim I want transparency without just setting my background color to nothing, so e.g. highlighted text is still transparent).Therefore in my ~.Xresources files I define the 16 colors (trying out the Solarized theme) using
#define S_base03 [90]#002b36
#define S_base02 [90]#073642
#define S_base01 [90]#586e75
#define S_base00 [90]#657b83
#define S_base0 [90]#839496
#define S_base1 [90]#93a1a1
#define S_base2 [90]#eee8d5
#define S_base3 [90]#fdf6e3
#define S_yellow [90]#b58900
#define S_orange [90]#cb4b16
#define S_red [90]#dc322f
#define S_magenta [90]#d33682
#define S_violet [90]#6c71c4
#define S_blue [90]#268bd2
#define S_cyan [90]#2aa198
#define S_green [90]#859900
*background: S_base03
*foreground: S_base00
*fading: 40
*fadeColor: S_base03
*cursorColor: S_base1
*pointerColorBackground:S_base01
*pointerColorForeground:S_base1
!! black dark/light
*color0: S_base02
*color8: S_base03
!! red dark/light
*color1: S_red
*color9: S_orange
!! green dark/light
*color2: S_green
*color10: S_base01
!! yellow dark/light
*color3: S_yellow
*color11: S_base00
!! blue dark/light
*color4: S_blue
*color12: S_base0
!! magenta dark/light
*color5: S_magenta
*color13: S_violet
!! cyan dark/light
*color6: S_cyan
*color14: S_base1
!! white dark/light
*color7: S_base2
*color15: S_base3where all my colors have "[90]" before them to indicate transparent (to urxvt).
This seems to work great, however whenever I use vim I get an error (usually after quitting):
Warning: Color name "[90]#002b36" is not definedwhich seems to be due to the fact that the color is passed to and used by vim, but vim doesn't understand the "[90]" syntax.
So my question: is there a better way to get full transparency incorporated into all colors without getting errors when other programs try to parse the actual color values?
Edit: Forgot to mention, I'm only interested in "true" transparency as I need to be able to see/read windows behind the terminal (I currently use xcompmgr under openbox, but I don't care what compositor I use so long as it's lightweight and works).
Last edited by punk_physicist (2016-02-11 00:40:56)
Offline
Not a Sysadmin issue, moving to NC...
Offline
My mistake, thanks for fixing.
Offline
Ah ... you shouldn't try defining transparent *colors* if you are running true transparency with a compositor. Just use normal colors, and set your compositor to render that window with a 0.9 alpha value. The window (and everything rendered in it including text) will then have a 0.9 alpha.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Ah ... you shouldn't try defining transparent *colors* if you are running true transparency with a compositor. Just use normal colors, and set your compositor to render that window with a 0.9 alpha value. The window (and everything rendered in it including text) will then have a 0.9 alpha.
Can this be done without making the window decoration (window border and titlebar) transparent? Because I only want the content within the terminal window itself transparent (if possible).
Offline
Ah, no, sorry - I didn't think about that. I haven't had window "decoration" for quite a long time and tend to overlook it.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline