You are not logged in.

#1 2017-06-28 22:14:05

piccolo_daimao
Member
Registered: 2016-01-30
Posts: 4

urxvt graphical glitches on restart in Wayland on Gnome 3

I'm trying to configure urxvt to my liking, but I'm having an issue with the font (and other settings) glitching when I restart my computer. If I open up a new urxvt window after restarting my computer, the fonts and the terminal window are squished ever so slightly, and some letters only half load. Here's a screenshot:

glitched terminal

Now, I've been able to fix this issue by using xrdb to load my .Xdefaults file:

xrdb -load ~/.Xdefaults

Obviously it doesn't fix the terminal window, but opening a new one has the proper settings. Oddly enough this fix stays even if I immediately use xrdb to remove the .Xresources file:

xrdb -remove ~/.Xdefaults

which is what is strange to me. It feels kind of like the old solution of turning it off and back on again, despite not actually doing so.

Here's a screenshot of loading, then unloading Xdefaults, followed by opening a new (now fixed) urxvt window:

glitched and fixed terminal

I'm using .Xdefaults instead of the recommended .Xresources because Wayland doesn't source .Xresources on startup, but according to this post, urxvt sources .Xdefaults on startup.

Before using .Xdefaults, I wrote a systemd user service that, upon login, would

xrdb -load ~/.Xresources

, and this oddly had the same issue. I abandoned the systemd solution when using .Xdefaults had the same outcome with much less effort.

Here's my .Xdefaults:

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

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

!-------------------------------------------------------------------------------
! URxvt settings
! Colours lifted from Solarized (http://ethanschoonover.com/solarized)
! More info at:
! http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.1.pod
!-------------------------------------------------------------------------------

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

! Fonts
URxvt.allow_bold:           false
URxvt.font: xft:ProFont for Powerline:pixelsize=12

! Fix font space
URxvt.letterSpace: -1

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

! Perl extensions
URxvt.perl-ext-common:      default,matcher
URxvt.matcher.button:       1
URxvt.urlLauncher:          firefox

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

! Pointer
URxvt.pointerBlank:         true

!!Source http://github.com/altercation/solarized

*background: #002b36
*foreground: #657b83
!!*fading: 40
*fadeColor: #002b36
*cursorColor: #93a1a1
*pointerColorBackground: #586e75
*pointerColorForeground: #93a1a1

!! black dark/light
*color0: #073642
*color8: #002b36

!! red dark/light
*color1: #dc322f
*color9: #cb4b16

!! green dark/light
*color2: #859900
*color10: #586e75

!! yellow dark/light
*color3: #b58900
*color11: #657b83

!! blue dark/light
*color4: #268bd2
*color12: #839496

!! magenta dark/light
*color5: #d33682
*color13: #6c71c4

!! cyan dark/light
*color6: #2aa198
*color14: #93a1a1

!! white dark/light
*color7: #eee8d5
*color15: #fdf6e3

Any help would be much appreciated! Thanks!

Offline

Board footer

Powered by FluxBB