You are not logged in.

#1 2016-02-17 10:52:46

cedlemo
Member
From: France
Registered: 2016-02-16
Posts: 12
Website

Topinambour a gnome terminal based on the gtk3/vte3 ruby bindings

Topinambour (https://github.com/cedlemo/topinambour)

First a little screenshot:

gtRGcZ7.png?1

The beginning

I have written this little terminal in ruby for my daily usage. The main ideas was:

  • I should be able to easily change the colors and fonts in my terminal emulator

  • there should only have tab management (no split screen, I use tmux for that)

  • the configuration should be done/saved in a css file

  • if I share it, the other users should be able to easily modify it in ruby

Now, the features

  • The tab management is done using previews (you can drag and drop them), you can specify a name for each tabs:

  • You can change the fonts or colors throught 2 little widgets that you can display using shortcuts or buttons in the headerbar:

  • Urls, emails, Css colors patterns can be clicked. This open the related application (web client or mail) or a dialog window for the colors https://raw.github.com/cedlemo/topinamb … _color.gif

  • The configuration can be saved in a css file $HOME/.config/topinambour/topinambour.css. I have added a little Css editor (that must be improved), that allows you
    to modify the configuration/theme of topinambour and see the effect of the changes you made.

Dependancies

  • gtk3

  • ruby

  • gnome-icon-them-symbolic

  • fish (optional)

Install and try

In order to install it you can:

  • use the gem command (--user-install option for to install only in the user profil not on the system)

    gem install topinambour
  • using the git repository:

    git clone https://github.com/cedlemo/topinambour.git
    cd topinambour
    #if needed build the gem with
    gem build topinambour.gemspec
    gem install --local --user-install topinambour-x.x.x.gem 

In both case remember to add the local ruby binary path in you PATH variable:

 export PATH="${PATH}:${HOME}/gem/ruby/2.3.0/bin"

You can try it without installation using a clone:

git clone https://github.com/cedlemo/topinambour.git
cd topinambour/bin
./topinambour

Warning

By default topinambour use the fish shell as a default shell. You can specify another one, this is not difficult, just create the css configuration file.

mkdir -p ~/.config/topinambour

Then create a topinambour.css file in this directory with the following content:

* {
    -TopinambourWindow-shell: "/usr/bin/bash";
}

Extending /modifying

That is easy too. topinambour looks first in the directory $HOME/.config/topinambour/lib in order to load all the libs. Just copy the lib files of topinambour there and start to add remove what you want.

For example if you have installed topinambour locally using the gem utility do (be carefull with the version of topinambour that you use):

cp ~/.gem/ruby/2.3.0/gems/topinambour-1.2.3/lib/* ~/.config/topinambour/lib

from the cloned git repository:

cp topinambour/lib/* ~/.config/topinambour/lib

https://github.com/cedlemo/topinambour

I hope that you can enjoy it.

Ressources:

https://rubymonk.com/
https://github.com/ruby-gnome2/ruby-gnome2
https://github.com/ruby-gnome2/ruby-gno … ample/misc
https://github.com/ruby-gnome2/ruby-gno … e/tutorial

**Edit**
I have changed the name because it already exists a Germinal program. Germinal --> Topinambour

Last edited by cedlemo (2016-04-23 13:46:41)

Offline

#2 2016-02-17 11:02:48

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: Topinambour a gnome terminal based on the gtk3/vte3 ruby bindings

Hi cedlemo, welcome to the forums. Thank you for sharing this, and for using thumbnails instead of full-sized images. However, the thumbnails are still too big (both in dimensions and filesize), and some of our members are on slow or metered connections. Please could you shrink them down a bit further, or replace the thumbnails with links.

See https://wiki.archlinux.org/index.php/Fo … s_and_code for acceptable image sizes.

Thanks.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-02-17 11:42:26

cedlemo
Member
From: France
Registered: 2016-02-16
Posts: 12
Website

Re: Topinambour a gnome terminal based on the gtk3/vte3 ruby bindings

Hi WorMzy,

I have removed most of the screenshots and use just one at the beginning.

Regards

Offline

#4 2016-04-09 14:10:16

cedlemo
Member
From: France
Registered: 2016-02-16
Posts: 12
Website

Re: Topinambour a gnome terminal based on the gtk3/vte3 ruby bindings

Topinambour has been updated to the version 1.0.7

  • Thanks to the support of the GLib::Regex of the GLib module from the Ruby-GNOME2 project, topinambour can now recognize url, mail, or file patterns and let you open them with the application defined by your system.

  • The css configuration management (loading, modifying, saving) has been improved.

  • Some bugs has been fixed.

Install :

gem install topinambour

Offline

#5 2016-04-23 13:45:50

cedlemo
Member
From: France
Registered: 2016-02-16
Posts: 12
Website

Re: Topinambour a gnome terminal based on the gtk3/vte3 ruby bindings

Topinambour has been updated to the version 1.0.8

  • Fixed some bugs under gnome 3.20

  • Removed the resize window that was useless

  • Code cleaned

  • Css Color color patterns ("rgba(100,120,10,0.5) or "#00ff00" for example) can be clicked in the terminal. This open a dialog window where you can visualize the color, change it and send it to the clipboard. see here for a demonstration: https://raw.github.com/cedlemo/topinamb … _color.gif

Install:

gem install topinambour

Offline

Board footer

Powered by FluxBB