PageRenderTime 83ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 37ms app.codeStats 0ms

/vfu.conf

http://github.com/brinkman83/bashrc
Config | 262 lines | 233 code | 29 blank | 0 comment | 0 complexity | 26b405fb2d535499278da53fba5d3123 MD5 | raw file
  1###############################################################################################
  2#
  3# vfu.conf
  4# VFU File Manager config file
  5# (c) Vladi Belperchinov-Shabaski 1997-2009
  6# <cade@biscom.net>   <cade@datamax.bg>   <cade@epay.bg>
  7# http://soul.datamax.bg/~cade/vfu
  8# http://cade.datamax.bg/vfu/
  9#
 10###############################################################################################
 11#
 12# All lines with first character # or ; are considered comments!
 13# Comments may start on a separated new line only! (i.e. comment chars must be first in line)
 14# This file is read-only! vfu never writes to it.
 15#
 16# Possible locations for this file are:
 17#
 18# $HOME/.vfu/vfu.conf
 19# $HOME/$RC_PREFIX/vfu/vfu.conf   ( please read CONFIG file )
 20# /etc/vfu.conf
 21# /usr/local/etc/vfu.conf
 22# /usr/local/vfu.conf
 23#
 24
 25
 26# comment out folowing lines to use vfu's internal editor and viewer
 27# or you can toggle em run-time if you wish so
 28Browser=less %f
 29Editor=joe %f
 30Diff=diff -u
 31
 32# alternative ones:
 33#Editor=vi %f
 34#Editor=~/apps/zed/zed %f
 35
 36# list of known archive types, these are just for recognizing
 37# handling is done via rx_* scripts! but not by VFU itself
 38Archive=*.zip
 39Archive=*.pk3
 40Archive=*.maff
 41Archive=*.jar
 42Archive=*.tar.gz
 43Archive=*.tgz
 44Archive=*.tar.Z
 45Archive=*.tar.bz2
 46Archive=*.tar
 47Archive=*.rar
 48Archive=*.deb
 49Archive=*.ftp
 50Archive=*.rpm
 51
 52#
 53# if you'd like to restrict VFU when walking the directory tree -- list paths
 54# here. Note that you usually should add at least `/tmp/' and `/proc/'
 55# format is `:' separated list of directory prefixes
 56#
 57TrimTree=/dev/:/proc/:/tmp/:/dos/:/a/
 58
 59###############################################################################################
 60# user external commands (handlers), format is:
 61# description,keyname,ext.mask,command
 62#
 63# to execute a command VFU will try to match both
 64# key pressed and current file's extension!
 65#
 66# 1. `description' is just free text, keep it small, first letter can be used as menu hotkey
 67# 2. `keyname' is key you want to bind
 68# 3. `ext.mask' is dot-separated list of required extensions and/or file type strings
 69#               or `*' to discard file type and run command for all files
 70#               (don't be confused with `.**.' which stands for `executable' files)
 71# 4. `command' is the shell line you want to execute (as on the command prompt for example)
 72#
 73# Available keys (keynames) are:
 74#     ENTER, INSERT, F1..F10, @F1..@F10, #F1..#F10, ^F1..^F10
 75#     (#=shift, @=alt, ^=ctrl, note: ^KEY and @KEY are not available under Linux)
 76#
 77# NOTE: You can use keyname `MENU' to attach this command to the `UserMenu' (key U in vfu)
 78# NOTE: `file type strings' are the strings that VFU shows in the `TP' column in the file,
 79#       list. Here is a list of the file type strings:
 80#         **  -- executable file
 81#         []  -- directory
 82#         ->  -- symbolic link
 83#         <>  -- symbolic link to directory
 84#         ==  -- block device
 85#         ++  -- character device
 86#         ()  -- fifo (pipe)
 87#         ##  -- socket
 88#       You can mix file extensions with file type strings in the same mask.
 89#       There is a special mask called `dotfiles' which will match dotfiles (wiles named
 90#       with leading dot -- `.dotname' )
 91# NOTE: You cannot mask longer extensions like `.tar.gz' for example.
 92#
 93# `Command' string (shell line) can contain following macros:
 94#
 95#         %f  -- replaced w. current filename (w/o path)
 96#         %F  -- replaced w. full pathname of the current file
 97#         %g  -- same as %f but for each selected filename
 98#         %G  -- same as %F but for each selected filename
 99#                %g and %G produce list of filenames. each filename
100#                is surrounded by '
101#                if filename contains ' then " is used.
102#                example: 'file1' "file2's" 'file"3"' ...
103#         %e  -- current file name without extension
104#         %E  -- current file extension
105#         %s  -- current file size
106#         %c  -- current path ( with slash at the end )
107#         %C  -- startup path ( with slash at the end )
108#         %R  -- re-read directory content after shell
109#         %?  -- prompt for user input and replace it in
110#         %i  -- simulates DownArrow after execution
111#         %n  -- don't clear and redraw screen on user external command
112#         %w  -- wait a key after shell. replaced w. `' (i.e. empty string)
113#         %x  -- replaced w. `x'.
114#         %_  -- use short file names (SFN) for %f and %F (DOS only)
115#         %\  -- use backslashes for %f and %F (DOS only)
116#         %!  -- request shell line to be shown before execution (debug mode)
117#
118
119# view JPEGs and GIFs -- you can move this to the SEE filters below
120#ux=SEE JPEG,INSERT,.jpg.jpeg.gif.,seejpeg -w -F G640x480x256 -c "%f"
121ux=SEE JPEG,ENTER,.JPG.jpg.JPEG.jpeg.gif.xpm.png.,qvv "%f" 2> /dev/null &
122ux=SEE GNUMERIC,ENTER,.xls.gnumeric.,gnumeric "%f" 2> /dev/null &
123
124# view HTML documents -- now moved to SEE filters below
125ux=SEE HTML,ENTER,.htm.html.shtml.,lynx "%F"
126ux=SEE HTML,INSERT,.htm.html.shtml.,lynx "%F"
127
128#ux=PLAY WAV,ENTER ,.au.wav.WAV.,killall mpg123 play 2> /dev/null; play "%f" %i  %n 1> /dev/null 2> /dev/null &
129#ux=PLAY WAV,INSERT,.au.wav.WAV.,play "%f" %i%n 1> /dev/null 2> /dev/null &
130#ux=PLAYMP3,ENTER,.ogg.mp3.wav.,killall mpg123 play 2> /dev/null; mpg123 -b 1024 "%f" %i 1> /dev/null 2> /dev/null &
131
132# run xmms with all selected files
133ux=PLAY MP3,ENTER,.ogg.mp3.wav.,xmms "%f" %i 1> /dev/null 2> /dev/null &
134# if you want to run only pointed one, then replace %g with %f like in the next line:
135# ux=PLAY MP3,ENTER,.ogg.mp3.wav.,xmms "%f" %i 1> /dev/null 2> /dev/null &
136
137# run xmms with all mp3/wav files in the current directory
138ux=PLAY MP3,INSERT,*,xmms *.mp3 *.wav 1> /dev/null 2> /dev/null &
139
140# view PDF and PS document
141ux=VIEW PDF,ENTER,.pdf.PDF.,acroread "%f" 1> /dev/null 2> /dev/null &
142ux=VIEW PS,ENTER,.ps.,gv "%f"&
143
144#
145ux=VIEW TAR,INS,.gz.,gunzip -c "%f" | tar tvf - | less
146
147# view man pages -- note you can add and see filter for this
148ux=VIEW MAN,ENTER,.1.2.3.4.5.6.7.8.,man "%F"
149
150# play mpeg's
151#ux=PLAY MPEG,ENTER,.mpg.MPG.mpeg.,plaympeg "%f"  1> /dev/null &
152#ux=PLAY MPEG,INS,.mpg.MPG.mpeg.,plaympeg -2 "%f" 1> /dev/null &
153ux=PLAY MPEG,ENTER,.mpg.MPG.mpeg.asf.avi.mov.wmv.,mplayer "%f"  1> /dev/null 2> /dev/null &
154ux=PLAY MPEG,INS,.mpg.mpeg.asf.avi.mov.wmv.,mplayer "%f" 1> /dev/null 2> /dev/null
155ux=PLAY REAL,ENTER,.rm.,realplay "%f"  1> /dev/null 2> /dev/null &
156
157# other applications
158ux=EDIT GNUMERIC,ENTER,.gnumeric.,gnumeric "%f" 1> /dev/null 2> /dev/null &
159
160#
161# following user commands are bound to the UserMenu -- key `u'
162# note that instead of keyname there's `menu' string!
163# first letter is hotkey!
164#
165ux=lLocate file,menu,*,locate %? %w
166ux=---,menu,*,
167ux=ompg123: Stop,menu,*,killall -TERM mpg123 1> /dev/null 2> /dev/null &
168ux=smpg123: Suspend,menu,*,killall -STOP mpg123 1> /dev/null 2> /dev/null &
169ux=cmpg123: Continue,menu,*,killall -CONT mpg123 1> /dev/null 2> /dev/null &
170ux=vmpg123: View running/queue,menu,*,ps xeo "%%p %%a" | grep mpg123 | grep -v grep | less
171ux=---,menu,*,
172ux=GGQView Here,menu,*,gqview . 1> /dev/null 2> /dev/null &
173
174#
175# aditional examples:
176#
177
178# edit with kwrite ( > /dev/null -- all os text messages )
179# NOTE: `*' means for any file (regardless type)
180ux=KWRITE EDIT,F6,*,kwrite "%f" 2> /dev/null 1> /dev/null %n &
181ux=GIMP EDIT,F7,.gif.jpg.png.xcf.,gimp-remote "%f" 2> /dev/null 1> /dev/null %n &
182# ux=SLICK EDIT,F7,*,vs '%f' 2> /dev/null 1> /dev/null %n &
183ux=KATE EDIT,F7,*,e '%f' 2> /dev/null 1> /dev/null %n &
184
185# execute all files that have type `**' with ENTER
186ux=EXEC,ENTER,.**.,"%f"
187# same as the one before but executes command in background
188ux=EXEC,INSERT,.**.,"%f"&
189
190###############################################################################################
191# the `see' file browser/viewer filters
192# the format is:
193# file-mask,command
194# 1. `file-mask' tells which files should be filtered
195# 2. `command' is executed and it's output is piped to temporary file which is
196#              viewed by the viewer (You have to specify %f in the command)
197#
198see=*.html.gz,(gzip -dc "%f" > /tmp/vfu.temp.000.html; lynx -dump /tmp/vfu.temp.000.html; rm /tmp/vfu.temp.000.html )
199see=*.[1234567890].gz,man "%F"
200see=*.gz,gzip -dc "%f"
201see=*.bz2,bzip2 -dc "%f"
202see=*.Z,gzip -dc "%f"
203see=*.[1234567890],man "%F"
204see=*.htm,lynx -dump "%f"
205see=*.html,lynx -dump "%f"
206see=*.shtml,lynx -dump "%f"
207see=*.dbf,dbfdump -2 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 "%f"
208
209see=*.jpg,exiftags '%f'
210see=*.JPG,exiftags '%f'
211
212# this is a hack to view Qt man pages
213see=*.[1234567890][a-zA-Z]t?,man "%F"
214
215###############################################################################################
216# external panelizers -- added to RescanMenu ( key ALT+R )
217# first letter is hotkey!
218# format is:
219# description,command
220# 1. `description' is free text describing panelizer command
221# 2. `command' is processed just like any other external command, so
222#              you can use the shell-macros described above. Note that
223#              first letter of description is used for menu hotkey!
224#
225panelize=xExternal panelize command,%?
226panelize=yFind all symlink files...,find . -type l
227panelize=lLocate file,locate %?
228
229###############################################################################################
230# directory bookmarks -- press ALT+2 to change current dir to `/tmp' etc...
231#
232bookmark1=/home/cade/
233bookmark2=/tmp/
234bookmark3=/usr/src/
235bookmark4=/usr/local/lib/X11/icewm/
236# :)
237
238###############################################################################################
239# file extensions colors, format is .ext.ext.ext....ext.
240# NOTE: this is extensions list, use dots to separate and at the end
241#
242cMAGENTA=.**.txt.rc.
243cGREEN=.jpeg.jpg.lbm.xpm.tif.gif.png.
244cCYAN=.[].<>.h.c.cpp.cc.cxx.pas.pl.
245cRED=.dotfiles.
246cYELLOW=.uc2.zip.arj.tgz.tar.rar.lzh.j.ha.lim.gz.Z.bz2.deb.
247cBLUE=.==.++.().##.
248
249###############################################################################################
250# high colors
251# NOTE: this mode currently is not available!
252#
253#chMAGENTA=
254#chGREEN=
255#chCYAN=
256#chYELLOW=.1.2.3.4.5.6.7.8.
257#chBLUE=
258
259###############################################################################################
260# EOF vfu.conf
261###############################################################################################
262