Thunar is a file manager, that stays lightweight whilst providing more features and PCManFM. Features include Bulk Rename, Trash bin, plugins and custom actions, which allow you to add commands to the right click context menu.
Thunar is not included with CrunchBang by default.
To install and replace PCManFM with Thunar, follow this guide.
Many plugins are available from the repository.
to install them all, in a terminal type:
sudo apt-get install thunar-volman thunar-thumbnailers ffmpegthumbnailer thunar-archive-plugin thunar-media-tags-plugin
for more information on installing applications see here.
Thunar plugin page.
Custom actions allow you to use command line tools to do things in Thunar. They can be added and modified from Thunar's top level 'Edit' menu under 'Configure custom actions…'
You will already be able to see a custom action, 'open a terminal here', you will see this option when you right click in the main window.
To add another click the 'plus' button on the right.
This example will add an option to emulate PCmanFm's 'Open selected folder as root' option:
gksu thunar %f
'Gksu' is the command to run something as root, see here for an explanation. The Thunar window has an explanation of what the '%' options do, in this case if will open the new window in any files that have been selected, if not it will open it in the current directory.
gksu terminator
#! /bin/sh
mkdir -p ./Resized/$1
for file; do
if [ ! -e $file ]; then
continue
fi
toname="./Resized/"$1"/"$( echo $file | cut -f1 -d.)"_"$1".jpg"
convert -geometry $1x$1 -quality 100 $file $toname
done
to run it, assuming you saved it as 'resize', and want to change the size to 640×640 (add extra custom actions for different sizes):
resize 640 %N
it will then save the resized jpgs in a subdirectory of the current directory called 'Resized'.
As mentioned Thunar has includes a handy Bulk Renamer. To use it open a terminal and run:
thunar -B
You could also use this command in a custom action.