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