You are not logged in.

#1 2013-07-17 20:46:41

Hurricane
Member
Registered: 2012-10-18
Posts: 77

[SOLVED].Xresources not being read

I'm using SLiM as my desktop manager. It manages Mate and i3. I have a little .Xresources that changes the default mouse cursor and that sets some colors for urxvt. However, it's not being read when I log in. My .xinitrc looks as follows:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
#exec mate-session

xrdb -merge /home/hugo/.Xresources

case $1 in
Mate)
	exec mate-session
	/usr/bin/xscreensaver -no-splash &
		;;
i3)
	exec i3
		;;
esac

Last edited by Hurricane (2013-07-17 21:37:00)


Computers are extra dumb, which is why it takes extra smart people to make them work.

Offline

#2 2013-07-17 21:02:50

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,724
Website

Re: [SOLVED].Xresources not being read

If you run "xrdb -merge /home/hugo/.Xresources" after you log in, do the changes take effect?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2013-07-17 21:13:41

Hurricane
Member
Registered: 2012-10-18
Posts: 77

Re: [SOLVED].Xresources not being read

WorMzy wrote:

If you run "xrdb -merge /home/hugo/.Xresources" after you log in, do the changes take effect?

I just tried it, but nothing happened. I checked to see if xorg-xrdb was installed

$ pacman -Ss xorg-xrdb
extra/xorg-xrdb 1.0.9-2 (xorg-apps xorg) [installed]
    X server resource database utility

Computers are extra dumb, which is why it takes extra smart people to make them work.

Offline

#4 2013-07-17 21:19:13

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED].Xresources not being read

Have you ever been able to make this work? Have you used other .Xresources files with success? Please post the ouput of

cat /home/hugo/.Xresources

Offline

#5 2013-07-17 21:22:32

Hurricane
Member
Registered: 2012-10-18
Posts: 77

Re: [SOLVED].Xresources not being read

2ManyDogs wrote:

Have you ever been able to make this work? Have you used other .Xresources files with success? Please post the ouput of

cat /home/hugo/.Xresources

I've never needed to use this approach before. Here's the output you asked for

$ cat /home/hugo/.Xresources
xcursor.Theme: /usr/share/icons/oxy-neon

Urxvt.foreground: white
Urxvt.background: black

Computers are extra dumb, which is why it takes extra smart people to make them work.

Offline

#6 2013-07-17 21:22:43

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

Re: [SOLVED].Xresources not being read

This is not relevant to the posted question, but as is, your call to xscreensaver will never execute.

In addition to trying after loggin in, can you post that .Xresources content.  And have you tested it in both mate and i3?

EDIT: wow, I was slow in this one - I guess this has been covered now.

But Urxvt is wrong, it should be URxvt.

I've never seen a cursor theme set in this way, is there documentation for that?  I'd suggest using xsetroot for the cursor.  EDIT2: I found it, but that should be Xcursor, not xcursor.

Last edited by Trilby (2013-07-17 21:27:37)


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

Offline

#7 2013-07-17 21:28:25

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED].Xresources not being read

According to the wiki page, the correct format for the xcursor line is:

Xcursor.theme: foobar

Correct capitalization does tend to matter in .Xresources. Try

Xcursor.theme: /usr/share/icons/oxy-neon

(edit) And if this does not work, I would second Trilby's suggestion for xsetroot.

Last edited by 2ManyDogs (2013-07-17 21:32:05)

Offline

#8 2013-07-17 21:35:18

Hurricane
Member
Registered: 2012-10-18
Posts: 77

Re: [SOLVED].Xresources not being read

Okay URxvt's colors changed but the cursor theme didn't, so I guess I might have to try using xsetroot. Thanks everybody for the help.

Edit: I did try fixing the capitalization errors in the xcursor part of the file but it didn't work.

Last edited by Hurricane (2013-07-17 21:36:03)


Computers are extra dumb, which is why it takes extra smart people to make them work.

Offline

#9 2013-07-17 21:42:15

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED].Xresources not being read

Are you sure you installed the cursor theme correctly? Did you read the entire wiki page on cursor themes? There seem to be a lot of reasons why this could be broken.

Last edited by 2ManyDogs (2013-07-17 21:42:41)

Offline

#10 2013-07-17 21:46:40

Hurricane
Member
Registered: 2012-10-18
Posts: 77

Re: [SOLVED].Xresources not being read

2ManyDogs wrote:

Are you sure you installed the cursor theme correctly? Did you read the entire wiki page on cursor themes? There seem to be a lot of reasons why this could be broken.

I did install the cursor theme correctly. I followed the instructions in the Arch Wiki. The cursor works under Mate.


Computers are extra dumb, which is why it takes extra smart people to make them work.

Offline

#11 2013-07-17 22:06:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED].Xresources not being read

If this thread is solved, please share your solution:
https://wiki.archlinux.org/index.php/Fo … way_Street


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2013-07-17 22:11:53

Hurricane
Member
Registered: 2012-10-18
Posts: 77

Re: [SOLVED].Xresources not being read

jasonwryan wrote:

If this thread is solved, please share your solution:
https://wiki.archlinux.org/index.php/Fo … way_Street

The solution is there, but I'll be more explicit.

.Xresources is case sensitive. A couple of letters were capitalized when they needed to be lowercase and vice-versa.


Computers are extra dumb, which is why it takes extra smart people to make them work.

Offline

Board footer

Powered by FluxBB