home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / menu-methods / menu.h < prev    next >
Encoding:
Text File  |  2010-01-24  |  2.9 KB  |  92 lines

  1. #   -*- mode: shell-script; -*-
  2. #The definitions here are used by all window managers that !include menu.h.
  3. #This way, you can set your preferences (like whether to use xterm/rxvt,
  4. #how long do you want your menu titles, etc) for all window-managers.
  5. #
  6. #This file is part of the menu package (version 1.4 and higher).
  7. #For more information, see /usr/share/doc/menu/html
  8.  
  9. #If you prefer long titles, change the definition below accordingly.
  10.  
  11. function title()=$title
  12.  
  13. #function title()=ifelse($longtitle,$longtitle,$title)
  14.  
  15. #If you don't like to see the icons, (un)comment (out) the lines below:
  16. function icon()=ifelse($icon32x32, $icon32x32, \
  17.                   ifelse($icon16x16, $icon16x16, $icon))
  18. #function icon()= ""
  19.  
  20. #Define the X terminal emulator to use for text apps under X11.
  21. #The following use the x-terminal-emulator alternative.
  22.  
  23. function term()=\
  24.     "x-terminal-emulator " ifnempty($visible,"-ut") \
  25.         ifnempty($geometry,"-geometry ") $geometry \
  26.         " -T \"" esc(title(),"\\\"") "\"" \
  27.         " -e sh -c \"" esc($command,"\\\"") "\""
  28.  
  29. #The above is more correct but unfortunately, some menu-methods 
  30. #do not support ''.
  31.         
  32. #function term()=\
  33. #    "x-terminal-emulator " ifnempty($visible,"-ut") \
  34. #        ifnempty($geometry,"-geometry ") $geometry \
  35. #        " -T '" escwith(title(),"'","'\\'") \ 
  36. #        "' -e sh -c '" escwith($command,"'","'\\'") "'"
  37.  
  38. #Examples:
  39. #Use a specially cooked xterm instead:
  40. #function term()=\
  41. #    "xterm -sb -sl 500 -j -ls -fn 7x14 -geometry 80x30"\
  42. #        " -T '" escwith(title(),"'","'\\'") \
  43. #        "' -e sh -c '" escwith($command,"'","'\\'") "'"
  44.  
  45. #Force use of  rxvt:
  46. #function term()=\
  47. #    "rxvt " ifnempty($visible,"-ut") \
  48. #        ifnempty($geometry,"-geometry ") $geometry \
  49. #        " -T '" escwith(title(),"'","'\\'") \
  50. #        "' -e sh -c '" escwith($command,"'","'\\'") "'"
  51.         
  52.  
  53.  
  54. # This sort menu entry case-insensitively.
  55. sort=$sort ":" tolower(title())
  56.   
  57. #If you want your submenus to come before the commands themselves
  58. #in the menus (in case of mixed menus):
  59. #
  60. #sort=$sort ":" ifelse($command, "1", "0" ) ":" title()
  61.  
  62. #Activate menu section translations:
  63. outputlanguage="LOCALE"
  64. #menu-methods need to set 'outputencoding' before translations are really
  65. #enabled.
  66.  
  67.  
  68. #The following is for the hints (or optimised tree structure):
  69. # (For more info on these variables, see /usr/share/doc/menu/*)
  70.  
  71. #If you want menu to optimize the tree, set this to true:
  72. hint_optimize=false
  73. #for more info on the other variables, see /usr/share/doc/menu/
  74. #hint_nentry=6
  75. #hint_topnentry=4
  76. #hint_mixedpenalty=15
  77. #
  78. #The variables below are only useful if you want to speedup
  79. #the finding of the best tree.
  80. #hint_minhintfreq=0.1
  81. #hint_mlpenalty=2000
  82. #hint_max_ntry=4
  83. #hint_max_iter_hint=5
  84. #hint_debug=false
  85.  
  86.  
  87. forcetree
  88. #Due to the existance of both /Apps/System and /System,
  89. #menu gets confused. So, force /System in it's own section
  90.   System
  91. endforcetree
  92.