Created
December 8, 2016 07:34
-
-
Save Pandorin/e717247991ea71ac6ea18d6cfcc18912 to your computer and use it in GitHub Desktop.
TERMINATOR [select and copy]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) sudo vim /usr/share/terminator/terminatorlib/terminal.py | |
2) find and check def on_buttonpress | |
def on_buttonpress(self, widget, event): | |
"“"Handler for mouse events”“” | |
# Any button event should grab focus | |
widget.grab_focus() | |
if event.button == 1: | |
# Ctrl+leftclick on a URL should open it | |
if event.state & gtk.gdk.CONTROL_MASK == gtk.gdk.CONTROL_MASK: | |
url = self.check_for_url(event) | |
if url: | |
self.open_url(url, prepare=True) | |
elif event.button == 2: | |
# middleclick should paste the clipboard | |
self.paste_clipboard(True) | |
return(True) | |
elif event.button == 3: | |
# rightclick should display a context menu if Ctrl is not pressed | |
if event.state & gtk.gdk.CONTROL_MASK == 0: | |
self.popup_menu(widget, event) | |
return(True) | |
return(False) | |
3) Terminator Preferences -> Profiles -> tab “General” -> radiobutton “Copy on selection” |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment