Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Xresouces doesn't loaded via xinitrc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
babysitter
n00b
n00b


Joined: 09 May 2016
Posts: 8

PostPosted: Sun May 15, 2016 3:15 pm    Post subject: [solved] Xresouces doesn't loaded via xinitrc Reply with quote

so, another newbie's problem :(

not so long ago i used another distro with everything from the box.
and there i was happily using rxvt-unicode with a basic config and solarized colors.
so my full .Xresources is stored on github https://github.com/babysitter/dotfiles/blob/master/.Xresources


i have my fresh gentoo with x-server and xfce installed so i'm starting X via startx command from tty.
.xinitrc looks like that:

Code:
xrdb -merge ~/.Xresources
exec startxfce4


so the problem is:
when i start a new session my urxvt doesn't know about my cool colors = i've got parse errors and evth is pink
BUT! if i open a terminal and write xrdb -merge ~/.Xresources by hand = everything is cool, no errors in xrdb command or config file

i added some echo commands and yes commands before exec startxfce4 was executed
i was trying to redirect stdout/stderr from xrdb command but is seems fine.. any ideas?


Last edited by babysitter on Mon May 16, 2016 7:09 am; edited 1 time in total
Back to top
View user's profile Send private message
fhede
n00b
n00b


Joined: 15 Mar 2016
Posts: 43

PostPosted: Sun May 15, 2016 3:31 pm    Post subject: Reply with quote

I have this in my xinitrc and this working for me.

[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources

found here https://wiki.archlinux.org/index.php/x_resources#Parsing_.Xresources
Back to top
View user's profile Send private message
babysitter
n00b
n00b


Joined: 09 May 2016
Posts: 8

PostPosted: Sun May 15, 2016 3:42 pm    Post subject: Reply with quote

same.. works if i type it by hand but still doesn't work at startx.
Back to top
View user's profile Send private message
babysitter
n00b
n00b


Joined: 09 May 2016
Posts: 8

PostPosted: Sun May 15, 2016 4:04 pm    Post subject: Reply with quote

now i did xrdb -query -all and saw that xrdb actually merged Xresources file but all the color defines were broke somewhy
Back to top
View user's profile Send private message
babysitter
n00b
n00b


Joined: 09 May 2016
Posts: 8

PostPosted: Mon May 16, 2016 7:04 am    Post subject: Reply with quote

yup, that code was spoiling xrdb command, i still don't know why

Code:
#define S_base03        #002b36
#define S_base02        #073642
#define S_base01        #586e75
#define S_base00        #657b83
#define S_base0         #839496
#define S_base1         #93a1a1
#define S_base2         #eee8d5
#define S_base3         #fdf6e3
#define S_yellow        #b58900
#define S_orange        #cb4b16
#define S_red           #dc322f
#define S_magenta       #d33682
#define S_violet        #6c71c4
#define S_blue          #268bd2
#define S_cyan          #2aa198
#define S_green         #859900


i replaced all defines by its value by hand and now it works
Code:
:%s/S_base03/#002b36/g
:%s/S_base02/#073642/g
... etc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum