Archive for April, 2010
awesome rar-sfv script for gnome – nautilus
1So what you want to do is add this to “/home/yourname/.gnome2/nautilus-scripts” and make it executable
[codesyntax lang="bash"]
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
#!/bin/sh cd $NAUTILUS_SCRIPT_CURRENT_URI LABEL=$(zenity --entry --title="RAR Output Name?" --entry-text "$1" --text "Type the output name here.. set to the input name of the file you will rar, you can change this name to anything you like BUT DONT HAVE SPACES AND PLEASE REMOVE. example .avi .rar .mpg mpeg .flv .zip FROM THE END You Just need the name you want " $1 2>&1) if [ "$?" = 0 ]; then zenity --title Replay --info --text 'You hit OK' --auto-close else zenity --title Replay --info --text 'You you Canceled' exit fi pri=$(zenity --list --title "Set the Priority" --height 330 --text "Please chose your Priority setting. 0 is no priority 3 is min 6 is above min 12 is mid 19 is max" --radiolist --column "Pick" --column "Rar Priority" FALSE "0" FALSE "3" FALSE "6" TRUE "12" FALSE "19" 2>&1) if [ "$?" = 0 ]; then zenity --title Replay --info --text 'You hit OK' --auto-close else zenity --title Replay --info --text 'You you Canceled' exit fi size=$(zenity --list --title "Set the Archive Size Units" --height 270 --text "Please choose the units that will be used (ex. 50m is 50 MB)" --radiolist --column "Pick" --column "Size" FALSE "1m" FALSE "3m" FALSE "5m" TRUE "15m" FALSE "50m" FALSE "auto" 2>&1) if [ "$?" = 0 ]; then zenity --title Replay --info --text 'You hit OK' --auto-close else zenity --title Replay --info --text 'You you Canceled' exit fi comp=$(zenity --list --title "Set the Archive Size Units" --height 247 --text "Please chose you compression setting. 0 is to store (no Compression) 3 is mid 5 is max compression" --radiolist --column "Pick" --column "Compression Ratio" TRUE "0" FALSE "3" FALSE "5" 2>&1) if [ "$?" = 0 ]; then zenity --title Replay --info --text 'You hit OK' --auto-close else zenity --title Replay --info --text 'You you Canceled' exit fi DIR=$(zenity --entry --title="RAR Tmp Directory?" --entry-text "/tmp/"$LABEL"" --text "Tmp Directory Location... Just hit ok or enter here. Nothing needs changing as its the temp folder to creat the needed logs and so. Everything Will be deleted from the tmp when we have finished. Also When all rars are complete a log window will show up with the rar log. To make sure we have no errors" 2>&1) if [ "$?" = 0 ]; then zenity --title Replay --info --text 'You hit OK' --auto-close else zenity --title Replay --info --text 'You you Canceled' exit fi mkdir $DIR (nice -n $pri rar a -v$size -m$comp -vn $LABEL.rar $1 >> $DIR/$1.log) 2>&1 | zenity --progress --pulsate --title "Progress" --text "Creating your rars." --auto-close --auto-kill; then if [ "$?" = 0 ]; then zenity --title Replay --info --text 'You hit OK' --auto-close else zenity --title Replay --info --text 'You you Canceled' exit fi zenity --info --title "Done!" --text "Archiving complete! You can find the archive(s) $LABEL in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS as $LABEL.rar" --auto-close --auto-kill; zenity --title="RAR Completed log" --height 300 --width 500 --text-info --filename=$DIR/$1.log 2>&1 for file in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do if [[ -d "$LABEL" ]]; then exit fi filename=$(echo $LABEL | sed -e 's/.*\///g') arg=`echo $arg $LABEL.r*` done $LABEL=`zenity --entry --title="Make SFV $LABEL.rar" --entry-text "$LABEL" --text="Insert desired name for the .sfv file it will auto load the name you entered for your rar files just click ok"` zenity --info --title="Cksfv" --text="cksfv $arg > $LABEL.sfv" --auto-close; (cksfv $arg > "$LABEL.sfv") 2>&1 | zenity --progress --title "Make SFV" --text "Making..." --auto-close; zenity --info --title "Done!" --text "Everything is now completed ENJOY :)"; rm $DIR/$1.log |
[/codesyntax]
I named the file rar-sfv and when you right click a file you’ll see a new option called “Scripts” hover over that and select the rar-sfv script and it will start asking you basic questions on how you want it packaged etc
Works Great!
It will look something like this:
– EDIT — Took me a while to find where I originally found this and if you want the article, you can go here.
Well hello there, it’s been a while!
0Not much technical today, I just wanted to stop by and say hi as it’s been a while since I’ve updated this site.
I’ve had alot going on lately. I’m single again, which has afforded me alot of free time to do some of the things that my ex probably wouldn’t have let me do like, re-paint my dashboard (it’s now got a kick ass fade from black to a deep blue, came out really sweet) I’ve installed a 2 fared capacitor in my truck to help power my 2 – 10″ sub’s and 500×2 amp, (custom hand made fiberglass box is going to be made soon!) Installed a CB Radio and SWR meter in my truck so that I have something to do on a Friday night, like play the rabbit game which as it turns out is really fun!
I’ve also gotten back in touch with my online friends over at my old stomping grounds and they have all welcomed me back with such enthusiasm that one can’t help but smile.
Ooh and it looks like we have gotten the contract for my Inc. to start on the first of the month!
So yea, sorry I haven’t had alot of time, but life has gotten interesting.
I hate to say it if your reading this Jennie, but I am happier now, and hope that you are as well.

