Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1843  / 1 Year ago, thu, february 9, 2023, 12:14:01

In Ubuntu I can create handy nautilus scripts by putting .sh files into ~/.gnome2/nautilus-scripts directory, and they will appear in the right click context menu in nautilus. In 11.04, I used to be able to assign keyboard shortcuts for my scripts by editing in the file ~/.gnome2/accels/nautilus, but now in 11.10 this file is no longer there to edit. So how can I create keyboard shortcuts for my nautilus-scripts?


More From » 11.10

 Answers
5

  1. Open gconf-editor and set /desktop/gnome/interface/can_change_accels to true. This lets you edit menu shortcuts.

  2. With Nautilus open, go to File menu, then Scripts, then hover over the Script you want to make a shortcut for.

  3. Press the key combination you want to assign to this Script. You should see it appear on the menu.

  4. Navigate off the menu and test it out.



You need to do this from the File menu of Nautilus...simply right-clicking in a Window to obtain the Scripts list does not allow adding shortcuts.



If you want to remove the shortcut, repeat steps 1 and 2, then press Backspace when your Script is highlighted on the menu. This should remove the shortcut.



Note: you might have to do a "nautilus -q" from Terminal before the gconf change takes effect.


[#42738] Thursday, February 9, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
donurp

Total Points: 328
Total Questions: 128
Total Answers: 123

Location: Faroe Islands
Member since Thu, Apr 8, 2021
3 Years ago
;