auto change filemanager folder colors dependent on location in directory hierarchy


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers auto change filemanager folder colors dependent on location in directory hierarchy
# 1  
Old 06-09-2009
auto change filemanager folder colors dependent on location in directory hierarchy

Hello,

Is it possible to make a file manager use different "colored folders" when browsing specific directories?

For example, if I open a gnome file manager and browse my windows share at, smb://192.168.1.101/z/ , can I make those folders appear green?

And when I open another instance of the file manager and browse my home directory can I make those folders appear blue?

And when I'm browsing my external hard drive can I make those folders appear red?

That way I can just look at the color of the folders and know that I'm looking at my windows share, local hard disk or external hard disk.

Thank you.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

Folder location interrupted

Have had hidden/interrupted folder. It is on a NTFS-partition I use for OS and Bootcamp. I think that the problem is a HFS+ problem. I happened with all the folder which had a slash "/" in their folder name. So for example I had the folder "test/rand". Recently it disappeared from finder. In... (9 Replies)
Discussion started by: sceltecs
9 Replies

2. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies

3. Shell Programming and Scripting

Auto delete the folder

Hi, i have the directory structure directory /home/ncs/controller/logs/ in this path i have following directories cl03032010 cl04032010 cl05032010 cl06042010 i want to delete the folders which are 2 weeks old.. through the crontab (2 Replies)
Discussion started by: mail2sant
2 Replies

4. Linux

file location for GNOME auto startup apps

I know how to add an apps to auto-start in GUI, but I'd like to know how to do it mannualy. So where is the file saved to by GUI ? (1 Reply)
Discussion started by: honglus
1 Replies

5. UNIX for Advanced & Expert Users

Auto copy for files from folder to folder upon instant writing

Hello all, I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written. I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Discussion started by: Bashar
2 Replies

6. Shell Programming and Scripting

Script execution dependent upon a file landing in a certain directory

Hi all, I'm looking to write a script that is dependent upon the existence of 2 files each in separate directories. My thought was to do: **psuedo code ** execute script check directory 1 for file1 if file exists then execute script 2 ( checking directory 2 for file 2) else... (3 Replies)
Discussion started by: keladar
3 Replies

7. Shell Programming and Scripting

Need to search and replace in multiple files in directory hierarchy

Hello all I need to search and replace in multiple files that are in directory hierarchy Im using the : find . -name "*.dsp" -print | xargs grep -n -o Test.lib" , I like to be able to replace every instance of Test.lib with empty space . how can I write one liner that does this ? (3 Replies)
Discussion started by: umen
3 Replies

8. UNIX for Dummies Questions & Answers

Directory colors

Hey guys, When I used a Solaris box way back I had directory, file , symbolic link colors, etc... I can't seem to find the .dircolors file and how i set it up for bash on Solaris... anyone remember how to do it? Thanks! (2 Replies)
Discussion started by: kingdbag
2 Replies

9. UNIX for Dummies Questions & Answers

cp without maintaining the soucre directory tree hierarchy

Hi guys. I'm willing to copy a specific file system hierarchy, but I would not like to maintain the directory tree organization. For example: Let's say /a/b/c is the fs I'm wanting to copy to my destination, and that c is a directory with 30 files, 10 on /a/b/c , 10 on a/b/c/c1 and 10... (2 Replies)
Discussion started by: 435 Gavea
2 Replies

10. Programming

auto update on directory change

Hi all! Recently I've started to develop a small program that needs to check for the arrival of files in a pre-determined directory. I could use a timer to check for changes in this directory every n seconds. Instead, what I'm really looking for is for some kind of notification mechanism... (1 Reply)
Discussion started by: bmsantos
1 Replies
Login or Register to Ask a Question
GNOME(1)						      General Commands Manual							  GNOME(1)

NAME
GNOME MIME configuration files The GNOME system uses MIME types to classify content. Each MIME type on the GNOME system has a number of attributes attached to it. Some of these attributes have a special meaning to the GNOME system. MIME type of files There are two ways of classifying a file in the GNOME system: by matching their extension or a regular expression with their name or by its content. GNOME applications use one of those two methods depending on speed contraints and the specific setup. The MIME types available on the system can be configured at runtime by putting special files in either the GNOME MIME directory (/usr/share/mime-info) or the user ~/.gnome/mime-info directory. MIME type definition files. The routines that classify a file by its name, use the contents of all of the files with the extension .mime from the /usr/share/mime-info directory and the ~/.gnome/mime-info to build the database for filename matching. The latter is supported to enable users to provide their mime types to extend the system defaults. Application that wish to install their own MIME types only need to install a file in this directory. The file /usr/share/mime-info/gnome.mime is special, as it contains the defaults for gnome, and is read first. In addition, the file ~/.gnome/mime-info/user.mime is read last. This will guarantee that there is a way to set system defaults, and there is a way for the user to override them. There is currently no way to tell anything about the order of the other files in those directories, nor is there anyway to override system defaults yet. The format is the following: mime-type-name ext[,priority]: ext1 ext2 ext3 ext[,priority]: ext4 regex[,priority]: regex1 regex[,priority]: regex2 where "mime-type-name" is a valid MIME type. For example "text/plain". For example, for a vCalendar application, this file would be installed: ------ calendar.mime ------- application/v-calendar: ext: vcf ----------------------------- MIME key information To add keys to a MIME type, it is necessary to install a file with the extension .keys in the /usr/share/mime-info directory or in the ~/.gnome/mime-info directory. The former is for system-provided mime-information and the latter is to enable the user to extend the actions as provided by the system. The file /usr/share/mime-info/gnome.keys is special, as it contains the defaults for gnome, and is read first. In addition, the file ~/.gnome/mime-info/user.keys is read last. This will guarantee that there is a way to set system defaults, and there is a way for the user to override them. There is currently no way to tell anything about the order of the other files in those directories, nor is there anyway to override system defaults yet. The .keys files have the following format: mime-type-match: []key=value Above, the key is the key that is being defined and value is the value we bind to it. The optional [LANG] represents a language in which this definition is valid. If this part is specified, then the definition will only be valid if LANG matches the setting of the environment variable LANG. The LANG setting is used to provide keys which can be displayed to the user in a localized way. This is an example to bind the key open to all of the mime-types matching image/* and the icon-filename key is bound to the /opt/gimp/share/xcf.png value: image/*: open=gimp %f image/x-xcf: icon-filename=/opt/gimp/share/xcf.png This will make the GIMP the handler for the open action. Files of type xcf would use the filename pointed in the icon-filename key. %f gets interpolated with the file name or the list of file names that matched this mime-type. As you can see from the example above, a .keys file does not need to provide all of the values, it can just provide or override some of the actions. User defined bindings in .keys file will take precedence over system installed files. Special key used by the GNOME system The following keys are currently used in the GNOME desktop: open Open the file with this command. icon-filename The filename with the icon that should be used to represent files of this type. view Command to view the file contents. ascii-view A command that should be used to do an ascii-rendering of the file. Used as a fallback by the filemanager if a view action does not exist. fm-open file-manager open. If present, the file manager will use this action instead of the value in open to perform this action (the file- manager for example will open archive files as if they were directories by using the VFS). fm-view file-manager view. If present, invoking the view opertion on the file manager will use the value defined here instead of the value in "view". fm-ascii-view Fallback operation for the file manager as well. Those keys are also queried on the metadata (except in the cases where the lookup would be too expensive). AUTHOR
This manual page has been written by Miguel de Icaza (miguel@gnu.org) GNOME 1.0 GNOME(1)