Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
# _ _ _ _ | ||
# __ _ ___ | |_| |__ | | ___| |_ _ _ | ||
# / _` |/ _ \| __| '_ \| |/ _ \ __| | | | | ||
#| (_| | (_) | |_| |_) | | __/ |_| |_| | | ||
# \__, |\___/ \__|_.__/|_|\___|\__|\__,_| | ||
# |___/ | ||
# https://www.youtube.com/user/gotbletu | ||
# https://twitter.com/gotbletu | ||
# https://plus.google.com/+gotbletu | ||
# https://github.com/gotbletu | ||
# gotbleu@gmail.com | ||
|
||
# Tutorial video: https://www.youtube.com/watch?v=bJkDGWoACtk | ||
# Custom Actions that can be used on any File Manager with Custom Actions Support | ||
|
||
# This script is to mount archives such as zip,rar,tar,tar.gz...etc | ||
# It can also work with some standard iso | ||
|
||
# Requirements: gvfs-mount | ||
|
||
# thunar custom actions | ||
# command: /path/to/script %N | ||
# note: %N is the selected filenames (without paths) | ||
# conditions: Other files | ||
|
||
myArray=( "$@" ) | ||
for arg in "${myArray[@]}"; do | ||
|
||
gvfs-mount "archive://$( ( echo -n 'file://' ; readlink -f "$arg" ; ) | perl -MURI::Escape -lne 'print uri_escape($_)')" | ||
|
||
done | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
# _ _ _ _ | ||
# __ _ ___ | |_| |__ | | ___| |_ _ _ | ||
# / _` |/ _ \| __| '_ \| |/ _ \ __| | | | | ||
#| (_| | (_) | |_| |_) | | __/ |_| |_| | | ||
# \__, |\___/ \__|_.__/|_|\___|\__|\__,_| | ||
# |___/ | ||
# https://www.youtube.com/user/gotbletu | ||
# https://twitter.com/gotbletu | ||
# https://plus.google.com/+gotbletu | ||
# https://github.com/gotbletu | ||
# gotbleu@gmail.com | ||
|
||
# Tutorial video: https://www.youtube.com/watch?v=bJkDGWoACtk | ||
# Custom Actions that can be used on any File Manager with Custom Actions Support | ||
|
||
# This script is to mount standard disc image files such as iso|bin|nrg|mdf|img without sudo permissions | ||
|
||
# Requirements: fuseiso | ||
|
||
# thunar custom actions | ||
# command: /path/to/script %N | ||
# alternative command: bash /path/to/script %N | ||
# note: %N is the selected filenames (without paths) | ||
# conditions: Other files | ||
# file pattern: *.iso;*.ISO;*.bin;*.BIN;*.nrg;*.NRG;*.mdf;*.MDF;*.img;*.IMG | ||
|
||
myArray=( "$@" ) | ||
for arg in "${myArray[@]}"; do | ||
|
||
fuseiso -n -p "$arg" "/tmp/$arg" | ||
xdg-open "/tmp/$arg" | ||
|
||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
# _ _ _ _ | ||
# __ _ ___ | |_| |__ | | ___| |_ _ _ | ||
# / _` |/ _ \| __| '_ \| |/ _ \ __| | | | | ||
#| (_| | (_) | |_| |_) | | __/ |_| |_| | | ||
# \__, |\___/ \__|_.__/|_|\___|\__|\__,_| | ||
# |___/ | ||
# https://www.youtube.com/user/gotbletu | ||
# https://twitter.com/gotbletu | ||
# https://plus.google.com/+gotbletu | ||
# https://github.com/gotbletu | ||
# gotbleu@gmail.com | ||
|
||
# Tutorial video: https://www.youtube.com/watch?v=bJkDGWoACtk | ||
# Custom Actions that can be used on any File Manager with Custom Actions Support | ||
|
||
# This script is to unmount disc images that was mounted by fuseiso | ||
|
||
# Requirements: fuse | ||
|
||
# thunar custom actions | ||
# command: /path/to/script %N | ||
# alternative command: bash /path/to/script %N | ||
# note: %N is the selected filenames (without paths) | ||
# conditions: Directory files | ||
# file pattern: *.iso;*.ISO;*.bin;*.BIN;*.nrg;*.NRG;*.mdf;*.MDF;*.img;*.IMG | ||
|
||
myArray=( "$@" ) | ||
for arg in "${myArray[@]}"; do | ||
|
||
fusermount -u "$arg" | ||
|
||
done | ||
|