rox-filer customizations

Share your own howto's etc. Not for support questions!

rox-filer customizations

Postby mzilikazi » 2008-01-09 22:50

After using ROX filer for several years now I've found a few customizations that are hard to live without but some of them were not easily obtained, (read - lots and lots of googling) so I though it would be appropriate to share some of the tips & tricks here and maybe start a nice collection of rox hacks. Please feel free to add your own rox hacks & customizations. I know there are plenty of them.

Something else I'm working on ATM are links to rox filer compatible icon sets. Please add your links!

Of course the first place to go for info would be the ROX desktop home page.
http://roscidus.com/desktop/
Not everything you need is posted there however.

*Note* These scripts are rather rudimentary and surely someone better at BASH scripting than I could probably come up with something much more clever and useful but these do get the job done. ;)


Installing .debs

To install .debs with root privilages simply call gksu to execute a dpkg -i script. Here's mine:

Code: Select all
aterm -bg black -fg green -tr +sb -geometry 145x5 -bl -e dpkg -i $1

I called the script dpkgi and dumped it into /usr/local/bin
Now all you need to do is make the script executable and set the run action for all .debs to
Code: Select all
gksu dpkgi "$@"


Unarchiving

I have a strong dislike for any and all archive managers. They waste my time with unnecessary questions and ideally they should just unarchive the file and get out of the way. Fortunately, it's pretty easy to get rox filer to unpack your archives without ever answering a single question or clicking any buttons. First, create a script:

Code: Select all
cd "`dirname $@`"
unp "$@"


I called my script unarc and dumped it into /usr/local/bin
Then, simply set rox filer run action (for all archive types) to
Code: Select all
unarc "$@"

*Note* You must have the fabulous unp installed for this to work. It's apt-gettable. ;)

Burn CD images
Make a script that calls your favorite terminal emulator:
Code: Select all
xfce4-terminal -x wodim dev=/dev/scd0 driveropts=burnfree,noforcespeed fs=14M speed=10 -dao -eject -overburn -v $1;eject /dev/scd0

I called mine burncd and dropped it in /usr/local/bin

Burn DVD images
Make a script that calls your favorite terminal emulator:
Code: Select all
xfce4-terminal -x growisofs -Z /dev/scd0=$1;eject /dev/scd0

I called mine burndvd and dropped it in /usr/local/bin

You must then of course customize your right click context menu under the 'Send To' item and simply add burndvd & burncd.

How to change the Rox filer toolbar icon theme?
Add it to ~/.gtkrc2.0-mine
Code: Select all
gtk-icon-theme-name="Nuovo"


ROX compatible icon sets:
MIME type icon themes compatible w/ Rox
Code: Select all
apt-get install gnome-icon-theme-nuovo tango-icon-theme


Black White 2 Vista looks to be fairly complete. I would however suggest changing the icon for inode/mountpoint. Simply right click on any mount point >Set Icon>For all filesof type 'mount point' (inode/mount-point)
I chose this icon:
Code: Select all
/usr/share/icons/black-white_2-Vista/extra/Linux-HD.png
Last edited by mzilikazi on 2009-04-08 02:26, edited 3 times in total.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby souneedalink » 2008-01-10 00:01

good info - more please
User avatar
souneedalink
 
Posts: 688
Joined: 2008-01-02 17:45

Postby canci » 2008-01-10 12:50

wow! very good HOWTO! tnx
I ken hez kinvulf beck? I ken hez riesnible modereyshn? Kthnxbai!

No need to discuss this topic? Offended by this signature? Remove it:

Mez wrote:You can easily just disable viewing signatures

Click here - and set "Display Signatures" to No
User avatar
canci
 
Posts: 1705
Joined: 2006-09-24 11:28
Location: Bosnia & Herzegovina

Postby Jackiebrown » 2008-01-11 03:14

I don't use rox execpt as a backup file manager but just the compression section alone was worth the read.
User avatar
Jackiebrown
 
Posts: 1275
Joined: 2007-01-02 04:46
Location: San Antonio, TX

Postby mzilikazi » 2008-01-12 01:05

Added some simple scripts for dvd & cd burning.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby mzilikazi » 2008-02-11 13:41

Glass icons are looking & working rather well.

Update 02.17.08

The glass iconset is missing a few mime-type icons. One of them is for mount points. You can easily create one however. This assumes you put your icons in ~/.icons

Code: Select all
 ln -s ~/.icons/glass-icons/scalable/stock/gtk-harddisk.svg
~/.icons/glass-icons/scalable/mimetypes/mime-inode:mount-point.svg


There are other missing icons as well in most themes.
Last edited by mzilikazi on 2008-02-18 05:57, edited 2 times in total.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby craigevil » 2008-02-11 18:24

Very cool mzilikazi
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Postby alidh » 2008-02-11 20:01

Thanks for sharing.


How can I open a pdf in rox-filer?

To set kpdf as default?
User avatar
alidh
 
Posts: 334
Joined: 2007-07-14 21:54

Postby mzilikazi » 2008-02-11 20:15

alidh wrote:Thanks for sharing.


How can I open a pdf in rox-filer?

To set kpdf as default?

You can set any app as default for any file type.
Rox-filer>Right Click (your pdf file) >Set run action>
Then either browse to the executable or just type in the command. In your case, set run action to kpdf.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby alidh » 2008-02-11 20:32

mzilikazi wrote:
alidh wrote:Thanks for sharing.


How can I open a pdf in rox-filer?

To set kpdf as default?

You can set any app as default for any file type.
Rox-filer>Right Click (your pdf file) >Set run action>
Then either browse to the executable or just type in the command. In your case, set run action to kpdf.


thanks!
User avatar
alidh
 
Posts: 334
Joined: 2007-07-14 21:54

Postby alidh » 2008-02-11 21:48

@ Mzilikazi: I doubt if this is the right topic for my question... but I'm using fluxbox and often want to start a couple of music programs. Like a combination with jack and jack-rack or jack, ardour and hydrogen... etc.

Can I make a script or something to run these combination of apps if I want to?

Can you help me with that?
User avatar
alidh
 
Posts: 334
Joined: 2007-07-14 21:54

Postby mzilikazi » 2008-02-11 22:46

alidh wrote:@ Mzilikazi: I doubt if this is the right topic for my question... but I'm using fluxbox and often want to start a couple of music programs. Like a combination with jack and jack-rack or jack, ardour and hydrogen... etc.

Can I make a script or something to run these combination of apps if I want to?

Yes. I would imagine that you can find alot of good info for Fluxbox in this same forum. Check this one out
viewtopic.php?t=5382
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

zeroinstasll injector

Postby mzilikazi » 2008-02-19 21:32

You need to add a repo to sources.list. I do it like so:
Code: Select all
echo "deb-src http://mentors.debian.net/debian unstable main contrib non-free" >> /etc/apt/sources.list.d/debian.list
apt-get update
apt-get install zeroinstall-injector


What can you do with Zeroinstall?

Your MIME type editor will now work:
Rox filer>Right click>Options>Types>Edit MIME rules.
Be sure to mark 'Trust this key' (if you do in fact trust it ;) )

You can launch the Zero2Desktop from the Accessories menu iin Xfce4
Xfce4 menu>Accessories>Zero2desktop
Then simply drag & drop (or enter a URL) from here into the Zero2Desktop window. The URL will be enqueued in the Zero Install injector. Select the app you want to download and click Download
Zero2Desktop will then tell you where to find the new application in your menu.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

black-white

Postby mzilikazi » 2008-02-21 20:39

The Black White 2 Gloss icon set is Rox compatible although it does need a few tweaks (don't they all?). There are several missing icons but one of the most notable (to me) is the mounted hard disc icon. You can link it like so:
Code: Select all
ln -s ~/.icons/black-white_2-Gloss/scalable/emblems/emblem-shared.png ~/.icons/black-white_2-Gloss/scalable/mimetypes/mime-inode:mount-point.png

Then you need to make a small change to index.theme. Simply add 'gnome' to the end of this line:
Code: Select all
Inherits=Breathless,Mac4Lin_Icons,nuevo,etc,gnome


When launching Rox from cli I noticed an error about scalable/places/22. You can fix that too:
Code: Select all
nano ~/.icons/black-white_2-Gloss/index.theme

Change this:
Code: Select all
#Directories=72x72/apps,scalable/actions,scalable/places/22,scalable/animations,scalable/apps,scalable/apps/22,scalable/apps/32,scalable/apps/48,scalable/apps/256,scalable/categories,scalable/spinner,scalable/places,scalable/places/256,scalable/mimetypes,scalable/devices,scalable/devices/256,scalable/emblems,scalable/emblems/32,scalable/emblems/48,scalable/status,scalable/status/32,scalable/status/48,scalable/status/128

To this:
Code: Select all
Directories=72x72/apps,scalable/actions,scalable/animations,scalable/apps,scalable/apps/22,scalable/apps/32,scalable/apps/48,scalable/apps/256,scalable/categories,scalable/spinner,scalable/places,scalable/places/256,scalable/mimetypes,scalable/devices,scalable/devices/256,scalable/emblems,scalable/emblems/32,scalable/emblems/48,scalable/status,scalable/status/32,scalable/status/48,scalable/status/128
Code: Select all
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Convert audio files

Postby mzilikazi » 2008-02-29 04:15

Code: Select all
wget http://download.savannah.nongnu.org/releases/audio-convert/audio-convert-0.3.1.1.tar.bz2
unp  audio-convert-0.3.1.1.tar.bz2
su
cp audio-convert-0.3.1.1/audio-convert /usr/local/bin/

Now just add a new Send To item to your right click context menu.
Code: Select all
cd ~/.config/rox.sourceforge.net/SendTo
ln -s /usr/local/bin/audio-convert

You can select single files to convert or multiple files (hold CTRL key while selecting) and Send To>audio-convert
audio-convert is somewhat intelligent in that it will help you identify missing decoders like lame.
If you need further help with Audioconvert please reference
https://savannah.nongnu.org/projects/audio-convert/
and audio-convert-0.3.1.1/README
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Next

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 1 guest

fashionable