added nautilus scripts (needs nautilus-python package)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# install_keyboard_shortcut=<Control><Shift>O
|
||||
|
||||
# Source the script 'common-functions.sh'.
|
||||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||||
ROOT_DIR=$(grep --only-matching "^.*scripts[^/]*" <<<"$SCRIPT_DIR")
|
||||
source "$ROOT_DIR/common-functions.sh"
|
||||
|
||||
_main() {
|
||||
local input_files=""
|
||||
|
||||
# Execute initial checks.
|
||||
_check_dependencies "command=xdg-open; package=xdg-utils"
|
||||
input_files=$(_get_files "par_type=all; par_max_items=20; par_get_pwd=true")
|
||||
|
||||
# Run the main process.
|
||||
_open_items_locations "$input_files"
|
||||
}
|
||||
|
||||
_main "$@"
|
||||
Reference in New Issue
Block a user