NoPaste

/Thunar/uca.xml

von geier22

Dein Code:
  1. <?xml encoding="UTF-8" version="1.0"?>
  2. <actions>
  3. <action>
  4.         <icon>utilities-terminal</icon>
  5.         <name>Terminal öffnen</name>
  6.         <unique-id>1523701258685139-1</unique-id>
  7.         <command>exo-open --working-directory %f --launch TerminalEmulator</command>
  8.         <description>Beispiel für eine eigene Aktion</description>
  9.         <patterns>*</patterns>
  10.         <startup-notify/>
  11.         <directories/>
  12. </action>
  13. <action>
  14.         <icon>utilities-terminal-symbolic</icon>
  15.         <name>Tilix hier öffnen</name>
  16.         <unique-id>1523701258685152-2</unique-id>
  17.         <command>tilix %f</command>
  18.         <description></description>
  19.         <patterns>*</patterns>
  20.         <directories/>
  21.         <other-files/>
  22.         <text-files/>
  23. </action>
  24. <action>
  25.         <icon>catfish</icon>
  26.         <name>Hier suchen (Catfish)</name>
  27.         <unique-id>1523701258685161-3</unique-id>
  28.         <command>catfish --path %F</command>
  29.         <description>Mit catfish suchen</description>
  30.         <patterns>*</patterns>
  31.         <directories/>
  32. </action>
  33. <action>
  34.         <icon>preferences-system-search</icon>
  35.         <name>Hier Suchen (Gnome-Search-Tool)</name>
  36.         <unique-id>1523701258685173-4</unique-id>
  37.         <command>gnome-search-tool --path %F</command>
  38.         <description></description>
  39.         <patterns>*</patterns>
  40.         <directories/>
  41.         <audio-files/>
  42.         <image-files/>
  43.         <other-files/>
  44.         <text-files/>
  45.         <video-files/>
  46. </action>
  47. <action>
  48.         <icon>emblem-important</icon>
  49.         <name>Datei als Root mit Mousepad</name>
  50.         <unique-id>1523701258685184-5</unique-id>
  51.         <command>pkexec mousepad %f</command>
  52.         <description></description>
  53.         <patterns>*</patterns>
  54.         <other-files/>
  55.         <text-files/>
  56. </action>
  57. <action>
  58.         <icon>dialog-warning</icon>
  59.         <name>Ordner als Root mit Thunar</name>
  60.         <unique-id>1523701258685193-6</unique-id>
  61.         <command>pkexec thunar %f</command>
  62.         <description></description>
  63.         <patterns>*</patterns>
  64.         <directories/>
  65. </action>
  66. <action>
  67.         <icon>nemo</icon>
  68.         <name>Odner als Root mit Nemo</name>
  69.         <unique-id>1523701258685201-7</unique-id>
  70.         <command>pkexec nemo %f</command>
  71.         <description></description>
  72.         <patterns>*</patterns>
  73.         <directories/>
  74. </action>
  75. <action>
  76.         <icon>gtkhash</icon>
  77.         <name>Prüfsumme mit Gtkhash </name>
  78.         <unique-id>1523701258685211-8</unique-id>
  79.         <command>gtkhash %N</command>
  80.         <description></description>
  81.         <patterns>*</patterns>
  82.         <directories/>
  83.         <other-files/>
  84.         <text-files/>
  85.         <video-files/>
  86. </action>
  87. <action>
  88.         <icon>media-optical-cd-audio-symbolic</icon>
  89.         <name>Iso mounten (CD1)</name>
  90.         <unique-id>1523701258685221-9</unique-id>
  91.         <command>fuseiso %N  /media/hans/CD1</command>
  92.         <description></description>
  93.         <patterns>*.iso;*.ISO</patterns>
  94.         <startup-notify/>
  95.         <other-files/>
  96.         <video-files/>
  97. </action>
  98. <action>
  99.         <icon>media-optical-cd-audio-symbolic</icon>
  100.         <name>ISO Mounten (CD2)</name>
  101.         <unique-id>1523701258685231-10</unique-id>
  102.         <command>fuseiso %N  /media/hans/CD2</command>
  103.         <description></description>
  104.         <patterns>*.iso</patterns>
  105.         <other-files/>
  106. </action>
  107. <action>
  108.         <icon>media-eject</icon>
  109.         <name>Auswerfen / Trennen</name>
  110.         <unique-id>1523701258685239-11</unique-id>
  111.         <command>fusermount -u %N</command>
  112.         <description></description>
  113.         <patterns>*</patterns>
  114.         <directories/>
  115.         <other-files/>
  116. </action>
  117. <action>
  118.         <icon>/usr/share/icons/Papirus/22x22/apps/gprename.svg</icon>
  119.         <name>GPRename </name>
  120.         <unique-id>1523701258685249-12</unique-id>
  121.         <command>gprename %f</command>
  122.         <description>Dateien umbenennen</description>
  123.         <patterns>*</patterns>
  124.         <directories/>
  125.         <other-files/>
  126. </action>
  127. <action>
  128.         <icon>/usr/share/icons/Papirus/22x22/actions/cm_multirename.svg</icon>
  129.         <name>ThunarBulkRename </name>
  130.         <unique-id>1523701258685259-13</unique-id>
  131.         <command>/usr/lib/x86_64-linux-gnu/Thunar/ThunarBulkRename %F</command>
  132.         <description>Massenumbenennen</description>
  133.         <patterns>*</patterns>
  134.         <directories/>
  135.         <other-files/>
  136. </action>
  137. <action>
  138.         <icon>application-pdf</icon>
  139.         <name>zu einem PDF konvertieren</name>
  140.         <unique-id>1523701258685293-14</unique-id>
  141.         <command>(set -e;export TEXTDOMAIN=&apos;thunar-custom-actions&apos;;export TEXTDOMAINDIR=&apos;/usr/share/locale&apos;;. /usr/bin/gettext.sh;        ORIENTATION=&quot;$(            (            echo $(eval_gettext &apos;Portrait&apos;);            echo $(eval_gettext &apos;Landscape&apos;);            ) | /usr/bin/zenity --list             --column=&quot;$(eval_gettext &apos;Orientation&apos;)&quot;             --text=&quot;$(eval_gettext &apos;Choose an orientation for the PDF.&apos;)&quot;             --title=&quot;$(eval_gettext &apos;PDF orientation&apos;)&quot;)&quot;;         if test $? -ne 0;then             exit;        fi;        A4_PORTRAIT_WIDTH=1654;        A4_PORTRAIT_HEIGHT=2338;        if test &quot;$ORIENTATION&quot; = &quot;$(eval_gettext &apos;Portrait&apos;)&quot;;then             WIDTH=$A4_PORTRAIT_WIDTH;            HEIGHT=$A4_PORTRAIT_HEIGHT;        elif test &quot;$ORIENTATION&quot; = &quot;$(eval_gettext &apos;Landscape&apos;)&quot;;then             WIDTH=$A4_PORTRAIT_HEIGHT;            HEIGHT=$A4_PORTRAIT_WIDTH;        else             /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;Strange orientation $ORIENTATION selected.&apos;) $(eval_gettext &apos;If you see this message, please contact the developer on https://github.com/nobodyinperson/thunar-custom-actions.&apos;))&quot;;            exit 1;        fi;         (echo &apos;#&apos;$(eval_gettext &apos;Converting to PDF&apos;)...;            fileinput=&quot;$(echo                 %F)&quot;;filefinalout=&quot;$(echo                 $(dirname %f)/$(basename %f | /usr/bin/perl -pe &apos;s#\.\w+$##g&apos;)_$ORIENTATION.pdf)&quot;;if test &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  fileout=$(f=$(echo &quot;$filefinalout&quot;);while test -e &quot;$f&quot;;do f=$(dirname &quot;$f&quot;)/.$(basename &quot;$f&quot;).tmp;done;echo &quot;$f&quot;);else  fileout=&quot;$filefinalout&quot;;fi;OVERWRITE=yes;if test -e &quot;$filefinalout&quot; -a ! &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  base=$(basename &quot;$filefinalout&quot;); if ! (/usr/bin/zenity --question --text=&quot;$(echo $(eval_gettext &apos;overwrite $base?&apos;))&quot;);then   OVERWRITE=no; fi;fi;if test &quot;$OVERWRITE&quot; = &quot;yes&quot;;then  (/usr/bin/convert %F -gravity Center -background white -resize ${WIDTH}x${HEIGHT} -extent ${WIDTH}x${HEIGHT} -units PixelsPerInch -density 200x200 &quot;$fileout&quot;);fi;if ! test &quot;$fileout&quot; = &quot;$filefinalout&quot;;then  if cp &quot;$fileout&quot; &quot;$filefinalout&quot;;then   rm &quot;$fileout&quot;; else   /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;something went wrong copying the file $fileout over to $filefinalout.&apos;))&quot;; fi;fi )|/usr/bin/zenity --progress --auto-kill --auto-close --title=&quot;$(echo             $(eval_gettext &apos;Converting to PDF&apos;))&quot; --pulsate        )</command>
  142.         <description>Die ausgewählten Bilder werden zu Seiten eines einzigen PDF-Dokument in A4-Größe konvertiert.</description>
  143.         <patterns>*</patterns>
  144.         <image-files/>
  145. </action>
  146. <action>
  147.         <icon>application-pdf</icon>
  148.         <name>zu einem PDF zusammenfügen</name>
  149.         <unique-id>1523701258685316-15</unique-id>
  150.         <command>(set -e;export TEXTDOMAIN=&apos;thunar-custom-actions&apos;;export TEXTDOMAINDIR=&apos;/usr/share/locale&apos;;. /usr/bin/gettext.sh;        (echo &apos;#&apos;$(eval_gettext &apos;Concatenating PDFs&apos;)...;            fileinput=&quot;$(echo                 %F)&quot;;filefinalout=&quot;$(echo                 %f-all.pdf)&quot;;if test &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  fileout=$(f=$(echo &quot;$filefinalout&quot;);while test -e &quot;$f&quot;;do f=$(dirname &quot;$f&quot;)/.$(basename &quot;$f&quot;).tmp;done;echo &quot;$f&quot;);else  fileout=&quot;$filefinalout&quot;;fi;OVERWRITE=yes;if test -e &quot;$filefinalout&quot; -a ! &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  base=$(basename &quot;$filefinalout&quot;); if ! (/usr/bin/zenity --question --text=&quot;$(echo $(eval_gettext &apos;overwrite $base?&apos;))&quot;);then   OVERWRITE=no; fi;fi;if test &quot;$OVERWRITE&quot; = &quot;yes&quot;;then  (/usr/bin/gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=&quot;$fileout&quot; %F);fi;if ! test &quot;$fileout&quot; = &quot;$filefinalout&quot;;then  if cp &quot;$fileout&quot; &quot;$filefinalout&quot;;then   rm &quot;$fileout&quot;; else   /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;something went wrong copying the file $fileout over to $filefinalout.&apos;))&quot;; fi;fi )|/usr/bin/zenity --progress --auto-kill --auto-close --title=&quot;$(echo             $(eval_gettext &apos;Concatenating PDFs&apos;))&quot; --pulsate        )</command>
  151.         <description>Die ausgewählten PDF-Dateien werden zu einem einzigen PDF-Dokument zusammengefügt</description>
  152.         <patterns>*.PDF;*.pdf</patterns>
  153.         <other-files/>
  154. </action>
  155. <action>
  156.         <icon>window-restore-symbolic</icon>
  157.         <name>PDF-Dateigröße verringern</name>
  158.         <unique-id>1523701258685343-16</unique-id>
  159.         <command>(set -e;export TEXTDOMAIN=&apos;thunar-custom-actions&apos;;export TEXTDOMAINDIR=&apos;/usr/share/locale&apos;;. /usr/bin/gettext.sh;    (AMOUNT=$(for file in %F;do echo &quot;$file&quot;;done | wc -l);NR=0;for file in %F;do  NR=&quot;$(echo &quot;$NR+1&quot; | /usr/bin/bc)&quot;; PERCENTAGE=&quot;$(echo &quot;$NR*100/$AMOUNT&quot; | /usr/bin/bc)&quot;; filebase=$(basename &quot;$file&quot;); echo &apos;#&apos;$(eval_gettext &apos;Optimizing PDF&apos;) ... &quot;$filebase&quot;;  (fileinput=&quot;$(echo                 &quot;$file&quot;)&quot;;filefinalout=&quot;$(echo                 &quot;$file&quot;)&quot;;if test &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  fileout=$(f=$(echo &quot;$filefinalout&quot;);while test -e &quot;$f&quot;;do f=$(dirname &quot;$f&quot;)/.$(basename &quot;$f&quot;).tmp;done;echo &quot;$f&quot;);else  fileout=&quot;$filefinalout&quot;;fi;OVERWRITE=yes;if test -e &quot;$filefinalout&quot; -a ! &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  base=$(basename &quot;$filefinalout&quot;); if ! (/usr/bin/zenity --question --text=&quot;$(echo $(eval_gettext &apos;overwrite $base?&apos;))&quot;);then   OVERWRITE=no; fi;fi;if test &quot;$OVERWRITE&quot; = &quot;yes&quot;;then  (/usr/bin/gs -dBATCH -dNOPAUSE -q -dPDFSETTINGS=/prepress                 -sDEVICE=pdfwrite -dDownsampleColorImages=true                 -dDownsampleGrayImages=true -dDownsampleMonoImages=true                 -dColorImageResolution=72 -dGrayImageResolution=72                 -dMonoImageResolution=72 -sOutputFile=&quot;$fileout&quot; &quot;$fileinput&quot;);fi;if ! test &quot;$fileout&quot; = &quot;$filefinalout&quot;;then  if cp &quot;$fileout&quot; &quot;$filefinalout&quot;;then   rm &quot;$fileout&quot;; else   /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;something went wrong copying the file $fileout over to $filefinalout.&apos;))&quot;; fi;fi );  echo $PERCENTAGE;done        )|/usr/bin/zenity --progress --auto-kill --auto-close    )</command>
  160.         <description>[Vorsicht: Qualitätsverlust] Es wird versucht, bei den ausgewählten PDF-Dokumenten die Dateigröße zu verringern.</description>
  161.         <patterns>*.PDF;*.pdf</patterns>
  162.         <other-files/>
  163. </action>
  164. <action>
  165.         <icon>edit-redo</icon>
  166.         <name>im Uhrzeigersinn drehen</name>
  167.         <unique-id>1523701258685448-20</unique-id>
  168.         <command>(set -e;export TEXTDOMAIN=&apos;thunar-custom-actions&apos;;export TEXTDOMAINDIR=&apos;/usr/share/locale&apos;;. /usr/bin/gettext.sh;    (AMOUNT=$(for file in %F;do echo &quot;$file&quot;;done | wc -l);NR=0;for file in %F;do  NR=&quot;$(echo &quot;$NR+1&quot; | /usr/bin/bc)&quot;; PERCENTAGE=&quot;$(echo &quot;$NR*100/$AMOUNT&quot; | /usr/bin/bc)&quot;; filebase=$(basename &quot;$file&quot;); echo &apos;#&apos;$(eval_gettext &apos;Rotating clockwise&apos;) ... &quot;$filebase&quot;;  (fileinput=&quot;$(echo                 &quot;$file&quot;)&quot;;filefinalout=&quot;$(echo                 &quot;$file&quot;)&quot;;if test &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  fileout=$(f=$(echo &quot;$filefinalout&quot;);while test -e &quot;$f&quot;;do f=$(dirname &quot;$f&quot;)/.$(basename &quot;$f&quot;).tmp;done;echo &quot;$f&quot;);else  fileout=&quot;$filefinalout&quot;;fi;OVERWRITE=yes;if test -e &quot;$filefinalout&quot; -a ! &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  base=$(basename &quot;$filefinalout&quot;); if ! (/usr/bin/zenity --question --text=&quot;$(echo $(eval_gettext &apos;overwrite $base?&apos;))&quot;);then   OVERWRITE=no; fi;fi;if test &quot;$OVERWRITE&quot; = &quot;yes&quot;;then  (/usr/bin/convert -rotate 90 &quot;$fileinput&quot; &quot;$fileout&quot;);fi;if ! test &quot;$fileout&quot; = &quot;$filefinalout&quot;;then  if cp &quot;$fileout&quot; &quot;$filefinalout&quot;;then   rm &quot;$fileout&quot;; else   /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;something went wrong copying the file $fileout over to $filefinalout.&apos;))&quot;; fi;fi );  echo $PERCENTAGE;done        )|/usr/bin/zenity --progress --auto-kill --auto-close    )</command>
  169.         <description>Die ausgewählten Bilder werden im Uhrzeigersinn gedreht.</description>
  170.         <patterns>*</patterns>
  171.         <image-files/>
  172. </action>
  173. <action>
  174.         <icon>edit-undo</icon>
  175.         <name>Gegen den Uhrzeigersinn drehen</name>
  176.         <unique-id>1523701258685469-21</unique-id>
  177.         <command>(set -e;export TEXTDOMAIN=&apos;thunar-custom-actions&apos;;export TEXTDOMAINDIR=&apos;/usr/share/locale&apos;;. /usr/bin/gettext.sh;    (AMOUNT=$(for file in %F;do echo &quot;$file&quot;;done | wc -l);NR=0;for file in %F;do  NR=&quot;$(echo &quot;$NR+1&quot; | /usr/bin/bc)&quot;; PERCENTAGE=&quot;$(echo &quot;$NR*100/$AMOUNT&quot; | /usr/bin/bc)&quot;; filebase=$(basename &quot;$file&quot;); echo &apos;#&apos;$(eval_gettext &apos;Rotating anti-clockwise&apos;) ... &quot;$filebase&quot;;  (fileinput=&quot;$(echo                 &quot;$file&quot;)&quot;;filefinalout=&quot;$(echo                 &quot;$file&quot;)&quot;;if test &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  fileout=$(f=$(echo &quot;$filefinalout&quot;);while test -e &quot;$f&quot;;do f=$(dirname &quot;$f&quot;)/.$(basename &quot;$f&quot;).tmp;done;echo &quot;$f&quot;);else  fileout=&quot;$filefinalout&quot;;fi;OVERWRITE=yes;if test -e &quot;$filefinalout&quot; -a ! &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  base=$(basename &quot;$filefinalout&quot;); if ! (/usr/bin/zenity --question --text=&quot;$(echo $(eval_gettext &apos;overwrite $base?&apos;))&quot;);then   OVERWRITE=no; fi;fi;if test &quot;$OVERWRITE&quot; = &quot;yes&quot;;then  (/usr/bin/convert -rotate 270 &quot;$fileinput&quot; &quot;$fileout&quot;);fi;if ! test &quot;$fileout&quot; = &quot;$filefinalout&quot;;then  if cp &quot;$fileout&quot; &quot;$filefinalout&quot;;then   rm &quot;$fileout&quot;; else   /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;something went wrong copying the file $fileout over to $filefinalout.&apos;))&quot;; fi;fi );  echo $PERCENTAGE;done        )|/usr/bin/zenity --progress --auto-kill --auto-close    )</command>
  178.         <description>Die ausgewählten Bilder werden gegen den Uhrzeigersinn gedreht.</description>
  179.         <patterns>*</patterns>
  180.         <image-files/>
  181. </action>
  182. <action>
  183.         <icon>insert-image</icon>
  184.         <name>In anderes Format umwandeln</name>
  185.         <unique-id>1523701258685498-22</unique-id>
  186.         <command>(set -e;export TEXTDOMAIN=&apos;thunar-custom-actions&apos;;export TEXTDOMAINDIR=&apos;/usr/share/locale&apos;;. /usr/bin/gettext.sh;    FORMAT=$(        /usr/bin/convert -list format |         /usr/bin/perl -ane &apos;($f,$m,$c,$d)=m/^\s*(\S*?)\**\s*(\S*)\s*([r-][w-][+-])\s*(.*)$/g;if($c=~m/^.w.$/){print join &quot;\n&quot;,$f,$d,&quot;&quot;}&apos; |         /usr/bin/zenity --list             --print-column=1             --column=&quot;$(eval_gettext &apos;Format&apos;)&quot;             --column=&quot;$(eval_gettext &apos;Description&apos;)&quot;             --text=&quot;$(eval_gettext &apos;Select format:&apos;)&quot;             --title=&quot;$(eval_gettext &apos;Format&apos;)&quot;         );    if test $? -ne 0;then         exit;    fi;    FORMAT=$(echo $FORMAT | /usr/bin/perl -ne &apos;print lc&apos;);    if test -z &quot;$FORMAT&quot;;then         /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;No format selected.&apos;) $(eval_gettext &apos;If you see this message, please contact the developer on https://github.com/nobodyinperson/thunar-custom-actions.&apos;))&quot;;        exit 1;    fi;     (AMOUNT=$(for file in %F;do echo &quot;$file&quot;;done | wc -l);NR=0;for file in %F;do  NR=&quot;$(echo &quot;$NR+1&quot; | /usr/bin/bc)&quot;; PERCENTAGE=&quot;$(echo &quot;$NR*100/$AMOUNT&quot; | /usr/bin/bc)&quot;; filebase=$(basename &quot;$file&quot;); echo &apos;#&apos;$(eval_gettext &apos;Converting to $FORMAT&apos;) ... &quot;$filebase&quot;;  (fileinput=&quot;$(echo                 &quot;$file&quot;)&quot;;filefinalout=&quot;$(echo                 $(dirname &quot;$file&quot;)/$(basename &quot;$file&quot; | /usr/bin/perl -pe &apos;s#\.\w+$##g&apos;).${FORMAT})&quot;;if test &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  fileout=$(f=$(echo &quot;$filefinalout&quot;);while test -e &quot;$f&quot;;do f=$(dirname &quot;$f&quot;)/.$(basename &quot;$f&quot;).tmp;done;echo &quot;$f&quot;);else  fileout=&quot;$filefinalout&quot;;fi;OVERWRITE=yes;if test -e &quot;$filefinalout&quot; -a ! &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  base=$(basename &quot;$filefinalout&quot;); if ! (/usr/bin/zenity --question --text=&quot;$(echo $(eval_gettext &apos;overwrite $base?&apos;))&quot;);then   OVERWRITE=no; fi;fi;if test &quot;$OVERWRITE&quot; = &quot;yes&quot;;then  (CONVERT_OUTPUT=$(/usr/bin/convert &quot;$fileinput&quot; &quot;$fileout&quot; 2&gt;&amp;1;) ||                     /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;Could not convert $fileinput to $FORMAT: $CONVERT_OUTPUT&apos;))&quot;;                );fi;if ! test &quot;$fileout&quot; = &quot;$filefinalout&quot;;then  if cp &quot;$fileout&quot; &quot;$filefinalout&quot;;then   rm &quot;$fileout&quot;; else   /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;something went wrong copying the file $fileout over to $filefinalout.&apos;))&quot;; fi;fi );  echo $PERCENTAGE;done        )|/usr/bin/zenity --progress --auto-kill --auto-close    )</command>
  187.         <description>Die ausgewählten Bilder werden in ein angegebenes Format umgewandelt.</description>
  188.         <patterns>*</patterns>
  189.         <image-files/>
  190. </action>
  191. <action>
  192.         <icon>applications-graphics-symbolic</icon>
  193.         <name>in Graustufen umwandeln</name>
  194.         <unique-id>1523701258685520-23</unique-id>
  195.         <command>(set -e;export TEXTDOMAIN=&apos;thunar-custom-actions&apos;;export TEXTDOMAINDIR=&apos;/usr/share/locale&apos;;. /usr/bin/gettext.sh;    (AMOUNT=$(for file in %F;do echo &quot;$file&quot;;done | wc -l);NR=0;for file in %F;do  NR=&quot;$(echo &quot;$NR+1&quot; | /usr/bin/bc)&quot;; PERCENTAGE=&quot;$(echo &quot;$NR*100/$AMOUNT&quot; | /usr/bin/bc)&quot;; filebase=$(basename &quot;$file&quot;); echo &apos;#&apos;$(eval_gettext &apos;Converting to grayscale&apos;) ... &quot;$filebase&quot;;  (fileinput=&quot;$(echo                 &quot;$file&quot;)&quot;;filefinalout=&quot;$(echo                 &quot;$file&quot;)&quot;;if test &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  fileout=$(f=$(echo &quot;$filefinalout&quot;);while test -e &quot;$f&quot;;do f=$(dirname &quot;$f&quot;)/.$(basename &quot;$f&quot;).tmp;done;echo &quot;$f&quot;);else  fileout=&quot;$filefinalout&quot;;fi;OVERWRITE=yes;if test -e &quot;$filefinalout&quot; -a ! &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  base=$(basename &quot;$filefinalout&quot;); if ! (/usr/bin/zenity --question --text=&quot;$(echo $(eval_gettext &apos;overwrite $base?&apos;))&quot;);then   OVERWRITE=no; fi;fi;if test &quot;$OVERWRITE&quot; = &quot;yes&quot;;then  (/usr/bin/convert &quot;$fileinput&quot; -set colorspace Gray -separate -average &quot;$fileout&quot;);fi;if ! test &quot;$fileout&quot; = &quot;$filefinalout&quot;;then  if cp &quot;$fileout&quot; &quot;$filefinalout&quot;;then   rm &quot;$fileout&quot;; else   /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;something went wrong copying the file $fileout over to $filefinalout.&apos;))&quot;; fi;fi );  echo $PERCENTAGE;done        )|/usr/bin/zenity --progress --auto-kill --auto-close    )</command>
  196.         <description>arithmetische Mittelung aller Farbkanäle</description>
  197.         <patterns>*</patterns>
  198.         <startup-notify/>
  199.         <image-files/>
  200. </action>
  201. <action>
  202.         <icon>color-fill</icon>
  203.         <name>Transparenz füllen</name>
  204.         <unique-id>1523701258685545-24</unique-id>
  205.         <command>(set -e;export TEXTDOMAIN=&apos;thunar-custom-actions&apos;;export TEXTDOMAINDIR=&apos;/usr/share/locale&apos;;. /usr/bin/gettext.sh;    COLOR=$(/usr/bin/zenity --color-selection) || exit;    (AMOUNT=$(for file in %F;do echo &quot;$file&quot;;done | wc -l);NR=0;for file in %F;do  NR=&quot;$(echo &quot;$NR+1&quot; | /usr/bin/bc)&quot;; PERCENTAGE=&quot;$(echo &quot;$NR*100/$AMOUNT&quot; | /usr/bin/bc)&quot;; filebase=$(basename &quot;$file&quot;); echo &apos;#&apos;$(eval_gettext &apos;Filling transparency with $COLOR&apos;) ... &quot;$filebase&quot;;  (fileinput=&quot;$(echo                 &quot;$file&quot;)&quot;;filefinalout=&quot;$(echo                 &quot;$file&quot;)&quot;;if test &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  fileout=$(f=$(echo &quot;$filefinalout&quot;);while test -e &quot;$f&quot;;do f=$(dirname &quot;$f&quot;)/.$(basename &quot;$f&quot;).tmp;done;echo &quot;$f&quot;);else  fileout=&quot;$filefinalout&quot;;fi;OVERWRITE=yes;if test -e &quot;$filefinalout&quot; -a ! &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  base=$(basename &quot;$filefinalout&quot;); if ! (/usr/bin/zenity --question --text=&quot;$(echo $(eval_gettext &apos;overwrite $base?&apos;))&quot;);then   OVERWRITE=no; fi;fi;if test &quot;$OVERWRITE&quot; = &quot;yes&quot;;then  (/usr/bin/convert &quot;$fileinput&quot; -background &quot;$COLOR&quot; -alpha remove &quot;$fileout&quot;);fi;if ! test &quot;$fileout&quot; = &quot;$filefinalout&quot;;then  if cp &quot;$fileout&quot; &quot;$filefinalout&quot;;then   rm &quot;$fileout&quot;; else   /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;something went wrong copying the file $fileout over to $filefinalout.&apos;))&quot;; fi;fi );  echo $PERCENTAGE;done        )|/usr/bin/zenity --progress --auto-kill --auto-close    )</command>
  206.         <description>Bei den ausgewählten Bildern werden transparente Bereiche mit der ausgewählten Farbe gefüllt.</description>
  207.         <patterns>*</patterns>
  208.         <image-files/>
  209. </action>
  210. <action>
  211.         <icon>window-restore-symbolic</icon>
  212.         <name>Bilder verkleinern</name>
  213.         <unique-id>1523701258685567-25</unique-id>
  214.         <command>(set -e;export TEXTDOMAIN=&apos;thunar-custom-actions&apos;;export TEXTDOMAINDIR=&apos;/usr/share/locale&apos;;. /usr/bin/gettext.sh;    SCALE=$(/usr/bin/zenity --text=&quot;$(eval_gettext &apos;Scale to what percentage?&apos;)&quot; --scale --value=50 --min-value=1 --max-value=99) || exit;    (AMOUNT=$(for file in %F;do echo &quot;$file&quot;;done | wc -l);NR=0;for file in %F;do  NR=&quot;$(echo &quot;$NR+1&quot; | /usr/bin/bc)&quot;; PERCENTAGE=&quot;$(echo &quot;$NR*100/$AMOUNT&quot; | /usr/bin/bc)&quot;; filebase=$(basename &quot;$file&quot;); echo &apos;#&apos;$(eval_gettext &apos;Scale to $SCALE percent&apos;) ... &quot;$filebase&quot;;  (fileinput=&quot;$(echo                 &quot;$file&quot;)&quot;;filefinalout=&quot;$(echo                 &quot;$file&quot;)&quot;;if test &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  fileout=$(f=$(echo &quot;$filefinalout&quot;);while test -e &quot;$f&quot;;do f=$(dirname &quot;$f&quot;)/.$(basename &quot;$f&quot;).tmp;done;echo &quot;$f&quot;);else  fileout=&quot;$filefinalout&quot;;fi;OVERWRITE=yes;if test -e &quot;$filefinalout&quot; -a ! &quot;$fileinput&quot; = &quot;$filefinalout&quot;;then  base=$(basename &quot;$filefinalout&quot;); if ! (/usr/bin/zenity --question --text=&quot;$(echo $(eval_gettext &apos;overwrite $base?&apos;))&quot;);then   OVERWRITE=no; fi;fi;if test &quot;$OVERWRITE&quot; = &quot;yes&quot;;then  (/usr/bin/convert &quot;$fileinput&quot; -resize ${SCALE}%% &quot;$fileout&quot;);fi;if ! test &quot;$fileout&quot; = &quot;$filefinalout&quot;;then  if cp &quot;$fileout&quot; &quot;$filefinalout&quot;;then   rm &quot;$fileout&quot;; else   /usr/bin/zenity --error --text=&quot;$(echo $(eval_gettext &apos;something went wrong copying the file $fileout over to $filefinalout.&apos;))&quot;; fi;fi );  echo $PERCENTAGE;done        )|/usr/bin/zenity --progress --auto-kill --auto-close    )</command>
  215.         <description>Die ausgewählten Bilder werden auf einen gewählten Prozentsatz der ursprünglichen Größe skaliert.</description>
  216.         <patterns>*</patterns>
  217.         <image-files/>
  218. </action>
  219. <action>
  220.         <icon>edit-find</icon>
  221.         <name>Platzfresser finden</name>
  222.         <unique-id>1523701258685612-27</unique-id>
  223.         <command>(set -e;export TEXTDOMAIN=&apos;thunar-custom-actions&apos;;export TEXTDOMAINDIR=&apos;/usr/share/locale&apos;;. /usr/bin/gettext.sh;    TMPFILE=$(mktemp);    (echo &apos;#&apos;$(eval_gettext &apos;Determining file sizes&apos;)...;        du -ha --max-depth 1 %f |             sort -rh |             perl -ne &apos;($s,$n)=m/^(\S+)\s+(\S+.*)$/;$n=~s:.*/([^/]+)$:${1}:g;print &quot;$s\n$n\n&quot;&apos; |             tee $TMPFILE)|/usr/bin/zenity --progress --auto-kill --auto-close --title=&quot;$(echo         $(eval_gettext &apos;Determining file sizes&apos;))&quot; --pulsate;    cd %f;    cat $TMPFILE |         /usr/bin/zenity --list --column=&quot;$(eval_gettext &apos;Size&apos;)&quot;             --column=&quot;$(eval_gettext &apos;Name&apos;)&quot;             --title=&quot;$(eval_gettext &apos;Big elements&apos;)&quot;             --text=&quot;$(eval_gettext &apos;Elements sorted by size&apos;)\n$(eval_gettext &apos;Double-click to open.&apos;)&quot;             --print-column 2 |         /usr/bin/xargs -r --delimiter=&apos;\n&apos; /usr/bin/xdg-open;    rm &quot;$TMPFILE&quot;)</command>
  224.         <description>Die größten Dateien und Ordner hier sortiert auflisten.</description>
  225.         <patterns>*</patterns>
  226.         <directories/>
  227. </action>
  228. </actions>

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. Alternativ kannst du den gesamten Eintrag auch als Datei herunterladen.