View previous topic :: View next topic |
Author |
Message |
ExecutorElassus Veteran
Joined: 11 Mar 2004 Posts: 1435 Location: Berlin, Germany
|
Posted: Wed May 26, 2021 5:25 am Post subject: urxvt loses transparency after recent update |
|
|
I'm running urxvt under FVWM, and haven't changed its config in probably a decade. It's always had functional (fake) transparency, but a recent update has it with just a black background now.
Here is my .Xresources file:
Code: | !! X resources used in FVWM-Crystal project (http://fvwm-crystal.berlios.de/)
! Written by: Maciej Delmanowski <harnir@post.pl>
! Put this file as ~/.Xresources in your home directory
! ===========================================================================
! XTerm resources
! Look similar to the Linux Console
! ---------------------------------------------------------------------------
XTerm*background: black
XTerm*foreground: white
XTerm*cursorColor: yellow
XTerm*Title: XTerm
XTerm*scrollBar: true
XTerm*saveLines: 35000
aterm*transpscrollbar:true
XTerm*utf8: 1
! ==========================================================================
! rxvt-unicode resources
!
! replacement for aterm (dead since 2008)
!-*-{ Xft settings
Xft.dpi: 94
Xft.antialias: True
Xft.hinting: Full
Xft.RGBA "rgb"
URxvt.scrollstyle: plain
urxvt*transparent: true
urxvt*saveLines: 65535
URxvt*urgentOnBell: true
!-*-}
! =========================================================================
! Fonts for different resolutions and character encodings
! By default English encoding is set. How to set different encodings:
! - Polish encoding: apply "-iso8859-2" at the end of the font string
! ---------------------------------------------------------------------------
! Englsh encoding
! 640x480
!XTerm*font: -misc-fixed-medium-r-normal-*-12-*
! 800x600
!XTerm*font: -misc-fixed-medium-r-normal-*-13-*
! 1024x768
xterm*font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
! 1152x864
!XTerm*font: -misc-fixed-medium-r-normal-*-14-*
! 1280x1024
!XTerm*font: -misc-fixed-medium-r-normal-*-18-*
! Colors similar to those used in Linux Console (ttyX)
! ---------------------------------------------------------------------------
XTerm*color0: rgb:0/0/0
XTerm*color1: rgb:cc/00/00
XTerm*color2: rgb:00/cc/00
XTerm*color3: #bd5e01
XTerm*color4: rgb:00/00/cc
XTerm*color5: rgb:cc/00/cc
XTerm*color6: rgb:00/cc/cc
XTerm*color7: rgb:aa/aa/aa
XTerm*color8: rgb:33/33/33
XTerm*color9: rgb:ff/00/00
XTerm*color10: rgb:00/ff/00
XTerm*color11: rgb:ff/ff/00
XTerm*color12: rgb:00/00/ff
XTerm*color13: rgb:ff/00/ff
XTerm*color14: rgb:00/ff/ff
XTerm*color15: rgb:ff/ff/ff
! Default XTerm colors
! ---------------------------------------------------------------------------
!XTerm*color0: black
!XTerm*color1: red3
!XTerm*color2: green3
!XTerm*color3: brown
!XTerm*color4: blue3
!XTerm*color5: magenta3
!XTerm*color6: cyan3
!XTerm*color7: gray90
!XTerm*color8: gray30
!XTerm*color9: red
!XTerm*color10: green
!XTerm*color11: yellow
!XTerm*color12: blue
!XTerm*color13: magenta
!XTerm*color14: cyan
!XTerm*color15: white
! Specific settings for QuakeConsole (Alt+`), to get better effect
! ---------------------------------------------------------------------------
! 800x600
!QuakeConsoleNeedsUniqueName*internalBorder: 0
! 1024x768
!QuakeConsoleNeedsUniqueName*internalBorder: 0
! 1152x864
!QuakeConsoleNeedsUniqueName*internalBorder: 1
! 1280x1024
!QuakeConsoleNeedsUniqueName*internalBorder: 0
! ===========================================================================
! Aterm resources
! Aterm can use XTerm's resources, so look also in there
! Here are only settings specific to Aterm
! Aterm supports transparency, so it's turned on by default
! ---------------------------------------------------------------------------
Aterm.transparent: true
Aterm.shading: 30
! Specific settings for Aterm-based QuakeConsole
! ---------------------------------------------------------------------------
! 1152x864
!QuakeConsoleNeedsUniqueName*font: -misc-fixed-medium-r-normal-*-12-*
! 1280x1024
!QuakeConsoleNeedsUniqueName*font: -misc-fixed-medium-r-normal-*-14-*
! ===========================================================================
! mrxvt resources
! mrxvt can use XTerm's resources, so look also in there
! Here are only settings specific to mrxvt
! Similar look to the Linux Console, with corresponding tabs
! ---------------------------------------------------------------------------
mrxvt.initTermNumber: 1
mrxvt.protectSecondary: true
mrxvt.syncTabTitle: true
mrxvt.bottomTabbar: true
mrxvt.hideButtons: true
mrxvt.tabForeground: white
mrxvt.tabBackground: black
mrxvt.itabForeground: white
mrxvt.itabBackground: #555555
! Settings for mrxvt-based QuakeConsole - strongly recommended :)
! ---------------------------------------------------------------------------
!QuakeConsoleNeedsUniqueName.initTermNumber: 1
!QuakeConsoleNeedsUniqueName.protectSecondary: true
!QuakeConsoleNeedsUniqueName.syncTabTitle: true
!QuakeConsoleNeedsUniqueName.bottomTabbar: true
!QuakeConsoleNeedsUniqueName.hideButtons: true
!QuakeConsoleNeedsUniqueName.tabForeground: white
!QuakeConsoleNeedsUniqueName.tabBackground: black
!QuakeConsoleNeedsUniqueName.itabForeground: white
!QuakeConsoleNeedsUniqueName.itabBackground: #555555
! ===========================================================================
! URxvt resources
! Look similar to the Linux Console, with transparency
! ---------------------------------------------------------------------------
URxvt.background: black
URxvt.foreground: white
URxvt.shading: 30
URxvt.tintColor: white
URxvt.inheritPixmap: true
URxvt.scrollBar: false
! Font settings
! URxvt uses UTF-8, so we don't need encoding-specific settings
! ---------------------------------------------------------------------------
! 640x480
!URxvt.font: xft:Monospace:pixelsize=10
! 800x600
!URxvt.font: xft:Monospace:pixelsize=10
! 1024x768
URxvt.font: xft:Monospace:pixelsize=11
! 1152x864
!URxvt.font: xft:Monospace:pixelsize=12
! 1280x1024
!URxvt.font: xft:Monospace:pixelsize=14
! Colors similar to Linux console
! ---------------------------------------------------------------------------
URxvt.color0: rgb:0/0/0
URxvt.color1: rgb:cc/00/00
URxvt.color2: rgb:00/cc/00
URxvt.color3: #bd5e01
URxvt.color4: rgb:00/00/cc
URxvt.color5: rgb:cc/00/cc
URxvt.color6: rgb:00/cc/cc
URxvt.color7: rgb:aa/aa/aa
URxvt.color8: rgb:33/33/33
URxvt.color9: rgb:ff/00/00
URxvt.color10: rgb:00/ff/00
URxvt.color11: rgb:ff/ff/00
URxvt.color12: rgb:00/00/ff
URxvt.color13: rgb:ff/00/ff
URxvt.color14: rgb:00/ff/ff
URxvt.color15: rgb:ff/ff/ff
! Default URxvt colors
! ---------------------------------------------------------------------------
!URxvt.color0: black
!URxvt.color1: red3
!URxvt.color2: green3
!URxvt.color3: brown
!URxvt.color4: blue3
!URxvt.color5: magenta3
!URxvt.color6: cyan3
!URxvt.color7: gray90
!URxvt.color8: gray30
!URxvt.color9: red
!URxvt.color10: green
!URxvt.color11: yellow
!URxvt.color12: blue
!URxvt.color13: magenta
!URxvt.color14: cyan
!URxvt.color15: white
! Specific settings for QuakeConsole
! ---------------------------------------------------------------------------
! 1280x1024
!QuakeConsoleNeedsUniqueName.font: xft:Monospace:pixelsize=12
|
Recent emerge updated a lot of perl, also mesa, and a few other things, but nothing specific. Can anybody suggest why urxvt might have lost its transparency, and (better) how to configure it to use real transparency?
Thanks for the help,
EE |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 569 Location: Ásgarðr
|
Posted: Wed May 26, 2021 6:01 am Post subject: |
|
|
Hi,
Try to add this :
Code: | URxvt.depth: 32
URxvt.foreground: grey80
URxvt.background: [78]#000000
URxvt.tintColor: #262626
|
edit :
probably needed as well,
Code: | URxvt.termName: rxvt-unicode-256color
URxvt*buffered: true |
And comment that in your current config :
Code: | !urxvt*transparent: true
!URxvt.background: black
!URxvt.foreground: white
!URxvt.tintColor: white
|
Last edited by sdauth on Wed May 26, 2021 6:22 am; edited 2 times in total |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3617
|
Posted: Wed May 26, 2021 6:07 am Post subject: |
|
|
Off-topic, but package related:
Code: | x11-terms/rxvt-unicode-9.22-r9 amd64 | here.
Pasted command line eol isn't taken into account anymore, i.e. requiring manual CR to start.
Edit: restoring old version has same behavior...
Feature change might be perl related.
Could be security related.
Additionally, pasted command has video reverse attribute.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Last edited by CaptainBlood on Mon Feb 21, 2022 2:35 pm; edited 1 time in total |
|
Back to top |
|
|
ExecutorElassus Veteran
Joined: 11 Mar 2004 Posts: 1435 Location: Berlin, Germany
|
Posted: Wed May 26, 2021 8:01 am Post subject: |
|
|
perl was my guess as well, since the only notable thing about recent updates was a whole lot of perl stuff.
sdauth, where should I add that? To .Xresources?
I'll try those changes and report back in a sec.
UPDATE: they did not help.
Cheers,
EE |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 569 Location: Ásgarðr
|
Posted: Wed May 26, 2021 9:54 am Post subject: |
|
|
@ExecutorElassus,
Yes. In ~/.Xresources
I guess you merged the changes with xrdb -merge ~/.Xresources ? Sorry it didn't help.
Well, I'm on stable, so I currently use 9.22-r9; I just tried with 9.26 to see if the recent update caused issue but no, transparency still works fine.
My USE flags : ( 256-color blink fading-colors font-styles gdk-pixbuf mousewheel perl startup-notification utmp wtmp xft -iso14755 -unicode3 )
Here is my full ~/.Xresources if you want to try :
Code: | ! ~/.Xresources
Xft.dpi: 100
! == Colours ==
*background: rgb:10/10/10
!black
*color0: rgb:20/20/20
*color8: rgb:75/77/73
!red
*color1: rgb:CC/00/00
*color9: rgb:ef/29/29
!green
*color2: rgb:4e/9a/06
*color10: rgb:8a/e2/34
!brown/yellow
*color3: rgb:c4/a0/00
*color11: rgb:fc/e9/4f
!blue
*color4: rgb:34/65/a4
*color12: rgb:72/9f/cf
!magenta
*color5: rgb:75/50/7b
*color13: rgb:ad/7f/a8
!cyan
*color6: rgb:06/98/9a
*color14: rgb:34/e2/e2
!white
*color7: rgb:d3/d7/cf
*color15: rgb:ee/ee/ec
! == URxvt ==
URxvt.geometry: 132x32
URxvt.termName: rxvt-unicode-256color
URxvt*buffered: true
URxvt.inheritPixmap: False
URxvt.imLocale: fr_FR.UTF-8
URxvt.scrollBar: false
URxvt.scrollstyle: plain
URxvt.saveLines: 20000
URxvt.cursorBlink: false
URxvt.fading: 25%
URxvt*externalBorder: 8
URxvt*internalBorder: 8
URxvt.borderLess: false
URxvt.lineSpace: 1
URxvt*hold: false
URxvt.depth: 32
URxvt.background: [78]#000000
URxvt.foreground: grey80
URxvt.tintColor: #262626
URxvt.font: xft:Monospace:pixelsize=16
URxvt.boldFont: xft:Monospace:bold:pixelsize=16
! Extensions
URxvt*perl-lib: /usr/lib64/urxvt/perl/
URxvt.perl-ext-common: default,clipboard,keyboard-select,tabbedex,url-select
! clipboard
URxvt.clipboard.autocopy: true
URxvt.keysym.M-c: perl:clipboard: copy
URxvt.keysym.M-v: perl:clipboard: paste
! keyboard-select
URxvt.keysym.M-Escape: perl:keyboard-select:activate
URxvt.keysym.M-s: perl:keyboard-select:search
! matcher (add matcher)
! clickable url
URxvt.url-launcher: /usr/bin/xdg-open
URxvt.matcher.button: 1
! tabbed
URxvt.tabbedex.autohide: true
URxvt.tabbedex.reopen-on-close: no
URxvt.tabbedex.new-button: false
!! colors
URxvt.tabbedex.tabbar-fg: 2
URxvt.tabbedex.tabbar-bg: 0
URxvt.tabbedex.tab-fg: 3
URxvt.tabbedex.tab-bg: 0
!! tabbedex
URxvt.keysym.Control-Shift-T: perl:tabbedex:new_tab
URxvt.keysym.Control-Shift-W: perl:tabbedex:kill_tab
URxvt.keysym.Control-Tab: perl:tabbedex:next_tab
URxvt.keysym.Control-Shift-Tab: perl:tabbedex:prev_tab
URxvt.keysym.Control-Shift-Left: perl:tabbedex:move_tab_left
URxvt.keysym.Control-Shift-Right: perl:tabbedex:move_tab_right
URxvt.keysym.Control-Shift-R: perl:tabbedex:rename_tab
URxvt.tabbedex.no-tabbedex-keys: true
! url-select
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.url-select.launcher: /usr/bin/xdg-open
URxvt.url-select.underline: true |
|
|
Back to top |
|
|
ExecutorElassus Veteran
Joined: 11 Mar 2004 Posts: 1435 Location: Berlin, Germany
|
Posted: Wed May 26, 2021 12:10 pm Post subject: |
|
|
sdauth, using your exact same .Xresources I got some different colors and fonts, but no transparency.
But if you're using stable arch, you might not have installed whatever package broke this.
Anybody else having the same problem?
Cheers,
EE |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1166 Location: /run/user/1000
|
Posted: Wed May 26, 2021 1:53 pm Post subject: |
|
|
It doesn't work here either.
@sdauth, you probably have some compositor running, Picom maybe ? |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3617
|
Posted: Wed May 26, 2021 3:43 pm Post subject: |
|
|
+1
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 569 Location: Ásgarðr
|
Posted: Wed May 26, 2021 3:54 pm Post subject: |
|
|
kajzer wrote: | It doesn't work here either.
@sdauth, you probably have some compositor running, Picom maybe ? |
Oh, yes indeed. I run Xfwm4 on the desktop, and picom on the laptop. Totally forgot to mention it, sorry. |
|
Back to top |
|
|
ExecutorElassus Veteran
Joined: 11 Mar 2004 Posts: 1435 Location: Berlin, Germany
|
Posted: Wed May 26, 2021 4:54 pm Post subject: |
|
|
Is compositing even possible under FVWM? I don't think I ever even tried. |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2718
|
Posted: Wed May 26, 2021 5:28 pm Post subject: |
|
|
ExecutorElassus wrote: | Is compositing even possible under FVWM? I don't think I ever even tried. | While some window manager handle compositing themselves nowadays (kwin, mutter, xfwm4, enlightenment, etc...), picom is the standalone option intended to work with any.
Never tried but picom should work with fvwm as well.
(was wondering what this thread was about given urxvt transparency still works, but I do use xfwm4's compositor myself -- not familiar with using urxvt transparency without so can't say for that) |
|
Back to top |
|
|
ExecutorElassus Veteran
Joined: 11 Mar 2004 Posts: 1435 Location: Berlin, Germany
|
Posted: Wed May 26, 2021 5:43 pm Post subject: |
|
|
OK, I installed picom, and now urxvt has real transparency in its background. That's great! How do I set up everything to use this?
Thanks for the help.
EE |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1166 Location: /run/user/1000
|
Posted: Fri Jun 04, 2021 11:55 am Post subject: |
|
|
Seems like the background color doesn't affect the transparency, it's always black no matter what.
Opacity level is controlled by URxvt.shading and that's fine, but I can't get what I want with black as a bg color
Anyone knows a way to set a bg color for it ?
EDIT: I forgot to turn off transparency in .Xresources and define urxvt in picom.conf, so it's good now |
|
Back to top |
|
|
Irom Tux's lil' helper
Joined: 07 Oct 2003 Posts: 95 Location: am arsch..
|
Posted: Mon Jan 03, 2022 10:16 pm Post subject: |
|
|
I had the same problem, pseudo transparency (which is what I want, not real transparency) stopped working with =x11-terms/rxvt-unicode-9.26-r2. I just masked it back then, but yesterday the last good version fell out of my portage tree.
The reason that pseudo transparency did not work was the following empty X resource entry:
Code: | URxvt.perl-ext-common: |
Thanks all for this thread and sdauth for posting the known-good ~/.Xresources! _________________ http://ftp.fukt.bsnet.se/pub/movies/stallman/ (Please watch this before you form an opinion about GNU)
https://apfelboymchen.net/gnu/ |
|
Back to top |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1816
|
Posted: Mon Jan 17, 2022 4:24 pm Post subject: |
|
|
I just updated from x11-terms/rxvt-unicode-9.26-r2 to x11-terms/rxvt-unicode-9.30 and got burned by this. I'm using fluxbox (x11-wm/fluxbox-1.3.7-r4).
Even aside from not getting transparency to work there are things that have me totally confused. First of all, for whatever reason I'd always had my settings in ~/.Xdefaults and not ~/.Xresources. No clue how or why that happened, but with .Xdefaults renamed to .Xresources it never gets loaded. Not sure what that's all about. I'm also not very familiar with the xrdb command and as yet had never needed to use it.
As to the transparency issue, I'm not even sure where to start. The version of .Xresources posted by sdauth doesn't help. I've also tried with all the defaults and only these set:
Code: | URxvt*transparent:true
URxvt*shading:20 | ...with no luck.
Has anyone found anything more concrete on this one? I was REALLY disappointed to read stuff from the authors themselves that transparency isn't really supported?:
https://fossies.org/linux/rxvt-unicode/README.FAQ
For now I've reverted to the previous version. Any ideas, as well as some explanation as to what might be up with my .Xdefaults vs .Xresources issue above, would be appreciated.
Tom |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
Posted: Mon Jan 17, 2022 4:52 pm Post subject: |
|
|
tld maybe related to bug #830329. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1816
|
Posted: Mon Jan 17, 2022 4:57 pm Post subject: |
|
|
fedeliallalinea wrote: | tld maybe related to bug #830329. | Thanks you!!! Yes, that was it. Rebuilding with that fading-colors USE added fixed this for me. Thanks a million again!
Tom |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Sun Feb 20, 2022 6:07 pm Post subject: |
|
|
To get transparency I had to enable the "perl" USE flag which requires "fading-colors". |
|
Back to top |
|
|
tld Veteran
Joined: 09 Dec 2003 Posts: 1816
|
Posted: Mon Feb 21, 2022 1:48 pm Post subject: |
|
|
sebaro wrote: | To get transparency I had to enable the "perl" USE flag which requires "fading-colors". | It actually didn't require that until a recent change to address that bug. That change also apparently changed the IUSE from having "+perl" to just "perl", which explains why i ran into this:
https://forums.gentoo.org/viewtopic-t-1147346-highlight-.html
...and had to expressly set the perl USE.
Tom |
|
Back to top |
|
|
|