You are not logged in.

#1 2012-11-13 18:18:20

RogerS
Member
From: Sydney, NSW
Registered: 2012-02-16
Posts: 43
Website

Can't move Xterm window after making new Xresources

Hi all!

So, I've just installed Arch (not for the first time, but it's been a while), and am doing a little customizing. I wanted to change the background and foreground colors in xterm, so after perusing the arch wiki Xterm and Xresources pages, I made a very simple .Xresources file, in my home dir, that consists solely of:

xterm*background: #001b33
xterm*foreground: #FFFFFF

and then ran

xrdb ~/.Xresources

and now, when I open an xterm, it is stuck in the upper left hand corner of my screen. I'm thinking I made a mistake by not running

xrdb -merge ~/.Xresources

instead, but since I didn't have a pre-existing .Xresources, I didn't think it would matter. Live and learn.

So, any suggestions on what I can do to either get back my old resources, or just be able to move that xterm window again? I do seem to be able to move other windows without issue, so hopefully, it's not affecting anything else.


Thank you,

Rog

Last edited by RogerS (2012-11-15 04:18:41)

Offline

#2 2012-11-13 19:04:00

RogerS
Member
From: Sydney, NSW
Registered: 2012-02-16
Posts: 43
Website

Re: Can't move Xterm window after making new Xresources

Well, oddly, though I've not rebooted, or restarted x, the problem seems to have solved itself. If anybody could add some insight as to why this may have happened, I would appreciate it.

Offline

#3 2012-11-15 04:21:51

RogerS
Member
From: Sydney, NSW
Registered: 2012-02-16
Posts: 43
Website

Re: Can't move Xterm window after making new Xresources

And the problem is back. If I reboot, I'll have to run

xrdb ~/.Xresources

again to get xterm looking the way I want - if I don't, it goes back to the default xterm appearance. Either way, after rebooting, if I open xterm, it's stuck up in the upper left hand corner, and cannot be moved. Sometimes, after 5-10 minutes, it'll be able to be moved again...but sometimes not.

I'm really very frustrated by this, and hope somebody can point me in the right direction, troubleshooting-wise.

Offline

#4 2012-11-15 04:53:17

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

Re: Can't move Xterm window after making new Xresources


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-11-15 05:21:53

RogerS
Member
From: Sydney, NSW
Registered: 2012-02-16
Posts: 43
Website

Re: Can't move Xterm window after making new Xresources

I assume you're pointing me at this line:

If you do not use a desktop environment, you probably need to add the following line to your ~/.xinitrc:

But I use Gnome3, which is a DE, so does that still apply?

Offline

#6 2012-11-15 05:30:59

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Can't move Xterm window after making new Xresources

Actually, I think he was pointing you to

  Adding to xinitrc

If you do not use a desktop environment, you probably need to add the following line to your ~/.xinitrc:

[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources

but since gnome gdm doesn't resource this file I don't know it it's particularly relevant.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#7 2012-11-15 05:39:42

RogerS
Member
From: Sydney, NSW
Registered: 2012-02-16
Posts: 43
Website

Re: Can't move Xterm window after making new Xresources

Thanks, bgc1954.

Btw - the issue with xterm not using the .Xresources until I run xrdb is not that big a deal to me - what I'm really concerned with is the xterm being stuck in the upper left hand corner until it decides to release itself.

Offline

#8 2012-11-15 05:51:35

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

Re: Can't move Xterm window after making new Xresources

RogerS wrote:

But I use Gnome3, which is a DE, so does that still apply?

You might have mentioned that earlier...

Launch xterm from another terminal and see what, if anything, it tells you.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2012-11-15 06:04:52

RogerS
Member
From: Sydney, NSW
Registered: 2012-02-16
Posts: 43
Website

Re: Can't move Xterm window after making new Xresources

jasonwryan wrote:
RogerS wrote:

But I use Gnome3, which is a DE, so does that still apply?

You might have mentioned that earlier...

Launch xterm from another terminal and see what, if anything, it tells you.

I don't know that it was relevant, given that my main issue is, as the title of the thread suggests, the not being able to move xterm issue. Looking back, I see I was unclear about that. I'll try not to let that happen again.

Anyways, when I run xterm from xterm, it says Warning: locale not supported by C library, locale  unchanged

Oddly, the xterm that was spawned by the original xterm was not locked into the corner position. Equally oddly, I'm finding that if I start xterm for the first time from the drop down applications menu, rather than from the dock, I don't have the problem, and no matter where I launch it from after that, the problem does not repeat itself. I have no idea what to make of this.

Offline

#10 2012-11-15 06:16:49

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

Re: Can't move Xterm window after making new Xresources

First, make sure you have your locale set correctly.

Then, once that is sorted, if it still happens have a look at the dock thing.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2012-11-15 06:43:20

RogerS
Member
From: Sydney, NSW
Registered: 2012-02-16
Posts: 43
Website

Re: Can't move Xterm window after making new Xresources

Well, that had me chasing around for a minute. Looks like I had a typo in my locale.conf, but the locale wiki entry said that xterm has issues handling UTF-8, unless run as uxterm, which I am now doing.

However, the problem still holds, and now I'm not getting any output from the terminal. Once again, I am not sure how to proceed.

Offline

#12 2012-11-15 06:59:40

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

Re: Can't move Xterm window after making new Xresources

Then it appears to be narrowed down to how the dock launches it: I'd investigate that...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB