Skip to content

Commit

Permalink
added more, translations
Browse files Browse the repository at this point in the history
  • Loading branch information
stefonarch committed Feb 10, 2020
2 parents d819411 + 5b806fe commit 54a289f
Show file tree
Hide file tree
Showing 19 changed files with 128 additions and 22 deletions.
Empty file removed Nuovo file di testo.txt
Empty file.
Binary file added Overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@

# Custom actions for Pcmanfm-qt and LXQt Desktop

Custom actions are shown in tehe context menu (right click) for corresponding Mime-types.
Following actions are present:

![Screenshot](https://github.com/stefonarch/custom-actions/raw/master/Overview.png)


### Text files

(for Featherpad; otherwise modify to your prefered editor):
Expand All @@ -18,21 +21,24 @@ Following actions are present:
### Image files

* Set as wallpaper

### PDF files

* Reduce size (ghostscript))

### Folders:

* Share with samba (foldershare script)
* View disk usage (based on filelight))

### All files:

* Attach to email (Thunderbird)
* Remove (only for files - using rm, permanent, no confirm!)


* Attach to email (for Thunderbird)
* Remove (only for files - using rm → permanent, no confirm!)

## Installation

Copy manually the actions of your interest to ~/.local/share/filemanager/actions
and the needed scripts to ~/bin or another directory in your $PATH.
Refer to comments in the .desktop files.
Copy the actions of your interest to ~/.local/share/filemanager/actions
and the eventually needed scripts to ~/bin or another directory in your $PATH.

Refer to comments in the .desktop files.
20 changes: 20 additions & 0 deletions actions/Burn_iso.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[Desktop Entry]
Type=Action
Name=Burn Image
Name[it]=Masterizza con K3b
Name[es]=Convierte con SoundKonverter
Name[de]=Mit SoundKonverter konvertieren
Name[pt]=Converta com SoundKonverter
Name[fr]=Convertir avec SoundKonverter
Name[nl]=Converteer met SoundKonverter
Name[pl]=Konwertuj za pomocą SoundKonverter
Name[ru]=Конвертировать с помощью SoundKonverter
Name[cz]=Převést pomocí SoundKonverter

Icon=k3b
Profiles=profile-zero;

[X-Action-Profile profile-zero]
MimeTypes=application/x-cd-image;application/x-raw-disk-image;
Exec=k3b --cdimage %f
Name=Default profile
File renamed without changes.
24 changes: 24 additions & 0 deletions actions/disk_usage.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[Desktop Entry]

Type=Action
Name=View disk usage
Name[it]=Visualizza utilizzo disco
Name[es]=Ver el uso del disco
Name[de]=Datenträgernutzung anzeigen
Name[pt]=Exibir uso do disco
Name[fr]=Afficher l'utilisation du disque
Name[nl]=Bekijk schijfgebruik
Name[pl]=Wyświetl użycie dysku
Name[ru]=Посмотреть использование диска
Name[cz]=Zobrazit využití disku
Icon=filelight
Profiles=profile-zero;
SelectionCount==1
MimeTypes=inode/directory;
Exec=filelight %f
Empty file modified actions/edit-tag-mp3.desktop
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion actions/edit_as_txt.desktop
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Name[sr]=Отвори као текст
Name[sr@latin]=Otvori kao tekst
Name[sv]=Redigera

MimeTypes=text/plain;
MimeTypes=text/*;application/x-bsh;application/x-sh;text/x-script.sh;application/x-desktop;application/x-shellscript;
Profiles=profile-zero;
[X-Action-Profile profile-zero]
Exec=featherpad %F
Expand Down
10 changes: 0 additions & 10 deletions actions/elimina.desktop

This file was deleted.

19 changes: 19 additions & 0 deletions actions/mount_iso.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[Desktop Entry]
Type=Action
Name=Mount iso file
Name[it]=Monta immagine iso
Name[es]=Montar archivo iso
Name[de]=ISO-Datei einhängen
Name[pt]=Montar arquivo iso
Name[fr]=Monter le fichier ISO
Name[pl]=Zamontuj plik ISO
Name[ru]=Смонтировать iso файл
Name[cz]=Připojte soubor iso

Icon=application-x-cd-image
Profiles=profile-zero;

[X-Action-Profile profile-zero]
MimeTypes=application/x-cd-image;application/x-raw-disk-image;
Exec=/home/stef/bin/fuseisomount %w %f %d
Name=Default profile
20 changes: 20 additions & 0 deletions actions/remove.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[Desktop Entry]
Type=Action
Name=Delete
Name[it]=Elimina
Name[es]=Eliminar
Name[de]=Löschen
Name[pt]=Excluir
Name[fr]=Supprimer
Name[pl]=Usunąć
Name[ru]=удалять
Name[cz]=Odstranit

Icon=emblem-remove

Profiles=profile-zero;

[X-Action-Profile profile-zero]
MimeTypes=MimeTypes=text/*;audio/*;image/*;application/*;video/*
Exec=rm -f %f
Name=Default profile
19 changes: 19 additions & 0 deletions actions/resize_pdf.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[Desktop Entry]
Type=Action
Name=Resize pdf
Name[it]=Riduci dimensione
Name[es]=Redimensionar pdf
Name[de]=Größe reduzieren
Name[pt]=Redimensionar pdf
Name[fr]=Redimensionner le pdf
Name[pl]=Zmień rozmiar pdf
Name[ru]=Изменить размер
Name[cz]=Změnit velikost pdf
Icon=application-pdf
Profiles=profile-zero;

[X-Action-Profile profile-zero]
MimeTypes=application/pdf;
Exec=resize_pdf %f
Name=Default profile
SelectionCount==1
Empty file modified actions/rootedit.desktop
100644 → 100755
Empty file.
5 changes: 3 additions & 2 deletions actions/wallpaper.desktop → actions/set_wallpaper.desktop
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[Desktop Entry]
Type=Action
Name=Usa come sfondo
Name=Set as wallpaper
Name[it]=Usa come sfondo
Icon=user-desktop
Profiles=profile-zero;

[X-Action-Profile profile-zero]
MimeTypes=image/*;
Exec=pcmanfm-qt -w %f
Name=Default profile
SelectionCount==1
SelectionCount==1
1 change: 1 addition & 0 deletions actions/smb-share.desktop
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ MimeTypes=inode/directory;
#Exec=net usershare add %w %f '' Everyone:R guest_ok=y'
#Exec=/path/to/foldershare %w %f


3 changes: 2 additions & 1 deletion actions/allega-thunderbird.desktop → actions/thunderbird-attachment.desktop
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name[pt]=Anexar ao Thunderbird E-mail
Name[pt_BR]=Enviar arquivo(s) como anexo(s)
Name[fr]=Envoyer avec Thunderbird
Name[nl]=Voeg toe als bijlage aan Thunderbird
Name[pl]=Wyślij jako załącznik Thunderbirda
Name[pl]=Wyślij jako załącznik Thunderbird
Name[ru]=Отправить с помощью Thunderbird
Name[cz]=Odeslat jako přílohu Thunderbirdem

Expand All @@ -32,6 +32,7 @@ Profiles=profile-zero;
# This one was tested for Mandriva 2011 and LinuxMint Olivia:
#Exec=thunderbird -compose "attachment='$(echo %F | sed 's/\\ \\//,\\/\\//g')'"
#This one works on arch
MimeTypes=text/*;audio/*;image/*;application/*;
Exec=thunderbird -compose "attachment='file://%U'"
Name=Default profile

Expand Down
Binary file added right-click-script.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions scripts/fuseisomount
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
fuseiso -p $2 $3/iso_mount
notify-send -a Isomount -i application-x-cd-image "$1.iso mounted in $3/iso_mount"
2 changes: 2 additions & 0 deletions scripts/resize_pdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$1.resized $1

0 comments on commit 54a289f

Please sign in to comment.