Page 1 of 1
Slacko 5.7 32 - strange behaviour configuring urxvt (solved)
Posted: Fri Jan 05, 2024 5:12 am
by milu
I want to change default urxvt colors and thus I edit .Xresources files, specifying this parameters (among others):
Code: Select all
urxvt.foreground: #00FF00
urxvt.background: #000000
after reloading .Xresources and running urxvt
I see foreground color has changed accordingly but backgroound does not. I assume some other config file is setting background color but I'm not able to find which config file or program configuration is changing my .Xresource config.
The strange behaviour is that, if I run urxvt through strace, every thing goes ok and background color changes to what I setted in .Xresources,
but if I run xvrt by itself, without strace, background color doen't change.
any idea to explore?
Re: Slacko 5.7 32 - strange behaviour configuring urxvt
Posted: Fri Jan 05, 2024 5:55 am
by bigpup
See if it has this in Slacko 5.7
In a terminal enter:
.
- Screenshot.jpg (41.5 KiB) Viewed 1038 times
.
After changes just run it the normal command
Re: Slacko 5.7 32 - strange behaviour configuring urxvt
Posted: Fri Jan 05, 2024 6:01 am
by bigpup
Here is a topic about using urxvtcontrol and a few other tweaks.
viewtopic.php?t=1598
Re: Slacko 5.7 32 - strange behaviour configuring urxvt
Posted: Fri Jan 05, 2024 2:18 pm
by milu
bigpup wrote: Fri Jan 05, 2024 5:55 am
See if it has this in Slacko 5.7
In a terminal enter:
After changes just run it the normal command
No, It haven't. But I found a package called urxvtset-0.5.1 in package manager and installed it, now I have a urxvtset command which is basically the same of urxvtcontrol, anyway what urxvtset seems to do is just read and write .Xdefaults so the problem is the same, it doesn't matter changing .Xresources by hand or with urxvtset.
So, same behaviour, change background color if urxvt executed with strace, no change if urxvt executed as is
Re: Slacko 5.7 32 - strange behaviour configuring urxvt -- SOLVED --
Posted: Fri Jan 05, 2024 2:50 pm
by milu
I finally solved the weird thing and now all works as expected, I can change all colors and properties.
Usually the most strange behaviour points to simple and evident things, so simple you don't pay attention to it, so silly. This is the case.
The problem was background color was hardwired as a parameter in the urxvt icon on desktop (-bg lightgray) and also there was an alias in bash saying
So whatever color I set in .Xresources or .Xdefaults it always fallback to lightgray.
The solution was simply to remove the alias and the parameter on urxvt desktop icon.
If you wonder why it works when executing with strace, its simple, strace calls the real command, uxrvt, not the alias, son the -bg lightgray command doesn't apply, but when executing uxvrt in the terminal you are really executing the alias with the -bg lightgray payload.
Thanks for your help.
Re: Slacko 5.7 32 - strange behaviour configuring urxvt
Posted: Fri Jan 05, 2024 3:34 pm
by mikewalsh
@milu :-
If you want to try it, here's the UrxvtControl package as mentioned earlier. It doesn't NEED Perl, but if you have it it just adds some extra functionality. .Pet attached below.
I, too, ran Slacko 5.7.0 for a couple of years. I don't think this came installed, OOTB. I'm pretty sure I had to add it myself.
Mike.
Re: Slacko 5.7 32 - strange behaviour configuring urxvt
Posted: Fri Jan 05, 2024 3:50 pm
by milu
mikewalsh wrote: Fri Jan 05, 2024 3:34 pm
If you want to try it, here's the UrxvtControl package as mentioned earlier. It doesn't NEED Perl, but if you have it it just adds some extra functionality. .Pet attached below.
I, too, ran Slacko 5.7.0 for a couple of years. I don't think this came installed, OOTB. I'm pretty sure I had to add it myself.
thanks mikewalsh, I've downloaded it and save it for future but for now I think I will stand with bare .Xresorces, I feel comfortable editing it.
Slacko is probbably my favourite puppy linux, I find it fairly perfect, 5.7 is a good option for old 32bits hardware but problably will move to slacko 7 64bis, it's a pity there's no slacko 8 based on slackware 15
Re: Slacko 5.7 32 - strange behaviour configuring urxvt
Posted: Fri Jan 05, 2024 4:47 pm
by bigpup
That is what we like.
Someone that solves their own problem.
Thanks for telling us what you did.
I learned something and I know this may help others.
Re: Slacko 5.7 32 - strange behaviour configuring urxvt
Posted: Sat Jan 06, 2024 10:18 am
by milu
bigpup wrote: Fri Jan 05, 2024 4:47 pm
I learned something and I know this may help others.
that's the idea, share what you know to help others