More important than the actions themselves, is that the madebits program shows a general procedure for putting actions into pcmanfm. The madebits program comprises 3 steps for creating an action:
Action | Exec | Script Source |
---|---|---|
backup here | gksudo /opt/madebits-pca_1.0.0/backupfilehere.sh %f | From Madebits |
checksum | /opt/madebits-pca_1.0.0/checksum.sh %f | Download here; See below |
compress | apack %d/%n.tar.gz %f | Install atools |
copy-to-folder | gksudo /opt/madebits-pca_1.0.0/copy2folder.sh %f | From Madebits |
create desktop shortcut | /opt/madebits-pca_1.0.0/link.sh %f | See below; only for idesk |
edit-text-as-root | gksudo leafpad %f | For leafpad |
make file executable | gksudo chmod +x %f | |
make me file owner | gksudo chown me %f | "me"="user-name" |
make new directory | gksudo /opt/madebits-pca_1.0.0/newdir.sh %f | See below |
make new file | gksudo /opt/madebits-pca_1.0.0/newfile.sh %f | See below |
move to folder | gksudo /opt/madebits-pca_1.0.0/move2folder.sh %f | See below |
open as root | gksudo pcmanfm %u | |
play audio randomly | vlc -Z %f | For vlc |
permissions | gksudo /opt/madebits-pca_1.0.0/prm %f | See below; Install xdotool |
rename-root | gksudo /opt/madebits-pca_1.0.0/newname.sh %f | See below |
send to root-trash | gksudo trash %f | |
set as wallpaper | /usr/bin/pcmanfm -w %f | For pcmanfm |
slideshow | mirage --fullscreen --slideshow %f | For mirage |
General software requirements for the above actions are Core Utils and zenity. The action desktop file for Checksum, which shows the MD5, SHA-1, SHA-256 and SHA-512 sums, when applied to a file, can be created by copying and pasting from the box on the upper left. The exec script, checksum.sh, was created by Misko_2083 and can be downloaded from this website: curl -O http://lxlinux.com/checksum.sh.
#!/bin/bash bash -c 'leafpad ~/.idesktop/template.lnk;$SHELL' exit0 |
#!/bin/bash NEWDIR=$(zenity --entry --title="Directory Name" --text="include path") mkdir -p --mode=755 $NEWDIR exit0 |
#!/bin/bash xdotool key F4 & sleep 2 xdotool type "stat -c '%a - %n' *" & sleep 1 xdotool key "Return" & exit0 |
#!/bin/bash folder=$(zenity --file-selection --directory --title="Move To Folder") if [[ $folder ]]; then # mv -n $@ "$folder" for var in "$@" do mv -n "$var" "$folder" done exit0 |
#!/bin/bash NEWFILE=$(zenity --entry --title="File Name" --text="include path") touch $NEWFILE exit0 |
#!/bin/bash OLDNAME=$(zenity --entry --title="Old Name" --text="include path") NEWNAME=$(zenity --entry --title="New Name" --text="include path") mv -n "$OLDNAME" "$NEWNAME" exit0 |