Score:0

Execute Nautilus script with key combination

cn flag

I used the method described here to run custom scripts using a keyboard shortcut in Nautilus, which consists of dropping the script in ~/.local/share/nautilus/scripts and editing the file ~/.config/nautilus/scripts-accels to include the line <shortcut> <script_filename>.

It works, but only with standalone keys, even though the combination appears under scripts in the context menu when I use <Alt>+T as the shortcut. I tried changing the line to <Alt>T, <Alt>+t and many different variations with different modifiers and none worked.

I use Nautilus 3.36.3. Documentation was little help.

Score:0
cn flag

The correct notation is <Alt>t. Unfortunately, it is a hit and miss indeed. Apparently, not all Alt-cobinations are recognized. For me (on Ubuntu 21.10), <Alt>t also does not work. <Alt>q, <Alt>a doesn't, <Control><Alt>a however does. So for practical purposes, you will have to test and stick on a combination that works.

freshpasta avatar
cn flag
Thank you. Well that's unfortunate, I'll be sticking with F3 for now. I wonder if this is intended or a bug as I couldn't find mentions of either. If it's the latter I might file a bug report.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.