Skip to content

Instantly share code, notes, and snippets.

@martinandersen3d
Forked from Dirack/nautilusScript.md
Last active March 13, 2022 21:26
Show Gist options
  • Save martinandersen3d/50dd35c601b5a3b495687c8a554a96b2 to your computer and use it in GitHub Desktop.
Save martinandersen3d/50dd35c601b5a3b495687c8a554a96b2 to your computer and use it in GitHub Desktop.
nautilus hotkeys shortcuts

Create a script called Terminal (yes, without a extension) inside the folder ~/.local/share/nautilus/scripts with the following content:

Create File: /home/m/.local/share/nautilus/scripts/Termial

#!/bin/sh
gnome-terminal

Create File: /home/m/.local/share/nautilus/scripts/code

#!/bin/sh
code

Make it executable, then close any Nautilus instance:

$ chmod +x Terminal
$ chmod +x code
$ nautilus -q

Create (or edit) the ~/.config/nautilus/scripts-accels file adding these lines:

<Control>less Terminal
F6 code

; Commented lines must have a space after the semicolon

; Examples of other key combinations:

; F12 Terminal

; F12 Terminal

; F12 Terminal

@Schlomon
Copy link

#!/bin/sh
code

needs to be

#!/bin/sh
code .

to open the current folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment