{"id":20051667,"url":"https://github.com/softgeekro/sgs.nemo-actions","last_synced_at":"2026-05-05T10:34:24.719Z","repository":{"id":236897189,"uuid":"787587964","full_name":"SoftGeekRO/sgs.nemo-actions","owner":"SoftGeekRO","description":"Nemo actions used in out internal workflow","archived":false,"fork":false,"pushed_at":"2024-06-29T15:20:38.000Z","size":1437,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T21:06:57.021Z","etag":null,"topics":["bash","nemo","nemo-action","python3","shell"],"latest_commit_sha":null,"homepage":"https://www.sgsolar.ro","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SoftGeekRO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-16T20:06:06.000Z","updated_at":"2024-06-29T15:20:41.000Z","dependencies_parsed_at":"2024-05-28T13:21:53.510Z","dependency_job_id":"5f8f6305-cc4a-4ce0-b47d-5ab896b0758a","html_url":"https://github.com/SoftGeekRO/sgs.nemo-actions","commit_stats":null,"previous_names":["softgeekro/sgs.nemo-actions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftGeekRO%2Fsgs.nemo-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftGeekRO%2Fsgs.nemo-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftGeekRO%2Fsgs.nemo-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftGeekRO%2Fsgs.nemo-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SoftGeekRO","download_url":"https://codeload.github.com/SoftGeekRO/sgs.nemo-actions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241482036,"owners_count":19969847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","nemo","nemo-action","python3","shell"],"created_at":"2024-11-13T12:05:18.776Z","updated_at":"2026-05-05T10:34:24.688Z","avatar_url":"https://github.com/SoftGeekRO.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SoftGeek Romania internal Nemo actions\n\nThis collection of Nemo actions are used in our internal workflow to make our\nlives better.\nAll our company workflows are bases on Linux and opensource resources.\n\nIn this repo we have collected all the Nemo actions that are used to post, edit,\nand optimize of documents, images, blog, post, online store images and\ndescriptions.\n\n## Audio / Video\n| | |\n|-|-|\n| | |\n\n## Images\n|                     |                                                                                                    |\n|--------------------:|----------------------------------------------------------------------------------------------------|\n|  **image_resize_*** | (ImageMagick) to resize images on specific sizes and put the images in a **resize**/ subdir        |\n|    **convert_to_*** | use **mogrify** (ImageMagick) to convert images to specific format WebP, PNG, GIF with 90% quality |\n\n## PDF actions\n|                |                                                                                                                                                               |\n|---------------:|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **pdf2images** | use **pdfimages** command (`poppler-utils` package in Debian) to convert PDF pages in images and place them in \"pdf2images\" subdir                            |\n|    **img2pdf** | use [img2pdf utility](https://pypi.org/project/img2pdf/) to create a PDF file from selected images                                                            |\n|  **pdfShrink** | Shrink pdf to a decent size, using [ghostscript](https://www.ghostscript.com/). You can chose to make images grayscale and/or change the resolution of images |\n|   **pdfMerge** | Merge two or more pdf files in to a single pdf file, files will be merge using alphabetical name of the files.                                                |\n\n## Others actions\n|                      |                                                                                 |\n|---------------------:|:--------------------------------------------------------------------------------|\n|          **refresh** | refresh the folder content. Similar with Refresh from Windows                   |\n|            **print** | print selected file using default printer settings                              |\n| **printlibreoffice** | print LibreOffice files with default LibreOffice print settings                 |\n|          **refresh** | refresh the Nemo interface, basically is a right click menu shortcut for CTRL+R |\n|          **python3** | Run any python file using python3 exec                                          |\n|       **massRename** | Use [Bulky](https://github.com/linuxmint/bulky) to mass rename selected files   |\n\n\n## Nemo Action installation\n\nThese instructions assume a Debian/Ubuntu based distro for the commands to\ninstall dependencies. For users of other distros please replace `sudo apt`\nwith the equivalent for your distro's package management system.\n\nFirst install git\n\n```bash\nsudo apt install git\n```\n\nThen clone this repo\n\n```bash\ngit clone https://github.com/SoftGeekRO/sgs.nemo-actions.git\n```\n\nTo have a functional Nemo actions pack you have to install first all the\napplications that are used by the Nemo actions. For this use the bash\nscript install_app.sh. _For this script to run you must have root permissions_.\n\nHaving cloned the repo you can either install all the actions using the\ncommands below or refer to the index of actions to install individual actions.\n\nTo install all the nemo actions use the **install.sh** bash file and for\napplications use **install_apps.sh**. Make sure that the\nfile is executable.\n\n### Make the install scrips executables\n```bash\nchmod a+x install.sh install_apps.sh\n```\n\n### Install dependencies applications\n\nFor install_apps.sh script you have:\n_(all|install|uninstall|reinstall|installBulky|uninstallBulky|listPackages)_\n\n* **listPackages** command will show a list of what packages are going to be installed\n\nTo perform the installation for dependency applications use:\n\n```bash\nsudo ./install_apps.sh all\n```\n\n### Install sgs.nemo-actions\n\nFor install.sh you have three options:\n_(install|uninstall|reinstall|)_\n\nTo install sgs.nemo-actions use:\n```bash\n./install.sh install\n```\nthis command will create soft links of all the actions inside you home profile Nemo\nactions folder, under `/~.local/share/nemo/actions`\n\n### Individual packages list\n\n  - Imagemagick (`apt install imagemagick`) to use images resizing\n  - ffmpeg (`apt install ffmpeg`) to use video tools\n  - sox (`apt install sox`) to use wav's concatenation tools\n  - lame (`apt install lame`) to use audio conversions tools\n  - flac (`apt install flac`) to use flac compression tools\n  - poppler-utils (`apt install poppler-utils`) Poppler is a PDF rendering library based on the xpdf-3.0 code base.\n  - qpdf (`apt install qpdf`) QPDF is a command-line tool and C++ library that performs content-preserving transformations on PDF files\n  - pdf2djvu (`apt install pdf2djvu`) to use PDF to DJVU conversion tool\n  - img2pdf (`apt install img2pdf`) to convert any image to pdf\n  - pdftk (`apt install pdftk`) PDFtk is a simple tool for doing everyday things with PDF documents **(in the future possible to remove from the apps)**\n  - pypdf (`apt install pypdf`) [pypdf](https://github.com/py-pdf/pypdf) pypdf is a free and open-source pure-python PDF library capable of splitting, merging, cropping, and transforming\n  - ghostscript (`apt install ghostscript`) Ghostscript is an interpreter for the PostScript®  language and PDF files.\n  - tesseract-ocr (`apt install tesseract-ocr`) Tesseract Open Source OCR Engine\n  - tesseract-ocr-eng (`apt install tesseract-ocr-eng`) Tesseract Open Source OCR Engine for English documents\n  - tesseract-ocr-ron (`apt install tesseract-ocr-eron`) Tesseract Open Source OCR Engine for Romanian documents\n  - pdfimages (`apt install poppler-utils`) to use PDF images extraction tools\n  - pdf_repair (`apt install qpdf`) to use PDF file repairing tools\n  - zenity (`apt install zenity`) Zenity enables you to create the various types of simple dialog.\n  - YAD (`apt install yad`) Program allows you to display GTK+ dialog boxes from command line or shell scripts.\n\n## Nemo Action updating\n\nIn a terminal navigate to the `sgs.nemo-actions` folder created when you\noriginally cloned the repo\n\ne.g `cd sgs.nemo-actions`\n\nOnce in the correct folder update your local copy with the latest commits,\nbefore reinstalling your actions.\n\n`git pull origin; cd ..`\n\n## Debug\n\n`nemo -q; NEMO_DEBUG=Actions NEMO_ACTION_VERBOSE=5 nemo --debug`\n\n## Write an action\n\nTo make scripts executed to multiple files with a progress bar,\nuse `bash_action.sh`. Simple example:\n  - execute `ls` command on each selected files:\n    `Exec=\u003cscripts/bash_action.py \"ls {}\" %F\u003e`\n  - same effect, but adding a bash variable:\n    `Exec=\u003cscripts/bash_action.py \"filename={}; ls \\\"$filename\\\"\" %F\u003e`\n\nTake a look to existing actions. Particularly `flac_to_wav.nemo_action` is a simple real-world example.\n\nTo specify icon you can use `Icon-Name`. Available icons are located in `/usr/share/icons/gnome/32x32/actions`.\n\n## Debug actions (show actions logs and Nemo errors about actions)\n\n```\nnemo -q; NEMO_ACTION_VERBOSE=1 nemo --no-desktop\n```\n\n### Some tricks:\n- the space between `\"` and `%F\u003e` is important; ie `\"%F\u003e` will **not** work\n\n![plot](docs/title.svg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftgeekro%2Fsgs.nemo-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftgeekro%2Fsgs.nemo-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftgeekro%2Fsgs.nemo-actions/lists"}