Closed rudevdr closed 6 years ago
What is the actual invocation that starts both those terminals? Are you by chance passing -name
argument?
Actually yes..this is the code in the i3 config. As you can see, I am passing the -name
args for urxvt
bindsym $mod+Return exec --no-startup-id urxvt -name floating_no_border #urxvt floating
bindsym $mod+Shift+Return exec --no-startup-id urxvt
for_window [class="URxvt" instance="floating"] floating enable
for_window [class="URxvt" instance="no_border"] border 1pixel
for_window [class="URxvt" instance="floating_no_border"] floating enable border 1pixel
Could you also provide output of xrdb -query
?
URxvt*termName: rxvt-unicode-256color
Xft.lcdfilter: lcddefault
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.autohint: 0
Xft.rgba: rgb
Xft.antialias: 1
URxvt.perl-ext-common: default,tabbedex,matcher,selection-to-clipboard,resize-font
URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: true
URxvt*scrollTtyKeypress: true
URxvt.iso14755: false
URxvt.iso14755_52: false
URxvt.urgentOnBell: true
URxvt.cursorBlink: true
URxvt.transparent: false
URxvt.shading: 20
URxvt.scrollBar: false
URxvt.saveLines: 100000
URxvt.mouseWheelScrollPage: true
URxvt.borderless: true
URxvt.geometry: 120x40
URxvt.font: xft:Hack-Regular:pixelsize=14,xft:Symbola
URxvt.boldFont: xft:Hack-Bold:pixelsize=14:weight=bold,xft:Symbola
URxvt.italicFont: xft:Hack-RegularOblique:pixelsize=14:slant=italic,xft:Symbola
URxvt.tabbed.tabbar-fg: 2
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg: 15
URxvt.tabbed.tab-bg: 0
URxvt.tabbed.autohide: true
URxvt.tabbed.bell-timeout: 1
URxvt.tabbed.bell-fg: 0
URxvt.tabbed.bell-bg: 2
URxvt.tabbed.bell-tab-fg: 0
URxvt.tabbed.bell-tab-bg: 2
URxvt.keysym.Control-t: perl:tabbedex:new_tab
URxvt.keysym.Control-k: perl:tabbedex:next_tab
URxvt.keysym.Control-j: perl:tabbedex:prev_tab
urxvt.keysym.Control-1: perl:tabbedex:goto_tab_1
urxvt.keysym.Control-2: perl:tabbedex:goto_tab_2
urxvt.keysym.Control-3: perl:tabbedex:goto_tab_3
urxvt.keysym.Control-4: perl:tabbedex:goto_tab_4
urxvt.keysym.Control-5: perl:tabbedex:goto_tab_5
urxvt.keysym.Control-6: perl:tabbedex:goto_tab_6
urxvt.keysym.Control-7: perl:tabbedex:goto_tab_7
urxvt.keysym.Control-8: perl:tabbedex:goto_tab_8
urxvt.keysym.Control-9: perl:tabbedex:goto_tab_9
urxvt.keysym.Control-0: perl:tabbedex:goto_tab_10
URxvt.keysym.Shift-Control-V: eval:paste_clipboard
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
URxvt*pointerBlank: true
*background: #282828
*foreground: #ebdbb2
*color0: #282828
*color8: #928374
*color1: #cc241d
*color9: #fb4934
*color2: #98971a
*color10: #b8bb26
*color3: #d79921
*color11: #fabd2f
*color4: #458588
*color12: #83a598
*color5: #b16286
*color13: #d3869b
*color6: #689d6a
*color14: #8ec07c
*color7: #a89984
*color15: #ebdbb2
If you duplicate the keysyms with floating_no_border
as the resource class than things should start working. I don’t understand why URxvt
wouldn’t work though. Have you compiled urxvt by hand perhaps?
How to use floating_no_border
as the resource class? Like urxvt.keysym.Control-1: floating_no_border:perl:tabbedex:goto_tab_1
this?
Use it instead of urxvt
at the beginning, for example floating_no_border.keysym.Control-1: perl:tabbedex:goto_tab_1
.
Thanks a lot! Everything works as expected now.
Also I have not installed urxvt from source but from arch community repo's package rxvt-unicode
.
Using URxvt
as the prefix should work (I don’t think that maintainer of the package changed resource class). You also seem to be using URxvt
for other options. With that prefix you won’t have to repeat the kysyms for every -name
.
Oh yeah! Its works. I could have sworn earlier it didn't work.
The issues were really silly. I should learn more about xresources. Thanks for your help.
I am using your awesome urxvt extention in urxvt in Arch Linux.
I am using this config in my
~/.Xdefaults
Everything works expected when urxvt is launched normally, but when urxvt is launched without borders in i3wm like
border 1pixel
, goto_tab doesn't seem to work.Also, I don't know why but while keybinding
urxvt
works but notURxvt
, so therefore in keysym they are in small letters.Here is a video demonstration. The first terminal is without border and second one has border, where goto_tab_N works.