From fd49f8922af0b82eb22877a3406a4b4551d100d9 Mon Sep 17 00:00:00 2001 From: zulumann Date: Wed, 30 Apr 2025 20:47:12 +0200 Subject: [PATCH] Update LinuxMint_Nemo_actions.sh --- LinuxMint_Nemo_actions.sh | 56 +++++++++++++++++++++++++++++++++------ 1 file changed, 48 insertions(+), 8 deletions(-) diff --git a/LinuxMint_Nemo_actions.sh b/LinuxMint_Nemo_actions.sh index 1fd439b..ec2091c 100644 --- a/LinuxMint_Nemo_actions.sh +++ b/LinuxMint_Nemo_actions.sh @@ -1,18 +1,39 @@ -## LinuxMint_Nemo_actions.sh #!/bin/sh # if [ ! -f /etc/debian_version ]; then echo "Unsupported Linux Distribution. Prepared for Debian" exit 1 fi +# ################################################################################ # # -# Deja-Dup in to Nemo integration @Linux Mint / Linux Mint Debian Edition +# post-installation script for Linux # # -################################################################################ # +################################################################################ +while : +do +clear +echo "" +echo "\033[1m I N S T A L L Nemo Aktion " +echo " ---------------------------------" +echo "\033[0m" +echo " 01.Deja-Dup in to Nemo integration" +echo " 02.Bulky in to Nemo integration" +echo " 03.Nemo Aktion - webm zu mp3 konvertieren" +echo " 04.Nemo Aktion - File secure delete" +echo " 05.Nemo Aktion - sudoedit" +echo "" +echo " x. Exit" +echo "" +echo -n " Please enter option [01 - 05]" +read opt +case $opt in +################################################################################## +01) echo "************ Deja-Dup in to Nemo integration **********************"; +################################################################################## sudo apt install -y deja-dup sudo bash -c 'cat << EOF > /usr/share/nemo/actions/deja-dup_restore_missing.nemo_action @@ -26,7 +47,6 @@ Selection=none Extensions=any; EOF' - sudo bash -c 'cat << EOF > /usr/share/nemo/actions/deja-dup_previous_version.nemo_action [Nemo Action] Active=true @@ -37,12 +57,16 @@ Icon-Name=deja-dup Selection=S Extensions=any; EOF' +;; - +################################################################################## +02) echo "************ Install ****************"; +################################################################################## # Nemo-Kontextmenüs am Beispiel von Bulky. Erforderlich sind in diesem Fall zwei kleine Dateien unter # „~/.local/share/nemo/actions“ (oder global unter „/usr/share/nemo/actions“). Die erste Datei nennen wir # „bulky.nemo_ action“ (die Extension ist zwingend): # Nemo Aktion - Rename Files + sudo bash -c 'cat << EOF > /usr/share/nemo/actions/bulky.nemo_action [Nemo Action] Name=Bulky-Renamer Exec=sh /home/lw/.local/share/nemo/actions/bulky.sh "%F" @@ -56,8 +80,11 @@ cd "$1" /usr/bin/bulky * EOF +;; -# Nemo Aktion - webm zu mp3 konvertieren +################################################################################## +03) echo "************ Nemo Aktion - webm zu mp3 konvertieren *****************"; +################################################################################## sudo apt install -y ffmpeg lame sudo bash -c 'cat << EOF > /usr/share/nemo/actions/webmmp3.nemo_action @@ -71,8 +98,11 @@ Selection=any; Extensions=wav;ogg;aac;m4a;flac;mp4;wma;aac;midi;aif;aifc;aiff;au;ea;webm Terminal=true EOF' +;; -# Nemo Aktion - File secure delete +################################################################################## +04) echo "************ Nemo Aktion - File secure delete ******************"; +################################################################################## sudo apt install -y wipe sudo bash -c 'cat << EOF > /usr/share/nemo/actions/wipe.nemo_action @@ -86,8 +116,11 @@ Selection=S Extensions=any; Quote=double EOF' +;; - +################################################################################## +05) echo "************ Nemo Aktion - sudoedit **************************"; +################################################################################## sudo bash -c 'cat << EOF > /usr/share/nemo/actions/nano_sudoedit.nemo_action [Nemo Action] Name=_Nano (Sudoedit) @@ -105,4 +138,11 @@ Dependencies=sudoedit;nano; EscapeSpaces=true Terminal=true EOF' +;; +x) echo ""; +exit 1;; +*) echo " Press [enter] key to continue. . ."; +read enterKey;; +esac +done