home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20120305.etc.tar.gz / bradford.20120305.etc.tar / etc / gpm / root.conf next >
Text File  |  2006-04-22  |  2KB  |  86 lines

  1. # sample configuration file for gpm-root
  2. # edit it to please your taste....
  3.  
  4. button 1 {
  5.   name "ttys"
  6.  
  7.   ""        f.nop
  8.   "login on a new tty" f.mktty
  9.   ""        f.nop
  10.   "tty  1"  f.jptty  "1"
  11.   "tty  2"  f.jptty  "2"
  12.   "tty  3"  f.jptty  "3"
  13.   "tty  4"  f.jptty  "4"
  14.   ""         f.nop
  15.   "tty  5"  f.jptty   "5"
  16.   "tty  6"  f.jptty   "6"
  17.   "tty  7"  f.jptty   "7"
  18.   "tty  8"  f.jptty   "8"
  19.   ""        f.nop
  20.   "more of them..." {
  21.     
  22.     "tty  9"  f.jptty  "9"
  23.     "tty 10"  f.jptty  "10"
  24.     "tty 11"  f.jptty  "11"
  25.     "tty 12"  f.jptty  "12"
  26.     ""         f.nop
  27.     "tty 13"  f.jptty   "13"
  28.     "tty 14"  f.jptty   "14"
  29.     "tty 15"  f.jptty   "15"
  30.     "tty 16"  f.jptty   "16"
  31.     ""        f.nop
  32.     "more of them..." {
  33.       "tty 17" f.jptty  "17"
  34.       }
  35.   }
  36.     
  37. }
  38.  
  39. button 2 {
  40.   name "system status"
  41.   foreground red
  42.   background black
  43.   border yellow
  44.   head bright yellow
  45.  
  46.   ""          f.nop
  47.   "%b %d %Y"  f.time
  48.   "%H:%M"     f.time
  49.   ""          f.nop
  50.   "load: "    f.load 
  51.   "free:"     f.free
  52.   "" f.nop
  53.   "report disk usage to ~/du" f.bgcmd  "du ~ | sort -rn > ~/du"
  54.   "print mail headers to tty" f.bgcmd
  55.      "grep '^From ' /var/spool/mail/$USER | tail"
  56. }
  57.  
  58. button 3 {
  59.   name "far ttys"
  60.  
  61.   foreground black
  62.   background red
  63.   border bright yellow
  64.   head bright yellow
  65.  
  66.   "tty  9"  f.jptty   "9"
  67.   "tty 10"  f.jptty  "10"
  68.   "tty 11"  f.jptty  "11"
  69.   "tty 12"  f.jptty "12"
  70.   ""         f.nop
  71.  
  72.   "tty 13" f.jptty "13"
  73.   "tty 14" f.jptty "14"
  74.   "tty 15" f.jptty "15"
  75.   "tty 16" f.jptty "16"
  76.   ""         f.nop
  77.  
  78. # I use this to halt and reboot the system, but it isn't wise to put it
  79. # in widely accessible boxes.
  80. #
  81. #  "----"     f.nop
  82. #  ""         f.nop
  83. #  "halt"   f.bgcmd "/sbin/shutdown -h now"
  84. #  "reboot" f.bgcmd "/sbin/shutdown -r now"
  85. }
  86.