You are not logged in.

#1 2020-07-03 16:22:01

phonky
Member
Registered: 2008-12-19
Posts: 69

[SOLVED] Context-Menu not working for urxvt-unicode terminal on i3

I use i3 as desktop environment and community/rxvt-unicode as my terminal.

I choose that terminal because it is lightweight.

However, recently I was reading about it (to know about all its features), and came to this:
https://opensource.com/article/19/10/wh … t-terminal

There, the blogger raised the Context-menu function

press and hold Ctrl+Right Mouse Button over a selection in rxvt

This does not work for my setup with i3. I don't get any menu with this combination.
Nor can I get to the Selection menu nor the `newline to spaces` function mentioned there.

I am surely still learning with this environment. So I have different settings scattered (and probably overriding each other...).
and I am not sure I understand how this works (for example just recently tried adding tabbing in
.extend.Xresources but I don't get tabs...)


.Xdefaults:

 1 URxvt.font: 12x2

.Xresources

1 #if __has_include(".extend.Xresources")
  2 #include ".extend.Xresources"
  3 #endif
  4 
  5 ! ^ The above lines are no comments!
  6 ! Leave them as they are if a file ~/.extend.Xresources is being used on your system.
  7 ! config can be added there or also here below.
  8 ! For comments use "!"
  9 
 10 Xft.dpi: 276 
 11 Xft.antialias: true
 12 Xft.hinting: true
 13 Xft.rgba: rgb
 14 Xft.autohint: false
 15 Xft.hintstyle: hintslight
 16 Xft.lcdfilter: lcddefault
 17 
 18 XTerm*background: #2b2b2b
 19 XTerm*foreground: #e7e7e7
 20 XTerm*pointerColor: #16A085
 21 XTerm*faceName: Fixed
 22 XTerm*faceSize: 10
 23 
 24 !URxvt.font: xft:NotoMono-Regular:size=7
 25 URxvt.font: xft:Noto Sans Mono:size=7
 26 
 27 URxvt.keysym.Control-Up:   \033[1;5A
 28 URxvt.keysym.Control-Down:    \033[1;5B
 29 URxvt.keysym.Control-Left:    \033[1;5D
 30 URxvt.keysym.Control-Right:    \033[1;5C
 31 
 32 URxvt.perl-ext-common: selection-to-clipboard,resize-font
 33 
 34 URxvt.clipboard.autocopy: true
 35 URxvt.keysym.M-c: perl:clipboard:copy
 36 URxvt.keysym.M-v: perl:clipboard:paste
 37 
 38 ! change to dark gray background
 39 URxvt.keysym.C-9: command:\033]11;#777777\007
 40 URxvt.keysym.C-8: command:\033]11;#fdf6e3\007

.extend.Xresources (all settings below line 74 seem to be disabled)

  1 URxvt.perl-ext-common : default,tabbed
  2 URxvt.tabbed.tabbar-fg: 2
  3 URxvt.tabbed.tabbar-bg: 0
  4 URxvt.tabbed.tab-fg:    3
  5 URxvt.tabbed.tab-bg:    0
  6 
  7 *background:                      #272827
  8 *foreground:                      #657b83
  9 *fading:                          15
 10 *fadeColor:                       black
 11 *cursorColor:                     #16A085
 12 *pointerColorBackground:          #2B2C2B
 13 *pointerColorForeground:          #16A085
 14 
 15 !! black dark/light
 16 *color0:                          #232423
 17 *color8:                          #282928
 18 
 19 !! red dark/light
 20 *color1:                          #BA2922
 21 *color9:                          #CC372C
 22 
 23 !! green dark/light
 24 !!*color2:                          #7E807E
 25 !!*color10:                         #8D8F8D
 26 *color2:                          #19942e
 27 *color10:                         #87cb92
 28 
 29 !! yellow dark/light
 30 !!*color3:                          #4C4F4D
 31 *color3:                          #eef50d
 32 *color11:                         #f7ec2b
 33 
 34 !! blue dark/light
 35 *color4:                          #16A085
 36 *color12:                         #13BF9D
 37 
 38 !! magenta dark/light
 39 *color5:                          #43746A
 40 *color13:                         #487D72
 41 
 42 !! cyan dark/light
 43 *color6:                          #00CCCC
 44 *color14:                         #00D1D1
 45 
 46 !! white dark/light
 47 *color7:                          #E0E0E0
 48 *color15:                         #E8E8E8
 49 
 50 Xcursor.theme: Maia-Cursor
 51 Xcursor.size:                     0
 52 
 53 XTerm*background:                 #272827
 54 XTerm*foreground:                 #fdf6e3
 55 XTerm*reverseVideo:               on
 56 XTerm*faceName:                   Terminus:size=11:antialias=true
 57 XTerm*selectToClipboard:          true
 58 
 59 URxvt.font:                       9x15
 60 
 61 ! alternative font settings with 'terminus':
 62 !URxvt.font:      -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1
 63 !URxvt.bold.font: -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso10646-1
 64 !! terminus names see end of file!
 65 
 66 !URxvt.depth:                      32
 67 !URxvt.background:                 [80]#000000
 68 URxvt*scrollBar:                  false
 69 URxvt*mouseWheelScrollPage:       false
 70 URxvt*cursorBlink:                true
 71 URxvt*background:                 black
 72 URxvt*foreground:                 grey
 73 URxvt*saveLines:                  9999
 74 
 75 ! for 'fake' transparency (without Compton) uncomment the following three lines
 76 ! URxvt*inheritPixmap:            true
 77 ! URxvt*transparent:              true
 78 ! URxvt*shading:                  138
 79 
 80 ! other possible settings:
 81 ! Rxvt.perl-ext-common:            ...,clipboard
 82 ! URxvt.keysym.M-C-c:              perl:clipboard:copy
 83 ! URxvt.keysym.M-v:                perl:clipboard:paste
 84 ! URxvt.keysym.M-C-v:              perl:clipboard:paste_escaped
 85 ! URxvt*termName:                  string
 86 ! URxvt*geometry:                  geometry
 87 ! URxvt*chdir:                     string
 88 ! URxvt*reverseVideo:              boolean
 89 ! URxvt*loginShell:                boolean
 90 ! URxvt*multiClickTime:            number
 91 ! URxvt*jumpScroll:                boolean
 92 ! URxvt*skipScroll:                boolean
 93 ! URxvt*pastableTabs:              boolean
 94 ! URxvt*scrollstyle:               plain
 95 ! URxvt*scrollBar_right:           boolean
 96 ! URxvt*scrollBar_floating:        true
 97 ! URxvt*scrollBar_align:           mode
 98 ! URxvt*thickness:                 number
 99 ! URxvt*scrollTtyOutput:           boolean
100 ! URxvt*scrollTtyKeypress:         boolean
101 ! URxvt*scrollWithBuffer:          boolean
102 ! URxvt*tintColor:                 !7DA55
103 ! URxvt*blurRadius:                HxV
104 ! URxvt*fading:                    number
105 ! URxvt*fadeColor:                 color
106 ! URxvt*utmpInhibit:               boolean
107 ! URxvt*urgentOnBell:              boolean
108 ! URxvt*visualBell:                boolean
109 ! URxvt*mapAlert:                  boolean
110 ! URxvt*meta8:                     boolean
111 ! URxvt*tripleclickwords:          boolean
112 ! URxvt*insecure:                  boolean
113 ! URxvt*cursorUnderline:           boolean
114 ! URxvt*pointerBlank:              boolean
115 ! URxvt*color0:                    color
116 ! URxvt*color1:                    color
117 ! URxvt*color2:                    color
118 ! URxvt*color3:                    color
119 ! URxvt*color4:                    color
120 ! URxvt*color5:                    color
121 ! URxvt*color6:                    color
122 ! URxvt*color7:                    color
123 ! URxvt*color8:                    color
124 ! URxvt*color9:                    color
125 ! URxvt*color10:                   color
126 ! URxvt*color11:                   color
127 ! URxvt*color12:                   color
128 ! URxvt*color13:                   color
129 ! URxvt*color14:                   color
130 ! URxvt*color15:                   color
131 ! URxvt*colorBD:                   color
132 ! URxvt*colorIT:                   color
133 ! URxvt*colorUL:                   color
134 ! URxvt*colorRV:                   color
135 ! URxvt*underlineColor:            color
136 ! URxvt*scrollColor:               color
137 ! URxvt*troughColor:               color
138 ! URxvt*highlightColor:            color
139 ! URxvt*highlightTextColor:        color
140 ! URxvt*cursorColor:               color
141 ! URxvt*cursorColor2:              color
142 ! URxvt*pointerColor:              color
143 ! URxvt*pointerColor2:             color
144 ! URxvt*borderColor:               color
145 ! URxvt*iconFile:                  file
146 ! URxvt*font:                      fontname
147 ! URxvt*boldFont:                  fontname
148 ! URxvt*italicFont:                fontname
149 ! URxvt*boldItalicFont:            fontname
150 ! URxvt*intensityStyles:           boolean
151 ! URxvt*inputMethod:               name
152 ! URxvt*preeditType:               style
153 ! URxvt*imLocale:                  string
154 ! URxvt*imFont:                    fontname
155 ! URxvt*title:                     string
156 ! URxvt*iconName:                  string
157 ! URxvt*buffered:                  boolean
158 ! URxvt*depth:                     number
159 ! URxvt*visual:                    number
160 ! URxvt*transient-for:             windowid
161 ! URxvt*override-redirect:         boolean
162 ! URxvt*hold:                      boolean
163 ! URxvt*externalBorder:            number
164 ! URxvt*internalBorder:            number
165 ! URxvt*borderLess:                true
166 ! URxvt*lineSpace:                 number
167 ! URxvt*letterSpace:               number
168 ! URxvt*skipBuiltinGlyphs:         boolean
169 ! URxvt*pointerBlankDelay:         number
170 ! URxvt*backspacekey:              string
171 ! URxvt*deletekey:                 string
172 ! URxvt*print-pipe:                string
173 ! URxvt*modifier:                  modifier
174 ! URxvt*cutchars:                  string
175 ! URxvt*answerbackString:          string
176 ! URxvt*secondaryScreen:           boolean
177 ! URxvt*secondaryScroll:           boolean
178 ! URxvt*perl-lib:                  string
179 ! URxvt*perl-eval:                 perl-eval
180 ! URxvt*perl-ext-common:           string
181 ! URxvt*perl-ext:                  string
182 ! URxvt*iso14755:                  boolean
183 ! URxvt*iso14755_52:               boolean
184 ! URxvt*xrm:                       string
185 ! URxvt*keysym.sym:                keysym
186 ! URxvt*background.border:         boolean
187 ! URxvt*background.expr:           string
188 ! URxvt*background.interval:       seconds
189 ! URxvt*bell-command:              string
190 ! URxvt*kuake.hotkey:              string
191 ! URxvt*matcher.button:            string
192 ! URxvt*matcher.launcher:          string
193 ! URxvt*matcher.launcher.*:        string
194 ! URxvt*matcher.pattern.*:         string
195 ! URxvt*matcher.rend.*:            string
196 ! URxvt*remote-clipboard.fetch:    string
197 ! URxvt*remote-clipboard.store:    string
198 ! URxvt*searchable-scrollback:     string
199 ! URxvt*selection-autotransform.*: string
200 ! URxvt*selection-pastebin.cmd:    string
201 ! URxvt*selection-pastebin.url:    string
202 ! URxvt*selection.pattern-0:       string
203 ! URxvt*tab-bg:                    colour
204 ! URxvt*tab-fg:                    colour
205 ! URxvt*tabbar-bg:                 colour
206 ! URxvt*tabbar-fg:                 colour
207 ! URxvt*url-launcher:              string
208 
209 ! The Terminus font uses the following X-names:
210 ! -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
211 ! -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
212 ! -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1
213 ! -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso10646-1
214 ! -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso10646-1
215 ! -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1
216 ! -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso10646-1
217 ! -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso10646-1
218 ! -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso10646-1
219 ! -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso10646-1
220 ! -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso10646-1
221 ! -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso10646-1
222 ! -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso10646-1
223 ! -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso10646-1
224 ! -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso10646-1

Last edited by phonky (2020-07-06 00:43:08)

Offline

#2 2020-07-04 11:18:22

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: [SOLVED] Context-Menu not working for urxvt-unicode terminal on i3

in Xresources, a ! denotes a comment.
And a #include only works if you have a C preprocessor, such as GNU CPP, installed.

I use urxvt under openbox, and all context menus mentioned in that article work as expected.
I don't have any of those fancy URxvt*options you have in your Xresources.

About urxvt-tabbed: requires gtk2-perl.

Offline

#3 2020-07-04 12:20:32

seth
Member
Registered: 2012-09-03
Posts: 50,970

Re: [SOLVED] Context-Menu not working for urxvt-unicode terminal on i3

URxvt.perl-ext-common: selection-to-clipboard,resize-font

Removes the default extensions, the value at least overrides the one in .extend.Xresource (if that's loaded at all) and while idk which extension is required, some is.

So clean this up and ensure the default extensions are loaded.
You can query " xrdb -q | grep perl"

Offline

#4 2020-07-06 00:42:29

phonky
Member
Registered: 2008-12-19
Posts: 69

Re: [SOLVED] Context-Menu not working for urxvt-unicode terminal on i3

seth wrote:
URxvt.perl-ext-common: selection-to-clipboard,resize-font

Removes the default extensions, the value at least overrides the one in .extend.Xresource (if that's loaded at all) and while idk which extension is required, some is.

So clean this up and ensure the default extensions are loaded.
You can query " xrdb -q | grep perl"

YES!
I actually came to the same conclusion, by trial and error, but thanks to confirm.
I think the `default` extension is required.

And thanks for the querying tip!

Offline

Board footer

Powered by FluxBB