You are not logged in.

#1 2012-06-12 14:33:02

Beemer
Member
Registered: 2012-05-02
Posts: 13

[SOLVED] Reverting Guake terminal tab names back to 'Terminal #'

The new version of Guake (0.4.3) implemented 'Better Tab Titling'.  This means that instead of a new tab name being 'Terminal #' (where # is an auto incrementing integer), it instead forced the title to be equal to the VTE prompt.

My issues were that there was no way to set a preference to switch back (as I prefer the simple tab name) and that tab names could/would take a very large amount of space (as it would put my whole username@server:/path/to/where/i/am/at).

So smile  I figured out how to fix and thought I'd share in case anyone else would like to switch back:
NOTE:  I believe python is spacing-sensitive (please correct me if I'm wrong).  All the lines (added/edited) are indented 8 spaces.

edit /usr/bin/guake

find: self.selected_tab = None

after that line, add:

        # holds the number of created tabs. This counter will not be
        # reset to avoid problems of repeated tab names.
        self.tab_counter = 0

find: def on_terminal_title_changed(self, vte, box):

after that line add:

        return

find: Adding a new radio button to the tabbar

the next line will read:
        label = box.terminal.get_window_title() or _("Terminal")

change to:
        label = box.terminal.get_window_title() or _('Terminal %s') % self.tab_counter

find self.tabs.pack_start(bnt, expand=False, padding=1)

after that line add:

        self.tab_counter += 1


After editing the file, restart Guake for the change to take effect.

Beemer

Offline

#2 2012-06-17 21:09:05

daroczig
Member
Registered: 2011-02-16
Posts: 28
Website

Re: [SOLVED] Reverting Guake terminal tab names back to 'Terminal #'

Awesome, thanks! I have filed an isse: http://guake.org/ticket/471

Offline

#3 2012-06-22 13:09:09

rawing
Member
Registered: 2009-11-08
Posts: 10

Re: [SOLVED] Reverting Guake terminal tab names back to 'Terminal #'

Could you please make a patch file?

diff -u /path/to/original/guake /path/to/modified/guake

Offline

#4 2012-06-22 13:51:43

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Reverting Guake terminal tab names back to 'Terminal #'

I have been using Guake for years and I think the tab bar is in the way. I disabled it a very long time ago and didn't look back.

Here are the shortcuts that I use:

"~" to toggle it.
Ctrl+T for a new tab (just like in Firefox, Chromium).
F1 and F2 for next and previous tab.
F3 close tab.


Basically, I don't need more than two tabs at a time; three tops, in very rare cases.

Hope it helps.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#5 2012-06-24 22:24:18

daroczig
Member
Registered: 2011-02-16
Posts: 28
Website

Re: [SOLVED] Reverting Guake terminal tab names back to 'Terminal #'

OMG, I could solve this problem easier then I thought after some peeks in `gconf-editor`:

gconftool-2 --set /apps/guake/general/use_vte_titles --type boolean false

Offline

Board footer

Powered by FluxBB