Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

rox-filer customizations

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Message
Author
User avatar
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

rox-filer customizations

#1 Post by mzilikazi »

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
souneedalink
Posts: 666
Joined: 2008-01-02 17:45

#2 Post by souneedalink »

good info - more please

User avatar
canci
Global Moderator
Global Moderator
Posts: 2497
Joined: 2006-09-24 11:28
Has thanked: 135 times
Been thanked: 134 times

#3 Post by canci »

wow! very good HOWTO! tnx
Image Stable / Asus VivoBook X421DA / AMD Ryzen 7 3700U / Radeon Vega Mobile Gfx (Picasso) / 8 GB RAM / 512GB NVMe

READ THIS:

* How to Post a Thread Here
* Other Tips and Great Resources

User avatar
Jackiebrown
Posts: 1246
Joined: 2007-01-02 04:46
Location: San Antonio, TX

#4 Post by Jackiebrown »

I don't use rox execpt as a backup file manager but just the compression section alone was worth the read.

User avatar
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#5 Post by mzilikazi »

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 Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#6 Post by mzilikazi »

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
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

#7 Post by craigevil »

Very cool mzilikazi
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

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

#8 Post by alidh »

Thanks for sharing.


How can I open a pdf in rox-filer?

To set kpdf as default?

User avatar
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#9 Post by mzilikazi »

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
alidh
Posts: 334
Joined: 2007-07-14 21:54

#10 Post by alidh »

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

#11 Post by alidh »

@ 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
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#12 Post by mzilikazi »

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
http://forums.debian.net/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 Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

zeroinstasll injector

#13 Post by mzilikazi »

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 Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

black-white

#14 Post by mzilikazi »

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
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 Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Convert audio files

#15 Post by mzilikazi »

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 Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Drag and drop links

#16 Post by mzilikazi »

Rox Filer>Options>Drag and Drop>Download handler

For Eterm, aterm, xterm, mrxvt:

Code: Select all

Eterm -e wget $@
For a better looking aterm something like:

Code: Select all

aterm -tr -geometry 175x4 -bl +sb -e wget $@
For xfterm4 (Xfce4.6 terminal)

Code: Select all

exo-open --launch TerminalEmulator wget $@
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

ttuuxxx
Posts: 4
Joined: 2009-04-06 14:32

Re: rox-filer customizations

#17 Post by ttuuxxx »

mzilikazi wrote: http://hewphoria.com/?p=submission&type=theme&cat=6

More icon sets to come.
Hi just a note, That link takes to to a page that has a big logo in the middle of the screen and nothing else is on the page, no links, icons, themes etc, just a very big logo :?
ttuuxxx

User avatar
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Re: rox-filer customizations

#18 Post by mzilikazi »

ttuuxxx wrote: Hi just a note, That link takes to to a page that has a big logo in the middle of the screen and nothing else is on the page, no links, icons, themes etc, just a very big logo :?
ttuuxxx
Fixed plus aded a new icon set. Thanks!
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 Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Re: rox-filer customizations

#19 Post by mzilikazi »

Create a custom list of terminals to choose directly from rox-filer:

Code: Select all

/usr/local/bin# cat termchooser 
#!/bin/bash
ICON="/usr/share/zenity/zenity.png"
TERMAPP=$(zenity --title "pen Terminal Here:" --window-icon "/usr/share/zenity/zenity.png" --list --text "" --column "$PWD" lxterminal xfce4-terminal mrxvt)
exec $TERMAPP
Now change your term app in rox-filer:

Code: Select all

Options>Menus>Terminal Emulator Program>/usr/local/bin/termchooser
The next time you hit the ` key your list should appear. Double click the preferred terminal or hit OK.
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 Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Re: rox-filer customizations

#20 Post by mzilikazi »

Recently it dawned on me that an "Open With" menu is pretty common in most file managers so here's how to add an "Open With" menu option to the right click context menu of rox-filer:

Since these scripts each live in their own directory it is possible for each script to have the same name 'Open With' and yet remain different.
We'll use this to our advantage so that no matter the file type the menu option is always 'Open With'.
Open_With.png
Open_With.png (17.94 KiB) Viewed 3771 times


These scripts:
~/.config/rox.sourceforge.net/SendTo/.image_jpeg/Open With
~/.config/rox.sourceforge.net/SendTo/.image_png/Open With
~/.config/rox.sourceforge.net/SendTo/.image_gif/Open With
Can all use the same example "Open With" application selector:

Code: Select all

#!/bin/bash
# ROX filer "Open With" menu file
# For .jpeg .png .gif or most any graphics file.
# 
# Set some variables:
ICON="/usr/share/zenity/zenity.png"
FILENAME=$(basename $1)
GRAPHED=$(zenity --title "pen" --window-icon "$ICON" --list --text "$FILENAME" --column "With:" gimp fotoxx gthumb)
exec $GRAPHED $1
Another example "Open With" script for text files:
~/.config/rox.sourceforge.net/SendTo/.text_plain/Open With

Code: Select all

#!/bin/bash
# ROX filer Open With menu file
# For .txt
# Set some variables
TERMAPP="xfce4-terminal -x"
# TERMAPP="mrxvt -e"
# TERMAPP="lxterminal -e"
EDITOR="nano"
#EDITOR="vi"

ICON="/usr/share/zenity/zenity.png"
FILENAME=$(basename $1)

# A simple function to call the preferred terminal and editor
terminal () {
	$TERMAPP $EDITOR $1
}

# Offer a list of editors
TXTED=$(zenity --title "pen" --window-icon "$ICON" --list --text "$FILENAME" --column "With:" geany leafpad terminal)
exec $TXTED $1
The .txt file menu:
Open_With-txt.png
Open_With-txt.png (11.5 KiB) Viewed 3771 times
From here it's a double click or Select & 'OK' to launch the selected file in your preferred application.
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

Post Reply