You are not logged in.

#1 2014-08-16 01:18:41

barefly
Member
Registered: 2014-08-16
Posts: 59

[Solved] Slim not loading .Xresources at startup

I have just recently started using Arch, and I gotta say im loving it so far. I've reached my first hurdle though. I currently have Slim installed and for whatever reason it is not reading my .Xresources file on startup, which is being using by urxvt. I've checked slim.conf to make sure it's loading .xinitrc. This is the relevant code.

login_cmd           exec /bin/bash -login ~/.xinitrc %session

In my .xinitrc I have setup my .Xresources file to be read and merged.

# define Xresources
userresources=$HOME/.Xresources

# merge with whats available
if [ -f "$userresources" ]; then
        xrdb -merge "$userresources"
fi

I also made sure that my .xinitrc is executable by running

chmod u+x

on it.

To make sure my .Xresources file is working I have run

xrdb .Xresources

from terminal, then opened a new terminal. The profile does get loaded. I've exhausted everything I can think of to get this working so i'd appreciate any additional help. Also, if it's relevant, I am using i3 as my window manager.

EDIT:

Dug around a bit more and found I was missing

 xrdb -load ~/.Xresources &

Working now smile

Last edited by barefly (2014-08-16 04:19:37)

Offline

#2 2014-08-16 02:15:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,193

Re: [Solved] Slim not loading .Xresources at startup

Welcome to Arch smile 

Glad it is working.  Please edit your first post and prepend [SOLVED] to your thread title when you consider it to be solved.  We ask that you do this as we have no way to know when you regard it as solved.  Thanks.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2014-08-19 20:23:20

i3_Arch
Member
Registered: 2014-01-29
Posts: 21

Re: [Solved] Slim not loading .Xresources at startup

Sorry for bumping this solved thread, but can you post your .xinitrc and .Xresources  for me to see if I'm doing anything wrong.....  here is my thread, pretty much the same problem you were having.

https://bbs.archlinux.org/viewtopic.php?id=185904


Archlinux + i3 + zsh = winning
Registered Linux User #565414
Blackarch Pentesting Distro
Github

Offline

Board footer

Powered by FluxBB