Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] urxvt - can't resize from within terminal
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zje
n00b
n00b


Joined: 06 Sep 2012
Posts: 31

PostPosted: Wed Jan 21, 2015 11:28 pm    Post subject: [SOLVED] urxvt - can't resize from within terminal Reply with quote

I would like to resize the font dynamically in urxvt, so I found this python configuration:
https://github.com/simmel/urxvt-resize-font/blob/master/resize-font

However, that doesn't work. Even adding this inside .Xresources doesn't change the size (but the actual font used changes):
Code:

Urxvt.font: xft:Inconsolata:pixelsize=20
URxvt.resize-font.smaller: C-minus
URxvt.resize-font.bigger: C-plus
URxvt.resize-font.reset: C-equal
URxvt.resize-font.show: C-question
Urxvt.perl-ext-common: default,tabbed,matcher,resize-font,-tabbed


I asked on irc and it was suggested that I run this:
Code:

urxvt -fn 'xft:Inconsolata:pixelsize=20'


Which incidentally did start urxvt with a larger size. However, I still can't change the font size dynamically. E.g., this does not result in a 20 point font:
Code:

 printf '\33]50;%s\007' "xft:Inconsolata:pixelsize=20"


Has anyone had this problem? I'm using awesome as my WM if that helps.

Thanks!


Last edited by zje on Thu Jan 22, 2015 7:28 pm; edited 2 times in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Jan 22, 2015 1:29 am    Post subject: Reply with quote

zje ...

this 'resize-font' is in ~/.urxvt/perl? ... and is 'URxvt.perl-lib: /home/user/.urxvt/perl' defined in .Xresources?

HTH & best ... khay
Back to top
View user's profile Send private message
zje
n00b
n00b


Joined: 06 Sep 2012
Posts: 31

PostPosted: Thu Jan 22, 2015 2:24 am    Post subject: Reply with quote

Perl-lib wasn't defined, but it is now. My main problem is that I can't get dynamic resizing to work at all, every "printf" or "echo" example I've tried doesn't work. I'm not sure what's wrong...

Thanks!
Back to top
View user's profile Send private message
zje
n00b
n00b


Joined: 06 Sep 2012
Posts: 31

PostPosted: Thu Jan 22, 2015 2:33 am    Post subject: Reply with quote

Okay, it's definitely my window manager. It wasn't just the fact that I was starting the terminal with those arguments that made it work - it's whether or not I start it using the default mod+enter awesome shortcut or run it directly.
Something with my environment is not happy running from the shortcut, but I haven't narrowed it down yet.

I'll post an update when I figure it out...

UPDATE: I just decided to run urxvtd, spawned from my xinitrc. My shortcut lauches urxvtc. This setup listens to my configuration properly, and I probably would've ended up running the daemon anyway. I still don't know what's wrong, but this seems to work just fine.

Should I still mark this as solved?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Jan 22, 2015 9:15 am    Post subject: Re: urxvt - can't resize from within terminal Reply with quote

zje wrote:
Code:
Urxvt.font: xft:Inconsolata:pixelsize=20
[...]
Urxvt.perl-ext-common: default,tabbed,matcher,resize-font,-tabbed

zje ... I didn't notice initally but the above may be case sensitive ... so, change to "URxvt.". Also, when you start your xsession are you doing the following?

~/.xinitrc
Code:
xrdb -load ~/.Xresources

Probably the issue was Perl-lib not being defined (so the resize-font not found) ... restarting your xsession probably corrected that, hence it now working.

best ... khay
Back to top
View user's profile Send private message
zje
n00b
n00b


Joined: 06 Sep 2012
Posts: 31

PostPosted: Thu Jan 22, 2015 7:27 pm    Post subject: Reply with quote

You are correct khay! It just so happened that I introduced urxvtd at the same time I fixed the case on those settings. I should definitely be more patient and methodical (vs. changing things multiple times), but my buggy video driver tends to make things wig out when I restart X, so I try to keep that to a minimum.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum