You are not logged in.

#1 2014-09-11 23:28:05

jeroentbt
Member
From: .be
Registered: 2014-03-29
Posts: 25

[Solved] Weird urxvtc disco

Hey,

I've been running urxvt without a problem for quite a while now.
Yesterday, I tried to set up urxvtd/c.

urxvtd is started by doing

exec urxvtd -q -o -f

in my ~/.i3/config

The first incantation of urxvtc works as expected.

xrdb -query

lists all settings, and they are nicely applied.

If I start another urxvtc, Xresources settings are ignored, giving me a white in stead of the desired black background. Extensions also don't work, etc...

xrdb -query

does list all settings as expected.

If I start yet another urxvtc, settings are again correctly applied. Another one, bad, good, bad, ...

Here's a little animation of this happening:
http://i.imgur.com/xGuo65T.gif

Any hints, ideas before I switch back to plain urxvt?



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
-- OP edit: sorry!

Last edited by jeroentbt (2014-09-12 09:02:38)

Offline

#2 2014-09-12 07:01:24

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [Solved] Weird urxvtc disco

Have you tried putting the settings in ~/.Xdefaults instead?
URxvt parses this file automatically.


Jin, Jîyan, Azadî

Offline

#3 2014-09-12 07:12:07

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

Re: [Solved] Weird urxvtc disco

You should be starting urxvtd in your xinitrc and bind urxvtc to a key in your i3 config.

Also, XResources is the recommended file to use.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-09-12 07:22:38

jeroentbt
Member
From: .be
Registered: 2014-03-29
Posts: 25

Re: [Solved] Weird urxvtc disco

Head_on_a_Stick wrote:

Have you tried putting the settings in ~/.Xdefaults instead?
URxvt parses this file automatically.

Tried that, no difference. sad

jasonwryan wrote:

You should be starting urxvtd in your xinitrc and bind urxvtc to a key in your i3 config.

Moved launching urxvtd to my xinitrc.
Issue persists. hmm
Launching urxvtc is bound in my i3 config. I was using dmenu in the animation as a demonstration only (to start the first two instances, after that I'm using the keys).

Offline

#5 2014-09-12 07:24:53

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

Re: [Solved] Weird urxvtc disco

Please paste your Xresources.

And remove the exec from the urxvtd command in xinitrc.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2014-09-12 07:33:53

jeroentbt
Member
From: .be
Registered: 2014-03-29
Posts: 25

Re: [Solved] Weird urxvtc disco

Here's my ~/.Xresources

!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------

Xft.dpi: 96
Xft.antialias: false
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight

!-------------------------------------------------------------------------------
! URxvt settings
! More info at:
! http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.1.pod
!-------------------------------------------------------------------------------

! extensions found:
! https://github.com/muennich/urxvt-perls
URxvt.perl-ext-common: default,matcher,keyboard-select,url-select,clipboard,color-themes

URxvt.keysym.M-Escape: perl:keyboard-select:activate
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.keysym.M-c:   perl:clipboard:copy
URxvt.keysym.M-v:   perl:clipboard:paste
URxvt.keysym.M-C-v: perl:clipboard:paste_escaped
! default is xsel, I am using xclip
URxvt.clipboard.copycmd:  xclip -i -selection clipboard
URxvt.clipboard.pastecmd: xclip -o -selection clipboard
!-----------------------------
! https://raw.githubusercontent.com/felixr/urxvt-theme-switch/master/color-themes

URxvt.keysym.M-C-n:  perl:color-themes:next
URxvt.keysym.M-C-p:  perl:color-themes:prev
URxvt.color-themes.themedir : /home/jeroen/.themes/urxvt
URxvt.color-themes.state-file: /home/jeroen/.urxvt-theme
URxvt.color-themes.autosave: 1
URxvt.keysym.M-C-l:  perl:color-themes:load-state
URxvt.keysym.M-C-s:  perl:color-themes:save-state

!-------------------------------------
! Clickable URLs

URxvt.url-launcher: /usr/bin/xdg-open
URxvt.matcher.button: 1
!-------------------------------------


! URxvt.depth: 32
URxvt.geometry: 90x30
URxvt.transparent: false
URxvt.fading: 0
! URxvt.urgentOnBell: true
URxvt.visualBell: true
URxvt.loginShell: true
URxvt.saveLines: 3500
URxvt.internalBorder: 0
URxvt.externalBorder: 0
URxvt.lineSpace: 0
! URxvt.visualBell: true

! Fonts
URxvt.allow_bold: false
/* URxvt.font: -*-terminus-medium-r-normal-*-12-120-72-72-c-60-iso8859-1 */
! URxvt*font: xft:Terminus:pixelsize=14
! URxvt*boldFont: xft:Terminus:pixelsize=14
URxvt*font: xft:Monospace:pixelsize=14
URxvt*boldFont: xft:Monospace:pixelsize=14

! Fix font space
URxvt*letterSpace: -1

! Scrollbar
URxvt.scrollStyle: rxvt
URxvt.scrollBar: false

! Cursor
URxvt.cursorBlink: true
URxvt.cursorColor: #657b83
URxvt.cursorUnderline: false

! Pointer
URxvt.pointerBlank: true

This is how I start the deamon now: (last part of ~/.xinitrc)

xflux -l 50 -g 4
urxvtd -q -o -f
exec i3

Offline

#7 2014-09-12 07:44:12

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

Re: [Solved] Weird urxvtc disco

Why are you starting every shell as a login shell?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2014-09-12 08:04:15

jeroentbt
Member
From: .be
Registered: 2014-03-29
Posts: 25

Re: [Solved] Weird urxvtc disco

jasonwryan wrote:

Why are you starting every shell as a login shell?

I do not mind having .bash_profile sourced every time I launch a term.
Should I be expecting bad things to happen?

Offline

#9 2014-09-12 08:08:27

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

Re: [Solved] Weird urxvtc disco

Well, you would normally have a reason for it. What is in your .bash_profile?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2014-09-12 08:15:42

jeroentbt
Member
From: .be
Registered: 2014-03-29
Posts: 25

Re: [Solved] Weird urxvtc disco

The reason is just plain laziness.
In my .bash_profile I source my .bashrc smile
and add to my PATH. Nothing I couldn't do in .bashrc...

But I don't think this would affect the disco behaviour, would it?

(and thank you for taking the time to look in to this!)

Last edited by jeroentbt (2014-09-12 08:15:59)

Offline

#11 2014-09-12 08:17:47

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

Re: [Solved] Weird urxvtc disco

Well, something weird is going on with your environment. Comment that line out, log out/in and see if that helps.

You aren't setting a TERM anywhere in your shell files, are you?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2014-09-12 08:33:37

jeroentbt
Member
From: .be
Registered: 2014-03-29
Posts: 25

Re: [Solved] Weird urxvtc disco

jasonwryan wrote:

Well, something weird is going on with your environment. Comment that line out, log out/in and see if that helps.

Same stuff keeps happening

jasonwryan wrote:

You aren't setting a TERM anywhere in your shell files, are you?

nope

$ echo $TERM
rxvt-unicode-256color

Offline

#13 2014-09-12 08:43:03

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

Re: [Solved] Weird urxvtc disco

Disable this stuff and see what happens...

URxvt.keysym.M-C-n:  perl:color-themes:next
URxvt.keysym.M-C-p:  perl:color-themes:prev
URxvt.color-themes.themedir : /home/jeroen/.themes/urxvt
URxvt.color-themes.state-file: /home/jeroen/.urxvt-theme
URxvt.color-themes.autosave: 1

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2014-09-12 08:55:17

jeroentbt
Member
From: .be
Registered: 2014-03-29
Posts: 25

Re: [Solved] Weird urxvtc disco

That didn't work.
However, this did:

! URxvt.perl-ext-common: default,matcher,keyboard-select,url-select,clipboard,color-themes
URxvt.perl-ext-common: default,matcher,keyboard-select,url-select,clipboard

All other extensions now do work in every urxvtc I launch. Jippie!

Thanks for putting me on the right track.
Now I can start to get the color-themes to work smile

Offline

#15 2014-09-12 09:00:10

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

Re: [Solved] Weird urxvtc disco

I suspect that the plugin issue is actually a compound one. If you do re-enable it, don't run urxvt as a login shell: set up your shell initialisation files properly; this will continue to bite you in other strange, difficult to diagnose ways.

Also, please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#16 2014-09-12 09:03:15

jeroentbt
Member
From: .be
Registered: 2014-03-29
Posts: 25

Re: [Solved] Weird urxvtc disco

Yes, I will have to do some digging.
Thanks again for your help!

Offline

Board footer

Powered by FluxBB