You are not logged in.

#1 2020-07-17 08:23:47

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 661

Solved! Terminal urxvt in tabbed mode

Hi!

I prefer to use terminal in tabbed mode. I have for some time in vain, searched the webb how to enable tabbed mode in urxvt.
I have not got simple tricks like replacing the line "URxvt.perl-ext-common: default,matcher" with "URxvt.perl-ext-common: default,matcher,tabbed" in .Xresources, and tips on https://wiki.archlinux.org/index.php/Rx … and_tricks, to work.

So how to fix tabbed urxvt terminal?

Last edited by rbh (2020-07-17 18:26:58)


// Regards rbh

Offline

#2 2020-07-17 09:22:38

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,102
Website

Re: Solved! Terminal urxvt in tabbed mode

Urxvt has perl extensions, user ones seem to live in .urxvt/ext, so for example

https://github.com/gryf/tabbed

a. is installed by copying 'tabbed' into .urxvt/ext
b. changing your .Xresources, I've added this

! Tabbed
URxvt.perl-ext: tabbed
URxvt.tabbed.new-button: false
URxvt.tabbed.tab-numbers: false

! Tabbed colors
URxvt.tabbed.tabbar-fg: 15
URxvt.tabbed.tabbar-bg: 3
URxvt.tabbed.tab-fg: 8
URxvt.tabbed.tab-bg: 0
URxvt.tabbed.active-fg: 1
URxvt.tabbed.actives-fg: 5
URxvt.tabbed.actived-fg: 4

c. refreshing the config

xrdb ~/.Xresources

d. Restart urxvt

WRDwhQkb.png

edit: I see now there is actually another default 'tabbed' included in

/usr/lib/x86_64-linux-gnu/urxvt/perl/tabbed

and I can enable that by (1ts removing any traces of previous extension)

URxvt.perl-ext-common:  default,matcher,selection-to-clipboard,tabbed

and goto c.

Last edited by brontosaurusrex (2020-07-17 16:36:19)

Offline

#3 2020-07-17 12:16:55

ohnonot
...again
Registered: 2015-09-29
Posts: 4,882
Website

Re: Solved! Terminal urxvt in tabbed mode

I don't see any reason why the latter should not work.
I just tried:

  • add the line "URxvt*perl-ext-common: tabbed" to my ~/.Xresources

  • xrdb ~/.Xresources

  • restart urxvt

=> profit!


BL quote proposals to this thread please.
my repos / my repos
---
Thank you for posting direct image links!

Offline

#4 2020-07-17 12:24:55

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 661

Re: Solved! Terminal urxvt in tabbed mode

brontosaurusrex wrote:

Urxvt has perl extensions, user ones seem to live in .urxvt/ext,

Ah, see now that i had read sloppy. I had copied the script to ~/.urxvt only! Now it worked for a short while. If I by misstake enterd Shift up by misstake, the terminal hang. So, I tried solution two instead. I renamed ~/.urxvt to ~/.urxvt.bak. In ~/.Xresources, deleted the code:

! Tabbed
URxvt.perl-ext: tabbed
URxvt.tabbed.new-button: false
URxvt.tabbed.tab-numbers: false

! Tabbed colors
URxvt.tabbed.tabbar-fg: 15
URxvt.tabbed.tabbar-bg: 3
URxvt.tabbed.tab-fg: 8
URxvt.tabbed.tab-bg: 0
URxvt.tabbed.active-fg: 1
URxvt.tabbed.actives-fg: 5
URxvt.tabbed.actived-fg: 4

and added the line "URxvt.perl-ext-common:  default,matcher,selection-to-clipboard,tabbed" instead. When refreshing config I got error "xrdb:  "URxvt.perl-ext-common" on line 45 overrides entry on line 10". So, I went back to solution 1. Then I get error: "xrdb: colon missing on line 10, ignoring line"
Also tried to enable /usr/lib/x86_64-linux-gnu/urxvt/perl/tabbedm with both the line "URxvt.perl-ext-common:  default,matcher,selection-to-clipboard,tabbed", followed by the tabbed code from b. Same error.

So, I'm still without tabs in urxvt...


// Regards rbh

Offline

#5 2020-07-17 12:31:00

ohnonot
...again
Registered: 2015-09-29
Posts: 4,882
Website

Re: Solved! Terminal urxvt in tabbed mode

Did you add the missing colon?


BL quote proposals to this thread please.
my repos / my repos
---
Thank you for posting direct image links!

Offline

#6 2020-07-17 13:26:22

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 661

Re: Solved! Terminal urxvt in tabbed mode

ohnonot wrote:

Did you add the missing colon?

I would if I known where to add it...

Searched for and did not find any "URxvt.perl-ext-common*" or "URxvt*".
Line 10 in .Xresources is empty. File /usr/bin/xrdb, is binary.

I am lost...


// Regards rbh

Offline

#7 2020-07-17 16:35:26

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,102
Website

Re: Solved! Terminal urxvt in tabbed mode

Start with empty .urxvt/ext and blank .Xresources and add stuff and see where it breaks.

Offline

#8 2020-07-17 18:25:34

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 661

Re: Solved! Terminal urxvt in tabbed mode

After a hard days work, I laid down in the TV-sofa with the newly bought Lenovo T440 (used with 13 GB ram for 100£). I had worked with tabbed tabbed rxvt-unicode on that pc för some days. After upstart, I found that tabbed urxvt worked!

The last thing I had done was adding a new file: ~/.Xdefaults, containing:

!TABS
URxvt.perl-ext-common : default,tabbed
URxvt.tabbed.tabbar-fg: 2
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg:    3
URxvt.tabbed.tab-bg:    0

And in ~/.Xresources, replaced line "URxvt.perl-ext-common: default,matcher" with "URxvt.perl-ext-common: default,matcher,tabbed".
So I copied the files over to the stubborn workstation and voila, tabbed terminal there to!

Solved...

Last edited by rbh (2020-07-17 18:26:08)


// Regards rbh

Offline

#9 2020-07-17 18:41:11

ohnonot
...again
Registered: 2015-09-29
Posts: 4,882
Website

Re: Solved! Terminal urxvt in tabbed mode

Great!
I'm pretty sure you need only either ~/.Xdefaults or ~/.Xresources.


BL quote proposals to this thread please.
my repos / my repos
---
Thank you for posting direct image links!

Offline

#10 2020-07-17 19:03:29

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 661

Re: Solved! Terminal urxvt in tabbed mode

ohnonot wrote:

I'm pretty sure you need only either ~/.Xdefaults or ~/.Xresources.

Tested to rename ~/.Xdefaults to ~/.Xdefaults.bak, pasted the lines in the file into ~/.Xresources. Updatet configs and got error:

xrdb:  "URxvt.perl-ext-common" on line 51 overrides entry on line 44

So, maybe it is unnessecary, but just now I can not solve it without both.


// Regards rbh

Offline

#11 2020-07-17 19:39:52

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 661

Re: Solved! Terminal urxvt in tabbed mode

ohnonot wrote:

I'm pretty sure you need only either ~/.Xdefaults or ~/.Xresources.

You were right!

I erased the line "URxvt.perl-ext-common : default,tabbed" in ~/.Xresources and deleted ~/.Xdefaults.

So, the affected lines in ~/.Xresources can be:

!TABS
URxvt.tabbed.tabbar-fg: 2
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg:    3
URxvt.tabbed.tab-bg:    0

! Clickble URLs
! URxvt.perl-ext-common: default,matcher
URxvt.perl-ext-common: default,matcher,tabbed
URxvt.url-launcher: /usr/bin/x-www-browser
URxvt.matcher.button: 3

Edit:
I saw now that in ~/.Xresources, commenting is done with a bang (!), not a pipe (|) as I have used...
I have changed the code above for line "URxvt.perl-ext-common: default,matcher"

Last edited by rbh (2020-07-18 09:28:13)


// Regards rbh

Offline

#12 2020-07-18 01:03:02

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 994

Re: Solved! Terminal urxvt in tabbed mode

Nice and what are the hotkeys for opening a tab and closing them or even moving them? Can't figure that one.


Real Men Use Linux

Offline

#13 2020-07-18 08:08:20

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 661

Re: Solved! Terminal urxvt in tabbed mode

DeepDayze wrote:

Nice and what are the hotkeys for opening a tab and closing them or even moving them? Can't figure that one.

Shift arrow down opens new tab. Shift left/right moves to other tab. Exit to close tab. Move / reorder tabs are not possible, I think.


// Regards rbh

Offline

#14 2020-07-18 09:38:08

twoion
ほやほや
Registered: 2015-08-10
Posts: 2,943

Re: Solved! Terminal urxvt in tabbed mode

If you're looking for a good terminal with tab support you should also check out kitty. It has tabs (and panes, and a lot of other stuff) built in and is using OpenGL; for me it's faster than URXVT and does not have the ludicrous limitation of approximating 16bit RGB colour space using 256 colours. https://sw.kovidgoyal.net/kitty/#


Per aspera ad astra.

Online

#15 2020-07-18 15:09:33

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 661

Re: Solved! Terminal urxvt in tabbed mode

twoion wrote:

a good terminal with tab support you should also check out kitty. It has tabs (and panes, and a lot of other stuff) built in and is using OpenGL

Thanks. Had a quick look at it. A little surprising is that it takes duuble som much memory than Lxterminal.
but on newer machines(<10 years) with more RAM, it could be wort it. Specially to enable startup sessions is nice.


// Regards rbh

Offline

#16 2020-07-19 04:05:21

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 994

Re: Solved! Terminal urxvt in tabbed mode

rbh wrote:
DeepDayze wrote:

Nice and what are the hotkeys for opening a tab and closing them or even moving them? Can't figure that one.

Shift arrow down opens new tab. Shift left/right moves to other tab. Exit to close tab. Move / reorder tabs are not possible, I think.

Ahh got it working...forgot to add "tabbed" to the URxvt.perl-ext-common extension parameters. Yes alas can't move the tabs around.


Real Men Use Linux

Offline

Board footer

Powered by FluxBB