Skip to content

Commit

Permalink
Allows to config terminal toggle shorcut (closes #50)
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz committed Nov 14, 2020
1 parent 9ae588c commit b6a0b39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nautilus_terminal/nautilus_terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ def _build_accels(self):
self._nautilus_app.set_accels_for_action("nterm.paste", ["<Primary><Shift>v"])

# ntermwin
self._nautilus_app.set_accels_for_action("ntermwin.terminal-visible", ["F4"])
accel = self._settings.get_string("toggle-shortcut")
self._nautilus_app.set_accels_for_action("ntermwin.terminal-visible", [accel])

def _spawn_shell(self):
if self._shell_pid:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@
<summary>Nautilus Terminal at the bottom</summary>
<description>Nautilus Terminal will be shown at the bottom of the windows</description>
</key>
<key name="toggle-shortcut" type="s">
<default>"F4"</default>
<summary>Keyboard shortcut to toggle the terminal</summary>
<description>The keyboard shortcut to toggle Nautilus Terminal (e.g. "F4", "&lt;Ctrl&gt;F4")</description>
</key>
</schema>
</schemalist>

0 comments on commit b6a0b39

Please sign in to comment.