You are not logged in.

#1 2019-05-05 04:14:14

almajiro
Member
Registered: 2019-05-05
Posts: 7
Website

[SOLVED] Can't change urxvt's font-size using key-binding

I usually use 12px font size. but sometimes i want to change to 18px.

So, I install the urxvt-perls package using pacman and configure the .Xresources file. but my key-binding is not working.

This is my .Xresouces

! URXvt Configs
URxvt.perl-ext-common:      resize-font,default,url-select
URxvt.iso14755:             false
URxvt.iso14755_52:          false
URxvt.font:                 xft:ProFontIIx Nerd Font-11,\
                            xft:DejaVu Sans Mono for Powerline-14,\
                            xft:Siji,\
                            xft:IPAGothic
URxvt.letterspace:          -1
URxvt.scrollBar:            false
URxvt.cursorBlink:          true

URxvt.keysym.M-u:           perl:url-select:select_next
URxvt.url-select.launcher:  /usr/bin/xdg-open
URxvt.url-select.underline: true

URxvt.keysym.M-j:           perl:resize-font:smaller
URxvt.keysym.M-k:           perl:resize-font:bigger

URxvt.inputMethod:          fcitx
URxvt.preeditType:          OnTheSpot

URxvt.depth:                32
URxvt.transparent:          false
URxvt.shading:              50
URxvt*scrollTtyOutput:      false
URxvt*scrollTtyKeypress:    true

*.foreground:               [90]#c0b18b
*.background:               [85]#1f1f1f
*.cursorColor:              [90]#c0b18b
*.color0:                   [90]#4a3637
*.color8:                   [90]#4a3637
*.color1:                   [90]#d17b49
*.color9:                   [90]#d17b49
*.color2:                   [90]#7b8748
*.color10:                  [90]#7b8748
*.color3:                   [90]#af865a
*.color11:                  [90]#af865a
*.color4:                   [90]#535c5c
*.color12:                  [90]#535c5c
*.color5:                   [90]#775759
*.color13:                  [90]#775759
*.color6:                   [90]#6d715e
*.color14:                  [90]#6d715e
*.color7:                   [90]#c0b18b
*.color15:                  [90]#c0b18b

Xcursor.size:               20

url-select is working. but resize-font doesn't work.

I've been so many google but i cannot resolve it.

Can anyone help me?

Last edited by almajiro (2019-05-05 22:11:55)


arch + i3 + polybar + rofi
GitHub

Offline

#2 2019-05-05 04:29:06

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

Re: [SOLVED] Can't change urxvt's font-size using key-binding

urxvt-perls does not provide this functionality...

See https://wiki.archlinux.org/index.php/Rx … on_the_fly


Moving to NC.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-05-05 04:41:25

almajiro
Member
Registered: 2019-05-05
Posts: 7
Website

Re: [SOLVED] Can't change urxvt's font-size using key-binding

Sorry, I am beginners about ArchLinux. I cannot understand what is NC.

If you say about urxvt-resize-font-git. I have installed it.


arch + i3 + polybar + rofi
GitHub

Offline

#4 2019-05-05 06:41:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,517

Re: [SOLVED] Can't change urxvt's font-size using key-binding

"newbie corner"
Where did you pick the shortcut config, even the script advises you different…

URxvt.keysym.M-j:           resize-font:smaller
URxvt.keysym.M-k:           resize-font:bigger

Don't forget to merge xrdb and that it will only apply to new processes…

Offline

#5 2019-05-05 07:41:58

almajiro
Member
Registered: 2019-05-05
Posts: 7
Website

Re: [SOLVED] Can't change urxvt's font-size using key-binding

I changed the .Xresources and run xrdb .Xresources.
But it didn't work...


arch + i3 + polybar + rofi
GitHub

Offline

#6 2019-05-05 07:43:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,517

Re: [SOLVED] Can't change urxvt's font-size using key-binding

Do the default shortcuts work (ctrl + +/-)?

Offline

#7 2019-05-05 07:48:02

almajiro
Member
Registered: 2019-05-05
Posts: 7
Website

Re: [SOLVED] Can't change urxvt's font-size using key-binding

It doesn't work....

Other extension is work well. but resize-font and xim-onthespot is not working.


arch + i3 + polybar + rofi
GitHub

Offline

#8 2019-05-05 08:00:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,517

Re: [SOLVED] Can't change urxvt's font-size using key-binding

Works fine here (just tried, though I just copied the script into ~/.urxvt/ext/).
As for xim, no idea but you're apparently using fcitx - no idea whether that might mess w/ certain shortcuts. *shrug*

Offline

#9 2019-05-05 08:19:35

almajiro
Member
Registered: 2019-05-05
Posts: 7
Website

Re: [SOLVED] Can't change urxvt's font-size using key-binding

It works!!!!!

I create the directory .urxvt/ext then copy the files from /usr/lib/urxvt/perl.

And I change the .Xresouces little bit.

URxvt.font: xft:ProFontIIx Nerd Font-11, xft:DejaVu Sans Mono for Powerline-14, xft:Siji, xft:IPAGothic

to

URxvt.font: xft:ProFontIIx Nerd Font:size=11, xft:DejaVu Sans Mono for Powerline:size=14, xft:IPAGothic:size=12

I think the script wants to know fonts default size.

thanks for your advice. smile

Last edited by almajiro (2019-05-05 08:20:22)


arch + i3 + polybar + rofi
GitHub

Offline

#10 2019-05-05 10:24:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,517

Re: [SOLVED] Can't change urxvt's font-size using key-binding

So is  it now working?

Offline

#11 2019-05-05 17:43:54

almajiro
Member
Registered: 2019-05-05
Posts: 7
Website

Re: [SOLVED] Can't change urxvt's font-size using key-binding

Yes, it is working.

But xim-onthespot is not working.


arch + i3 + polybar + rofi
GitHub

Offline

#12 2019-05-05 19:33:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,517

Re: [SOLVED] Can't change urxvt's font-size using key-binding

As mentioned, I don't see how XIM can work if you're using fcitx…
However, this is certainly a topic for a different thread.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#13 2019-05-05 22:13:31

almajiro
Member
Registered: 2019-05-05
Posts: 7
Website

Re: [SOLVED] Can't change urxvt's font-size using key-binding

OK, i will open new topic.

Thank you.


arch + i3 + polybar + rofi
GitHub

Offline

Board footer

Powered by FluxBB