Skip to content

Instantly share code, notes, and snippets.

@mdamien
Forked from anonymous/gist:bf5883337ef9772a047499cbc333af42
Last active February 16, 2017 21:42
Show Gist options
  • Save mdamien/de3275d47fa33f7329d352eb2ed156d0 to your computer and use it in GitHub Desktop.
Save mdamien/de3275d47fa33f7329d352eb2ed156d0 to your computer and use it in GitHub Desktop.
Hacking on gnome-terminator
sudo apt-get install bzr python python-vte python-psutil
bzr branch lp:terminator
./terminator # it works !
hacking can begin, for example type `self.text = '<>< ' + text + ' ><>` in `WindowTitle.set_title' of `window.py`
then title will always begin with "<>< "
=== modified file 'terminatorlib/terminal.py'
--- terminatorlib/terminal.py 2017-02-13 23:07:47 +0000
+++ terminatorlib/terminal.py 2017-02-16 21:40:53 +0000
@@ -176,6 +176,11 @@
self.reconfigure()
self.vte.set_size(80, 24)
+ self.zoom_in()
+ self.zoom_in()
+ self.zoom_in()
+ self.zoom_in()
+
def get_vte(self):
"""This simply returns the vte widget we are using"""
return(self.vte)
=== modified file 'terminatorlib/window.py'
--- terminatorlib/window.py 2017-02-13 16:30:37 +0000
+++ terminatorlib/window.py 2017-02-16 21:28:50 +0000
@@ -909,7 +909,7 @@
def set_title(self, widget, text):
"""Set the title"""
if not self.forced:
- self.text = text
+ self.text = '<>< ' + text + ' ><>'
self.update()
def force_title(self, newtext):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment