You are not logged in.

#1 2020-08-27 19:56:59

proton007
Member
Registered: 2020-08-13
Posts: 10

[SOLVED] URxvt foreground and background color being overwritten

Hello all,
this looks like a small issue, but I'm not able to find the root cause.

I'm using URXvt with some custom settings and a color-scheme, which I create as follows in my .Xresources:

URxvt.transparent: false
URxvt.geometry: 100x32
URxvt.font: xft:iosevka-term:size=14, xft:LiberationMono:size=10
URxvt.scrollBar: false
URxvt.perl-ext-common: default,matcher,tabbed
URxvt.letterSpace: 1
#include "/home/pharmakon/.urxvt/themes/ayu"

I do an xrdb -merge .Xresources, but what happens after that is that all the colors except foreground and background are changed.

The culprits are xterm*foreground/background that are being set by some other file/setting on boot (the first few lines are from my .Xresources file). Below is the output from xrdb -q:

*.background:	#0f1419
*.color0:	#000000
*.color1:	#ff3333
*.color10:	#eafe84
*.color11:	#fff779
*.color12:	#68d5ff
*.color13:	#ffa3aa
*.color14:	#c7fffd
*.color15:	#ffffff
*.color2:	#b8cc52
*.color3:	#e7c547
*.color4:	#36a3d9
*.color5:	#f07178
*.color6:	#95e6cb
*.color7:	#ffffff
*.color8:	#323232
*.color9:	#ff6565
*.colorBD:	#e6e1cf
*.cursorColor:	#f29718
*.foreground:	#e6e1cf

**some more settings**

xterm*background:	#fcfcfc
xterm*foreground:	#232627
xterm.SimpleMenu*background:	#eff0f1
xterm.SimpleMenu*foreground:	#23627

Now, If I do an xrdb -remove and again xrdb -merge .Xresources, the colors are as expected, but only until the next boot.

How can I prevent xterm*foreground and xterm*background from overwriting my settings?

Thanks!!

Last edited by proton007 (2020-08-28 14:29:29)

Offline

#2 2020-08-27 20:05:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,515
Website

Re: [SOLVED] URxvt foreground and background color being overwritten

How are you starting X?  If you use xinit/startx, please post your xinitrc.  If you use a DM, please post the equivalent script, config, or xsession files.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-08-28 09:34:07

proton007
Member
Registered: 2020-08-13
Posts: 10

Re: [SOLVED] URxvt foreground and background color being overwritten

Hi!
Thanks for your reply.

I'm using LightDM, here is the script /etc/lightdm/Xsession:

#!/bin/sh
#
# LightDM wrapper to run around X sessions.

echo "Running X session wrapper"

# Load profile
for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
    if [ -f "$file" ]; then
        echo "Loading profile from $file";
        . "$file"
    fi
done

# Load resources
for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do
    if [ -f "$file" ]; then
        echo "Loading resource: $file"
        xrdb -merge "$file"
    fi
done

# Load keymaps
for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do
    if [ -f "$file" ]; then
        echo "Loading keymap: $file"
        setxkbmap `cat "$file"`
        XKB_IN_USE=yes
    fi
done

# Load xmodmap if not using XKB
if [ -z "$XKB_IN_USE" ]; then
    for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do
        if [ -f "$file" ]; then
           echo "Loading modmap: $file"
           xmodmap "$file"
        fi
    done
fi

unset XKB_IN_USE

# Run all system xinitrc shell scripts
xinitdir="/etc/X11/xinit/xinitrc.d"
if [ -d "$xinitdir" ]; then
    for script in $xinitdir/*; do
        echo "Loading xinit script $script"
        if [ -x "$script" -a ! -d "$script" ]; then
            . "$script"
        fi
    done
fi

# Run user xsession shell script
script="$HOME/.xsession"
if [ -x "$script" -a ! -d "$script" ]; then
    echo "Loading xsession script $script"
    . "$script"
fi

echo "X session wrapper complete, running session $@"

exec $@

And here's the output from running this script:

Running X session wrapper
Loading profile from /etc/profile
Loading resource: /home/pharmakon/.Xresources
Loading xinit script /etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module.sh
Loading xinit script /etc/X11/xinit/xinitrc.d/50-systemd-user.sh

Offline

#4 2020-08-28 10:20:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: [SOLVED] URxvt foreground and background color being overwritten

And what kind of session do you use?

Also the xrdb dump somehow misses your other urxvt settings and it's a bit weird that xterm specific entries would affect urxvt (unless you explicitly alter its class)

Assuming you posted only a random excerpt of the xrdb dump, please post the entire thing, before and after fixing the situation and also the contents of "/home/pharmakon/.urxvt/themes/ayu"
Also elaborate on your urxvt setup and why xterm variables could apply (eg. if you call urxvt w/ a class parameter)

Offline

#5 2020-08-28 10:51:28

proton007
Member
Registered: 2020-08-13
Posts: 10

Re: [SOLVED] URxvt foreground and background color being overwritten

seth wrote:

And what kind of session do you use?

I used the command 'w', here are the sessions:

USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
pharmako tty7      09:58    2:49m  7:21   0.01s /usr/bin/startplasma-x11
pharmako pts/0     09:58    2:46m  0.00s  4.06s /usr/bin/kded5
seth wrote:

Also the xrdb dump somehow misses your other urxvt settings and it's a bit weird that xterm specific entries would affect urxvt (unless you explicitly alter its class)

Assuming you posted only a random excerpt of the xrdb dump, please post the entire thing, before and after fixing the situation and also the contents of "/home/pharmakon/.urxvt/themes/ayu"

Here's the complete dump after boot:

*.background:	#0f1419
*.color0:	#000000
*.color1:	#ff3333
*.color10:	#eafe84
*.color11:	#fff779
*.color12:	#68d5ff
*.color13:	#ffa3aa
*.color14:	#c7fffd
*.color15:	#ffffff
*.color2:	#b8cc52
*.color3:	#e7c547
*.color4:	#36a3d9
*.color5:	#f07178
*.color6:	#95e6cb
*.color7:	#ffffff
*.color8:	#323232
*.color9:	#ff6565
*.colorBD:	#e6e1cf
*.cursorColor:	#f29718
*.foreground:	#e6e1cf
*Box.background:	#eff0f1
*Box.foreground:	#232627
*Button.activeBackground:	#eff0f1
*Button.activeForeground:	#232627
*Button.background:	#eff0f1
*Button.foreground:	#232627
*Button.highlightBackground:	#eff0f1
*Button.highlightColor:	#232627
*Canvas.activeBackground:	#fcfcfc
*Canvas.activeForeground:	#232627
*Canvas.background:	#fcfcfc
*Canvas.foreground:	#232627
*Canvas.highlightBackground:	#fcfcfc
*Canvas.highlightColor:	#232627
*Canvas.selectbackground:	#3daee9
*Canvas.selectforeground:	#fcfcfc
*Checkbutton.activeBackground:	#eff0f1
*Checkbutton.activeForeground:	#232627
*Checkbutton.background:	#eff0f1
*Checkbutton.foreground:	#232627
*Checkbutton.highlightBackground:	#eff0f1
*Checkbutton.highlightColor:	#232627
*Command.background:	#eff0f1
*Command.foreground:	#232627
*Dialog.background:	#eff0f1
*Dialog.foreground:	#232627
*Entry.activeBackground:	#fcfcfc
*Entry.activeForeground:	#232627
*Entry.background:	#fcfcfc
*Entry.foreground:	#232627
*Entry.highlightBackground:	#fcfcfc
*Entry.highlightColor:	#232627
*Entry.selectBackground:	#3daee9
*Entry.selectForeground:	#fcfcfc
*Form.background:	#eff0f1
*Form.foreground:	#232627
*Frame.activeBackground:	#eff0f1
*Frame.activeForeground:	#232627
*Frame.background:	#eff0f1
*Frame.foreground:	#232627
*Frame.highlightBackground:	#eff0f1
*Frame.highlightColor:	#232627
*Label.activeBackground:	#eff0f1
*Label.activeForeground:	#232627
*Label.background:	#eff0f1
*Label.foreground:	#232627
*Label.highlightBackground:	#eff0f1
*Label.highlightColor:	#232627
*List.background:	#fcfcfc
*List.foreground:	#232627
*Listbox.activeBackground:	#fcfcfc
*Listbox.activeForeground:	#232627
*Listbox.background:	#fcfcfc
*Listbox.foreground:	#232627
*Listbox.highlightBackground:	#fcfcfc
*Listbox.highlightColor:	#232627
*Listbox.selectBackground:	#3daee9
*Listbox.selectForeground:	#fcfcfc
*Menu.activeBackground:	#eff0f1
*Menu.activeForeground:	#232627
*Menu.background:	#eff0f1
*Menu.foreground:	#232627
*Menu.highlightBackground:	#eff0f1
*Menu.highlightColor:	#232627
*MenuButton.background:	#eff0f1
*MenuButton.foreground:	#232627
*Menubutton.activeBackground:	#eff0f1
*Menubutton.activeForeground:	#232627
*Menubutton.background:	#eff0f1
*Menubutton.foreground:	#232627
*Menubutton.highlightBackground:	#eff0f1
*Menubutton.highlightColor:	#232627
*Radiobutton.activeBackground:	#eff0f1
*Radiobutton.activeForeground:	#232627
*Radiobutton.background:	#eff0f1
*Radiobutton.foreground:	#232627
*Radiobutton.highlightBackground:	#eff0f1
*Radiobutton.highlightColor:	#232627
*Scale.activeBackground:	#eff0f1
*Scale.activeForeground:	#232627
*Scale.background:	#eff0f1
*Scale.foreground:	#232627
*Scale.highlightBackground:	#eff0f1
*Scale.highlightColor:	#232627
*Scale.troughColor:	#eff0f1
*Scrollbar*Cursor:	left_ptr
*Scrollbar*background:	#eff0f1
*Scrollbar*cursorName:	left_ptr
*Scrollbar*height:	15
*Scrollbar*pushThumb:	false
*Scrollbar*shadowWidth:	2
*Scrollbar*width:	15
*Scrollbar.activeBackground:	#eff0f1
*Scrollbar.activeForeground:	#232627
*Scrollbar.foreground:	#232627
*Scrollbar.highlightBackground:	#eff0f1
*Scrollbar.highlightColor:	#232627
*Scrollbar.troughColor:	#eff0f1
*ScrollbarBackground:	#eff0f1
*ShapeStyle:	Rectangle
*SimpleMenu*background:	#eff0f1
*SimpleMenu*foreground:	#232627
*SmeBSB*shadowWidth:	3
*Text.activeBackground:	#fcfcfc
*Text.activeForeground:	#232627
*Text.background:	#fcfcfc
*Text.foreground:	#232627
*Text.highlightBackground:	#fcfcfc
*Text.highlightColor:	#232627
*Text.selectBackground:	#3daee9
*Text.selectForeground:	#fcfcfc
*Toggle.background:	#eff0f1
*Toggle.foreground:	#232627
*Toplevel.activeBackground:	#eff0f1
*Toplevel.activeForeground:	#232627
*Toplevel.background:	#eff0f1
*Toplevel.foreground:	#232627
*Toplevel.highlightBackground:	#eff0f1
*Toplevel.highlightColor:	#232627
*XmCascadeButton.background:	#eff0f1
*XmCascadeButton.foreground:	#232627
*XmCascadeButtonGadget.background:	#eff0f1
*XmCascadeButtonGadget.foreground:	#232627
*XmDialogShell.background:	#eff0f1
*XmDialogShell.foreground:	#232627
*XmFileSelectionBox.background:	#eff0f1
*XmFileSelectionBox.foreground:	#232627
*XmForm.background:	#eff0f1
*XmForm.foreground:	#232627
*XmFrame.background:	#eff0f1
*XmFrame.foreground:	#232627
*XmLabel.background:	#eff0f1
*XmLabel.foreground:	#232627
*XmLabelGadget.background:	#eff0f1
*XmLabelGadget.foreground:	#232627
*XmList.background:	#fcfcfc
*XmList.foreground:	#232627
*XmMenuShell.background:	#eff0f1
*XmMenuShell.foreground:	#232627
*XmMessageBox.background:	#eff0f1
*XmMessageBox.foreground:	#232627
*XmPanedWindow.background:	#eff0f1
*XmPanedWindow.foreground:	#232627
*XmPushButton.background:	#eff0f1
*XmPushButton.foreground:	#232627
*XmPushButtonGadget.background:	#eff0f1
*XmPushButtonGadget.foreground:	#232627
*XmRowColumn.background:	#eff0f1
*XmRowColumn.foreground:	#232627
*XmSash.background:	#eff0f1
*XmSash.foreground:	#232627
*XmScrollBar.background:	#eff0f1
*XmScrollBar.foreground:	#232627
*XmScrolledWindow.background:	#eff0f1
*XmScrolledWindow.foreground:	#232627
*XmSelectionBox.background:	#eff0f1
*XmSelectionBox.foreground:	#232627
*XmSeparator.background:	#eff0f1
*XmSeparator.foreground:	#232627
*XmSeparatorGadget.background:	#eff0f1
*XmSeparatorGadget.foreground:	#232627
*XmTearOffButton.background:	#eff0f1
*XmTearOffButton.foreground:	#232627
*XmTearOffButtonGadget.background:	#eff0f1
*XmTearOffButtonGadget.foreground:	#232627
*XmText.background:	#fcfcfc
*XmText.foreground:	#232627
*XmTextField.background:	#fcfcfc
*XmTextField.foreground:	#232627
*XmToggleButton.background:	#eff0f1
*XmToggleButton.foreground:	#232627
*XmToggleButtonGadget.background:	#eff0f1
*XmToggleButtonGadget.foreground:	#232627
*background:	#eff0f1
*beNiceToColormap:	false
*borderColor:	black
*foreground:	#232627
*rvplayer*Command.BorderColor:	#232627
*rvplayer*Command.background:	#eff0f1
*rvplayer*Command.foreground:	#232627
*rvplayer*Label.BorderColor:	#232627
*rvplayer*MenuButton.BorderColor:	#232627
*rvplayer*MenuButton.background:	#eff0f1
*rvplayer*SepLine.BorderColor:	#eff0f1
*rvplayer*SepLine.bottomShadowPixel:	#ffffff
*rvplayer*SepLine.topShadowPixel:	#6d6d6d
*rvplayer*SimpleMenu.BorderColor:	#6d6d6d
*rvplayer*SimpleMenu.background:	#eff0f1
*rvplayer*SimpleMenu.foreground:	#232627
*rvplayer*SmeBSB*fgInsensitive:	#ffffff
*rvplayer*Vslider.thumbPixel:	#ffffff
*rvplayer*authortext.background:	#eff0f1
*rvplayer*authortext.bottomShadowPixel:	#ffffff
*rvplayer*authortext.topShadowPixel:	#6d6d6d
*rvplayer*background:	#eff0f1
*rvplayer*copyrighttext.background:	#eff0f1
*rvplayer*copyrighttext.bottomShadowPixel:	#ffffff
*rvplayer*copyrighttext.topShadowPixel:	#6d6d6d
*rvplayer*proptext.background:	#eff0f1
*rvplayer*proptext.foreground:	#232627
*rvplayer*statusback.background:	#eff0f1
*rvplayer*statusback.foreground:	#232627
*rvplayer*statustext.background:	#eff0f1
*rvplayer*statustext.foreground:	#232627
*rvplayer*timeinfotext.background:	#eff0f1
*rvplayer*timeinfotext.bottomShadowPixel:	#ffffff
*rvplayer*timeinfotext.foreground:	#232627
*rvplayer*timeinfotext.topShadowPixel:	#6d6d6d
*rvplayer*timeslider.bottomShadowPixel:	#ffffff
*rvplayer*timeslider.foreground:	#eff0f1
*rvplayer*timeslider.thumbPixel:	#ffffff
*rvplayer*timeslider.topShadowPixel:	#6d6d6d
*rvplayer*titletext.background:	#eff0f1
*rvplayer*titletext.bottomShadowPixel:	#ffffff
*rvplayer*titletext.topShadowPixel:	#6d6d6d
*rvplayer*volumeslider.bottomShadowPixel:	#ffffff
*rvplayer*volumeslider.topShadowPixel:	#6d6d6d
AcroRead.XmScreen.background:	#fcfcfc
AcroRead.XmScreen.borderColor:	#232627
AcroRead.borderColor:	#232627
Acroread.background:	#fcfcfc
Acroread.foreground:	#232627
Config*Text*background:	#eff0f1
Config*channel.background:	#eff0f1
Config*key.background:	#eff0f1
Config*list.background:	#eff0f1
Emacs*Background:	#fcfcfc
Emacs*Dialog*background:	#eff0f1
Emacs*Dialog*foreground:	#232627
Emacs*Foreground:	#232627
Emacs*XlwScrollBar.Background:	#eff0f1
Emacs*XlwScrollBar.Foreground:	#232627
Emacs*backgroundToolBarColor:	#eff0f1
Emacs*bottomToolBarShadowColor:	#eff0f1
Emacs*menubar*background:	#eff0f1
Emacs*menubar*foreground:	#232627
Emacs*popup*Background:	#eff0f1
Emacs*popup*Foreground:	#232627
Emacs*toolBarShadowThickness:	0
Emacs*topToolBarShadowColor:	#eff0f1
Emacs.default.attributeBackground:	#fcfcfc
Emacs.default.attributeForeground:	#232627
Netscape*XmLGrid.background:	#eff0f1
Netscape*XmLGrid.foreground:	#232627
Netscape*XmList*background:	#fcfcfc
Netscape*XmList*foreground:	#232627
Netscape*XmText*background:	#fcfcfc
Netscape*XmText*foreground:	#232627
Netscape*XmTextField*background:	#fcfcfc
Netscape*XmTextField*foreground:	#232627
Netscape*background:	#eff0f1
Netscape*bottomShadowColor:	#6d6d6d
Netscape*defaultBackground:	#fcfcfc
Netscape*foreground:	#232627
Netscape*highlightColor:	#eff0f1
Netscape*power.LED.background:	#eff0f1
Netscape*power.LED.foreground:	#3daee9
Netscape*selectBackground:	#3daee9
Netscape*selectColor:	#eff0f1
Netscape*selectForeground:	#fcfcfc
Netscape*thermo.slider.background:	#eff0f1
Netscape*thermo.slider.foreground:	#3daee9
Netscape*topShadowColor:	#ffffff
Netscape*urlLabel*background:	#fcfcfc
Netscape*urlLabel*foreground:	#232627
Netscape*urlText*background:	#fcfcfc
Netscape*urlText*foreground:	#232627
Streamer*Text*background:	#eff0f1
TopLevelShell*background:	#eff0f1
TopLevelShell*foreground:	#232627
URxvt.font:	xft:iosevka-term:size=14, xft:LiberationMono:size=10
URxvt.geometry:	100x32
URxvt.letterSpace:	1
URxvt.perl-ext-common:	default,matcher,tabbed
URxvt.scrollBar:	false
URxvt.transparent:	false
WPFMShell*MenuBar*background:	#eff0f1
WPFMShell*MenuBar*foreground:	#232627
WPFMShell*XmDialogShell*XmDrawingArea*background:	#fcfcfc
WPFMShell*XmDialogShell*XmDrawingArea*foreground:	#232627
WPFMShell*XmDialogShell*XmList*background:	#fcfcfc
WPFMShell*XmDialogShell*XmList*foreground:	#232627
WPFMShell*XmDialogShell*XmScrolledWindow*XmDrawingArea.background:	#fcfcfc
WPFMShell*XmDialogShell*XmScrolledWindow*XmDrawingArea.foreground:	#232627
WPFMShell*XmDialogShell*XmText*background:	#fcfcfc
WPFMShell*XmDialogShell*XmText*foreground:	#232627
WPFMShell*XmDialogShell*XmTextField*background:	#fcfcfc
WPFMShell*XmDialogShell*XmTextField*foreground:	#232627
WPFMShell*XmDialogShell*background:	#fcfcfc
WPFMShell*XmDialogShell*foreground:	#232627
WPFMShell*XmDrawingArea*background:	#fcfcfc
WPFMShell*XmDrawingArea*foreground:	#232627
WPFMShell*XmList*background:	#fcfcfc
WPFMShell*XmList*foreground:	#232627
WPFMShell*XmScrolledWindow*XmDrawingArea.background:	#eff0f1
WPFMShell*XmScrolledWindow*XmDrawingArea.foreground:	#232627
WPFMShell*XmText*background:	#fcfcfc
WPFMShell*XmText*foreground:	#232627
WPFMShell*XmTextField*background:	#fcfcfc
WPFMShell*XmTextField*foreground:	#232627
WPFMShell*background:	#eff0f1
WPFMShell*foreground:	#232627
WPFMShell*menubar*background:	#eff0f1
WPFMShell*menubar*foreground:	#232627
XWp*MenuBar*background:	#eff0f1
XWp*MenuBar*foreground:	#232627
XWp*XmDialogShell*XmDrawingArea.background:	#fcfcfc
XWp*XmDialogShell*XmDrawingArea.foreground:	#232627
XWp*XmDialogShell*XmList*background:	#fcfcfc
XWp*XmDialogShell*XmList*foreground:	#232627
XWp*XmDialogShell*XmScrolledWindow*XmDrawingArea.background:	#fcfcfc
XWp*XmDialogShell*XmScrolledWindow*XmDrawingArea.foreground:	#232627
XWp*XmDialogShell*XmText*background:	#fcfcfc
XWp*XmDialogShell*XmText*foreground:	#232627
XWp*XmDialogShell*XmTextField*background:	#fcfcfc
XWp*XmDialogShell*XmTextField*foreground:	#232627
XWp*XmDialogShell*background:	#eff0f1
XWp*XmDialogShell*foreground:	#232627
XWp*XmDrawingArea.background:	#fcfcfc
XWp*XmDrawingArea.foreground:	#232627
XWp*XmList*background:	#fcfcfc
XWp*XmList*foreground:	#232627
XWp*XmScrolledWindow*XmDrawingArea.background:	#eff0f1
XWp*XmScrolledWindow*XmDrawingArea.foreground:	#232627
XWp*XmText*background:	#fcfcfc
XWp*XmText*foreground:	#232627
XWp*XmTextField*background:	#FFFFFFFFFFFF
XWp*XmTextField*foreground:	#232627
XWp*background:	#eff0f1
XWp*foreground:	#232627
XWp*menubar*background:	#eff0f1
XWp*menubar*foreground:	#232627
XWp*popmenu*background:	#eff0f1
XWp*popmenu*foreground:	#232627
XWp.form.controlbar.menubar.CBHlpButton*background:	#eff0f1
XWp.form.hscrollbar.background:	#eff0f1
XWp.form.rulerframe.ruler*background:	#eff0f1
XWp.form.scrollbar0.background:	#eff0f1
XWp.mainWindowForm.mainWindowMenubar*background:	#eff0f1
XWp.mainWindowForm.mainWindowMenubar*foreground:	#232627
Xawtv*Dialog.value.background:	#eff0f1
Xawtv*background:	#eff0f1
Xawtv*foreground:	#232627
Xcursor.size:	24
Xcursor.theme:	breeze_cursors
Xft.antialias:	1
Xft.hinting:	1
Xft.hintstyle:	hintmedium
Xft.rgba:	rgb
editres*Panner.Background:	#eff0f1
editres*Tree.Background:	#fcfcfc
editres*Tree.Foreground:	#232627
editres*Tree.Toggle.Background:	#eff0f1
editres*Tree.Toggle.Foreground:	#232627
ml*XmCascadeButton.marginHeight:	2
ml*XmCascadeButton.marginWidth:	8
ml*XmForm*bottomOffset:	0
ml*XmForm*topOffset:	0
ml*XmForm*verticalSpacing:	0
ml*XmList*background:	#fcfcfc
ml*XmList*foreground:	#232627
ml*XmList*highlightThickness:	0
ml*XmPushButton.marginHeight:	1
ml*XmRowColumn*marginHeight:	1
ml*XmRowColumn*spacing:	0
ml*XmRowColumn.entryBorder:	0
ml*XmText*background:	#fcfcfc
ml*XmText*foreground:	#232627
ml*XmTextField*background:	#fcfcfc
ml*XmTextField*foreground:	#232627
ml*XmToggleButton.marginHeight:	1
ml*background:	#eff0f1
ml*borderWidth:	0
ml*focusPolicy:	pointer
ml*foreground:	#232627
ml*helpwin*textSW.text.background:	#fcfcfc
ml*helpwin*textSW.text.foreground:	#232627
ml*highlightColor:	#eff0f1
ml*log*textSW.text.background:	#fcfcfc
ml*log*textSW.text.foreground:	#232627
ml*marginHeight:	2
ml*marginWidth:	3
ml*selectColor:	#eff0f1
ml*textSW.text.background:	#fcfcfc
ml*textSW.text.foreground:	#232627
ml.form.height:	550
ml.form.width:	650
nedit*background:	#eff0f1
nedit*foreground:	#232627
xcalc*background:	#eff0f1
xcalc*bevel.screen.LCD.background:	#fcfcfc
xcalc*bevel.screen.LCD.foreground:	#232627
xcalc*foreground:	#232627
xdvi.background:	white
xosview*background:	#eff0f1
xosview*foreground:	#232627
xosview*meterLabelColor:	#232627
xosview*usedLabelColor:	#232627
xpdf.background:	#eff0f1
xpdf.foreground:	#232627
xpdf.urlCommand:	kfmclient exec %s
xterm*background:	#0f1419
xterm*foreground:	#e6e1cf
xterm.SimpleMenu*background:	#eff0f1
xterm.SimpleMenu*foreground:	#232627

The Urxvt settings show up in the middle of the file.

And here's the dump after removing the xrdb config and merging .Xresources:

*.background:	#0f1419
*.color0:	#000000
*.color1:	#ff3333
*.color10:	#eafe84
*.color11:	#fff779
*.color12:	#68d5ff
*.color13:	#ffa3aa
*.color14:	#c7fffd
*.color15:	#ffffff
*.color2:	#b8cc52
*.color3:	#e7c547
*.color4:	#36a3d9
*.color5:	#f07178
*.color6:	#95e6cb
*.color7:	#ffffff
*.color8:	#323232
*.color9:	#ff6565
*.colorBD:	#e6e1cf
*.cursorColor:	#f29718
*.foreground:	#e6e1cf
URxvt.font:	xft:iosevka-term:size=14, xft:LiberationMono:size=10
URxvt.geometry:	100x32
URxvt.letterSpace:	1
URxvt.perl-ext-common:	default,matcher,tabbed
URxvt.scrollBar:	false
URxvt.transparent:	false

The contents of the file 'ayu':

!
! Generated with :
! XRDB2Xreources.py
!
*.foreground:  #e6e1cf
*.background:  #0f1419
*.cursorColor: #f29718
!
! Black
*.color0:      #000000
*.color8:      #323232
!
! Red
*.color1:      #ff3333
*.color9:      #ff6565
!
! Green
*.color2:      #b8cc52
*.color10:     #eafe84
!
! Yellow
*.color3:      #e7c547
*.color11:     #fff779
!
! Blue
*.color4:      #36a3d9
*.color12:     #68d5ff
!
! Magenta
*.color5:      #f07178
*.color13:     #ffa3aa
!
! Cyan
*.color6:      #95e6cb
*.color14:     #c7fffd
!
! White
*.color7:      #ffffff
*.color15:     #ffffff
!
! Bold, Italic, Underline
*.colorBD:     #e6e1cf
!*.colorIT:
!*.colorUL:

Offline

#6 2020-08-28 11:02:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: [SOLVED] URxvt foreground and background color being overwritten

Stuff like

*Toplevel.activeBackground:	#eff0f1
*Toplevel.activeForeground:	#232627
*Toplevel.background:	#eff0f1
*Toplevel.foreground:	#232627
*Toplevel.highlightBackground:	#eff0f1
*Toplevel.highlightColor:	#232627

or esp.

*background:	#eff0f1
*beNiceToColormap:	false
*borderColor:	black
*foreground:	#232627

looks far more culprit.

The cause is porbably KDE/plasma that applies it's color scheme on the rdb.

I'd specialise the urxvt values like

URxvt*foreground     : #0f1419
URxvt*background     : #e6e1cf
URxvt*cursorColor    : #f29718
…

to keep the KDE palette elsewhere.

Offline

#7 2020-08-28 14:27:48

proton007
Member
Registered: 2020-08-13
Posts: 10

Re: [SOLVED] URxvt foreground and background color being overwritten

Yes, if I just change the theme file itself so that it says URxvt*foreground/background etc. it works, but the downside is that I'll have to do that for other themes as well in case I decide to change my URxvt theme in the future.
But it's a solution in any case, and most likely the safest.

Last edited by proton007 (2020-08-28 14:30:23)

Offline

#8 2020-08-28 14:31:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: [SOLVED] URxvt foreground and background color being overwritten

man sed

cool

Offline

Board footer

Powered by FluxBB