forked from thioshp/nemo_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScriptsReadme
executable file
·26 lines (15 loc) · 1.16 KB
/
ScriptsReadme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
INFO=$(zenity --info \
--text="All executable files in this folder will appear in the Scripts menu. Choosing a script from the menu will run that script.
When executed from a local folder, scripts will be passed the selected file names. When executed from a remote folder (e.g. a folder showing web or ftp content), scripts will be passed no parameters.
In all cases, the following environment variables will be set by NEMO, which the scripts may use:
NEMO_SCRIPT_SELECTED_FILE_PATHS: newline-delimited paths for selected files (only if local)
NEMO_SCRIPT_SELECTED_URIS: newline-delimited URIs for selected files
NEMO_SCRIPT_CURRENT_URI: URI for current location
NEMO_SCRIPT_WINDOW_GEOMETRY: position and size of current window
NEMO_SCRIPT_NEXT_PANE_SELECTED_FILE_PATHS: newline-delimited paths for selected files in the inactive pane of a split-view window (only if local)
NEMO_SCRIPT_NEXT_PANE_SELECTED_URIS: newline-delimited URIs for selected files in the inactive pane of a split-view window
NEMO_SCRIPT_NEXT_PANE_CURRENT_URI: URI for current location in the inactive pane of a split-view window
NEMO_HOME=~/.local/share/nemo/scripts"
)
echo $INFO