Questions tagged [nautilus-script]

An executable shell script for nautilus

Filter by
Sorted by
Tagged with
3
votes
1answer
271 views

Filemanager-actions not available for Groovy

I have been using filemanager-actions to implement some custom actions in my Files (Nautilus) application. I am a non-LTS Ubuntu user. I have used all the versions of Ubuntu since 18.10 on my main ...
0
votes
2answers
67 views

How assign delete key to nautilus script in Ubuntu 20.04

I want to assign Delete key to my script. It works when I add to scripts-accels: <Primary>Delete myScript.sh but Delete myScript.sh keeps default behavior (move to trash) and ignores my script....
0
votes
0answers
73 views

Bash script / Nautilus script to merge JPG and MP3 file into MP4

I started to working with BASH script run from Nautilus. What it try to do: Simply select a JPG (Full HD resolution) and a MP3 file in Nautilus and run script on them to merge them together to a MP4 ...
0
votes
1answer
80 views

Combine JPG and MP3 to MP4 using FileManager-Actions and shell script (Ubuntu 18.04)

What I try to achieve: Expanding my Nautilus context menu by an action to simply select a JPG-file and a MP3-file to combine them to a MP4-file like I already do in terminal by this command: ffmpeg -r ...
1
vote
1answer
143 views

Nautilus script - Bash script to extract current folder

I would like to use a Nautilus script that calls a Python script of mine, passing as a required argument the path of the current folder. This would avoid me the trouble of refactoring the Python ...
1
vote
1answer
1k views

Nautilus Bash Script, how to delete old files after FFMPEG conversion?

I am writing my first ever Nautilus script but I am not sure how to continue. What do I need to add to this nautilus script so that all MP4 files in the folder are deleted after FFMPEG finishes ...
1
vote
1answer
146 views

How to write python script which opens last working directory in nautilus (when we launch nautilus)?

Elementary OS's file manager opens the last working directory whenever we launch that file manager. How can I write a script for Nautilus which will work same as given example above?
4
votes
1answer
133 views

Nautilus script that creates a password protected ZIP

In the latest versions of ubuntu, right clicking on a file doesn't give you the possibility to create password protected archives (see this question). I still need to do that kind of things though so ...
2
votes
0answers
118 views

Is it possibile to create Nautilus custom column generated by script?

Is there any possibility to add a custom (my own) column to nautilus folder view? Content of that column would be generated by script. For example, I have got an additional information about ...
1
vote
2answers
844 views

How to run C/C++ program using context menu (right click option)

I want to learn C/C++. Here my requirement is not to use any IDE. I want to run my C/C++ program in following way, I will write "Cpp1.cpp" //which will print "Hello World". Save the file and close. ...
2
votes
3answers
520 views

Nautilus (context menu) script to quickly rename a file using $RANDOM - but how?

I want to add a context menu entry to nautilus with a custom script but I don't really know how to write this (I'm very inexperienced with this stuff). Basically I want to rename selected files with $...
7
votes
3answers
3k views

Script to merge Video and subs then delete the existing files (non recursive)

I've been using mkvmerge to merge a video file and subtitles, I'm using the following command mkvmerge -o output.mkv video.mp4 subtitles.srt Which is working fine but as you can probably guess this ...
1
vote
2answers
1k views

Show symlink target in nautilus

Is it possible to show the target of a symbolic link in Nautilus as a column in the listing of a folder? Please don't point me to ls -l, I do know about it and use it, but it would be nice for UI ...
23
votes
1answer
499 views

How to get IMDb info in Nautilus properties?

I want to see IMDb information about movie files on my Nautilus properties screen, using Nautilus scripts or actions. It's a really complex thing to do, I understand that, but the article Extending ...
3
votes
2answers
1k views

Nautilus - no support for hard links?

I finally got round to studying and understanding hard links in my quest to check I have understood the basics, of which I have managed to skip a lot of. After realizing how brilliant they are, I ...
8
votes
1answer
2k views

Can I make nautilus show book covers as thumbnails for Epub files?

The Problem Can I make nautilus show thumbnails of book covers for files in .epub format? It shows thumbnails for pdf files but not .epub. Is this achievable by adding a thumbnailer? Each of these ....
2
votes
2answers
6k views

Can I rename files within a folder with the name of the parent folder? [duplicate]

this is a unique situation, which can be better explained with an example Example 1 let's say I have a folder called A, B.mkv and C.srt are two files in the folder, I want to rename these files to A....
10
votes
1answer
1k views

How to set folder icons of multiple folders automatically?

How to set the first picture of every folder as its folder icon? The question linked above has an answer consisting a script which has been working for me. It just needs a little improvement. What ...
2
votes
1answer
1k views

How to Sort/Search video files on the basis of properties?

This is a unique situation I've more than 500 Movies in a partition. what I wanted to do is search movie files on the basis of Property Video Dimension, so that I could delete anything which is below ...
4
votes
2answers
1k views

How can I set a shortcut key to open the currently selected file in nautilus?

Tired of right clicking Open With to open a file in a specific application, I would like to set a shortcut to open a file in e.g. Gimp. I don't want to change default open action though. (Ubuntu 14.04)...
1
vote
3answers
233 views

Nautilus right click script for base64

i would like to add nautilus script for right click,like convert selected file with base64 but no luck.Regular command in terminal is like: base64 input.jpg output.txt This is my closest script to ...
13
votes
4answers
3k views

How to open Nautilus directory in current Terminal?

I don't like to have dozens of terminals opened. Is there a way to add Open in current Terminal instead of Open in Terminal when using Nautilus?
2
votes
1answer
69 views

Nautilus script or action to install selected debs

When multiple need to be installed, a such option will be very useful. What command should be put into a script in .local/share/nautilus/scripts? Or in Nautilus-Actions Configurations Tool?
4
votes
2answers
555 views

Open another instance of current directory in Nautilus

In Microsoft Windows, when you are open File Explorer at a specific path, you can press Ctrl+N to open another file explorer in the same path. But in Ubuntu when I try Ctrl+N it opens Home Folder. How ...
0
votes
1answer
164 views

Nautilus Scripts - Select every second file

Is it possible to write a script to select every second file I found something similar http://g-scripts.sourceforge.net/cat-filesysmgt.php but it's been taken off line. I create numerous routine ...
1
vote
1answer
211 views

How to obtain list of copied files in Nautilus

Imagine I copied several files in Nautilus to paste them somewhere else; how could I obtain the list of copied filenames to, for example, use it in a script?
3
votes
1answer
315 views

Shell script not working [duplicate]

For a suggested solution in another topic I tried to write my first shell script. It did not work as intended. In order to get a quick access to the folder /opt/lampp/htdocs when using XAMPP I tried ...
2
votes
3answers
702 views

Open the parent folder of a symbolic link via right-click?

We can open a parent folder of any file using nautilus script like #!/bin/bash nautilus "$1" If I do this script on symbolic link which is on the ~/Desktop, then it will open the Desktop itself. ...
0
votes
1answer
930 views

How to use Evince to loop over ps files in current folder?

I love Evince, I use it as an image viewer of my eps figures (a one-page document). It's super light-weight and clean. I also like how it re-renders the ps documents as you zoom-in and zoom-out, this ...
11
votes
5answers
12k views

How To Rename Multiple Photos and Videos Based on EXIF Data?

I often import photos and videos (mostly having JPG and MOV extensions) from digital cameras and tablets to my PC, and I would ideally like to see them sorted according to the dates and times they ...
1
vote
1answer
213 views

Command prompt in nautilus window

I am on an Acer Aspire 5920, running Ubuntu 12.04 32 bit. Earlier, by mistake, I exited a terminal during: sudo apt-get upgrade The computer said there were internal errors, and I should restart. ...
0
votes
2answers
395 views

Nautilus Script for ESET scanner

I have installed Eset antivirus as per the instructions given here All is working well but instead of gui I want to have a responsive terminal option available too thus I created a symlink via: sudo ...
0
votes
1answer
216 views

Right Click on Open Space with scripts in nautilus 13.04

In 12.04, I was able to create a script in the ~.gnome2/nautilus-scripts folder and it was available when I 'right click'. I have a script that creates a folder structure for new customers: mkdir ...
13
votes
3answers
13k views

How to get Nautilus-scripts working Nautilus?

How to get Nautilus-scripts (Terminal here, Root Nautilus, Root Gedit) working on Ubuntu 13.04? I copied those scripts to .gnome2/nautilus-scripts folder but it dose not seem to work anymore
3
votes
2answers
273 views

Integration of archives navigation in nautilus

Would there be a tool to integrate the navigation in the content of an archive in Nautilus, instead of using Archive Manager?
2
votes
1answer
160 views

Is it possible to have Nautilus Scripts menu items without icons?

I have opted for menus without icons system-wide for reasons of simplicity and speed. But I still get icons in Nautilus context menus. I don't mind the icons on Open With menu items too much, but all ...
2
votes
2answers
437 views

Is it possible to assign/change custom icons for files in a batch / from commandline?

Actually, I'm talking about icons for Nautilus Scripts, and I have many of them. Although I prefer menus without icons, I cannot prevent icons from being displayed in Nautilus context menu items Open ...
5
votes
4answers
2k views

(Nautilus Scripts) $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; have problems with space

So the script is: #!/bin/bash for line in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do if [[ "$line" = "" || "$line" = " " ]]; then exit else unzip "$line" -d "temp" fi done It ...
15
votes
1answer
12k views

How can I install a Nautilus script?

I found a nautilus script I would like to use. How do I install it?
5
votes
1answer
1k views

Nautilus tags/labels/marks/columns for folders/files

Is there any way how to mark folders or files with tags(or labels, new columns or whatever) in Nautilus? It would be nice to sort marked folders or files through this tags. Especially my first idea ...
10
votes
1answer
3k views

How do I make a custom right click command for nautilus? [duplicate]

Possible Duplicate: How to customize the context menu in Nautilus? I'm trying to make a Mark as executable command for the right click in nautilus for a faster work flow. I came up with this ...
10
votes
2answers
865 views

How to open a folder in a new pane in Nautilus?

When I rightclick a folder in Nautilus I find these options "Open in New Window" and "Open in New Tab". Is it possible to add an option "Open in New Pane" which would open the selected folder in a new ...
4
votes
1answer
4k views

Nautilus sftp via command line

I regularly connect to a server via ssh. Lately I've started copying files to and from it, and I find scp very annoying, mainly because bash cannot auto complete over ssh. I find the connect to ...
1
vote
1answer
338 views

Nautilus scripts in top level of contextual menu

Is it possible to have Nautilus scripts appear in the top level of Nautilus' contextual menu, rather than in a Scripts folder?
1
vote
2answers
989 views

How to change desktop background to the next/prev background image with mouse right cick menu depending on wallch program?

I want a script or a tool to change the desktop background using mouse right click menu on the desktop to find in the menu Next and Previous buttons for the next and past background, but depending on ...
0
votes
1answer
2k views

can not run vlc from shell script

I am trying to develop a nautilus script which read selected filepath and en-queue in vlc player. Problem is if filename is space separated then we need to add extra '\' in file name. But when i run ...