diff --git a/terminatorlib/config.py b/terminatorlib/config.py index f5b23254..6ede5a2a 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -101,6 +101,7 @@ DEFAULTS = { 'use_custom_url_handler': False, 'custom_url_handler' : '', 'disable_real_transparency' : False, + 'title_at_bottom' : False, 'title_hide_sizetext' : False, 'title_transmit_fg_color' : '#ffffff', 'title_transmit_bg_color' : '#c80003', diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index ee0fb777..968fe9cb 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -1333,6 +1333,22 @@ False 6 12 + + + Title bar at bottom (Require restart) + False + True + True + False + 0.5 + True + + + + 1 + 0 + + Hide size from title diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index edab9d6b..89232b6d 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -327,6 +327,11 @@ class PrefsEditor: #Hide size text from the title bar widget = guiget('title_hide_sizetextcheck') widget.set_active(self.config['title_hide_sizetext']) + + # title bar at bottom + widget = guiget('title_at_bottom_checkbutton') + widget.set_active(self.config['title_at_bottom']) + #Always split with profile widget = guiget('always_split_with_profile') widget.set_active(self.config['always_split_with_profile']) @@ -765,6 +770,11 @@ class PrefsEditor: self.config['title_hide_sizetext'] = widget.get_active() self.config.save() + def on_title_at_bottom_checkbutton_toggled(self, widget): + """Title at bottom setting changed""" + self.config['title_at_bottom'] = widget.get_active() + self.config.save() + def on_always_split_with_profile_toggled(self, widget): """Always split with profile setting changed""" self.config['always_split_with_profile'] = widget.get_active() diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 3c98239d..82997aa4 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -163,8 +163,13 @@ class Terminal(Gtk.VBox): self.searchbar.connect('end-search', self.on_search_done) self.show() - self.pack_start(self.titlebar, False, True, 0) - self.pack_start(self.terminalbox, True, True, 0) + if self.config['title_at_bottom']: + self.pack_start(self.terminalbox, True, True, 0) + self.pack_start(self.titlebar, False, True, 0) + else: + self.pack_start(self.titlebar, False, True, 0) + self.pack_start(self.terminalbox, True, True, 0) + self.pack_end(self.searchbar, True, True, 0) self.connect_signals()