Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Tutorial(s): Thunar Custom Actions--- simplify what you do

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 409
Joined: Sat Mar 10, 2018 9:06 pm

Re: Tutorial(s): Thunar Custom Actions--- simplify what you do

#31

Post by Buck Fankers » Wed Aug 07, 2019 10:54 am

Anyone has any good compress image custom action code? I was using this one bellow in the terminal and looks like it is working as custom action also:

Code: Select all

for file in *.*; do convert $file -quality 10 compressed-$file; done
file pattern: *
Appears if selection contains: Directories & Image Files
install: imagemagick

This one works for compressing JPEG and JPG image files. I don't have anything for PNG files yet. I have read, that OptiPNG is good for compressing PNG files. Anyway I would be interested in anything you galls and guys may have :grin:

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 409
Joined: Sat Mar 10, 2018 9:06 pm

Re: Tutorial(s): Thunar Custom Actions--- simplify what you do

#32

Post by Buck Fankers » Wed Aug 07, 2019 10:57 am

For removing metadata from all kind of files, looks like MAT is the best choice:

http://xmodulo.com/remove-file-metadata-linux.html

Anyone has any custom action code already done with the mat?

Edit, scratch "all kind" part. mat-gui can't handle pdf or pictures. But it is useful for office document files, so still forth having it.

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 409
Joined: Sat Mar 10, 2018 9:06 pm

Re: Tutorial(s): Thunar Custom Actions--- simplify what you do

#33

Post by Buck Fankers » Wed Aug 07, 2019 5:12 pm

Buck Fankers wrote:
Wed Aug 07, 2019 10:54 am
I have read, that OptiPNG is good for compressing PNG files.
Looks like OptiPNG does two things, removes metadata and compresses the file. But works as name indicates only for PNG files.
Command: (works good as Thunar Custom Action)

Code: Select all

optipng -o2 -strip all *
Mat code is bellow, but mat is also quite limited. You can use this for Thunar Custom Action command:

Code: Select all

mat .

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 409
Joined: Sat Mar 10, 2018 9:06 pm

Re: Tutorial(s): Thunar Custom Actions--- simplify what you do

#34

Post by Buck Fankers » Thu Aug 08, 2019 5:50 pm

Someone gave me ms office files and 'mat' didn't clean them, but it did clean ODS (Libre), so looks like 'mat' is not that useful.

User avatar
manyroads
Forum Regular
Forum Regular
Posts: 1778
Joined: Sat Jun 30, 2018 6:33 pm

Re: Tutorial(s): Thunar Custom Actions--- simplify what you do

#35

Post by manyroads » Thu Aug 08, 2019 6:16 pm

I think you might want to open a thread on your topic Buck.
Pax vobiscum,
Mark Rabideau - http://many-roads.com
bspwm MX-18.3 kernel: 5.1.11-antix.1-amd64-smp
"For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
Testing: Obarun, Guix, antiX19

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 409
Joined: Sat Mar 10, 2018 9:06 pm

Re: Tutorial(s): Thunar Custom Actions--- simplify what you do

#36

Post by Buck Fankers » Fri Aug 09, 2019 2:01 am

manyroads wrote:
Thu Aug 08, 2019 6:16 pm
I think you might want to open a thread on your topic Buck.
That is interesting. Apparently I still don't understand how this forum works. Was I off topic?
I posted few more custom actions and had few questions about them.
Is it better if 'thunar custom actions' posts are spread across different threads?
Anyway, will refrain from now on to post anything else in this one, no problem, just strange...

User avatar
manyroads
Forum Regular
Forum Regular
Posts: 1778
Joined: Sat Jun 30, 2018 6:33 pm

Re: Tutorial(s): Thunar Custom Actions--- simplify what you do

#37

Post by manyroads » Fri Aug 09, 2019 9:26 am

Buck Fankers wrote:
Fri Aug 09, 2019 2:01 am
manyroads wrote:
Thu Aug 08, 2019 6:16 pm
I think you might want to open a thread on your topic Buck.
That is interesting. Apparently I still don't understand how this forum works. Was I off topic?
I posted few more custom actions and had few questions about them.
Is it better if 'thunar custom actions' posts are spread across different threads?
Anyway, will refrain from now on to post anything else in this one, no problem, just strange...
My comment was solely based on the fact that you seem enthusiastic about a particular issue that needs more visibility than it will get at page 4 of what is supposed to be listing of functionng thunar commands. Once you figure out what works, by all means add it.
Pax vobiscum,
Mark Rabideau - http://many-roads.com
bspwm MX-18.3 kernel: 5.1.11-antix.1-amd64-smp
"For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
Testing: Obarun, Guix, antiX19

Post Reply

Return to “Tips&Tricks”