于渊

Stupid is as stupid does.

于渊ID:forrestyu
43645次访问,排名2311好友0人,关注者11
forrestyu的文章
原创 13 篇
翻译 0 篇
转载 1 篇
评论 182 篇
最近评论
xiaoyudian4900:上面写错了,簇号为3的扇区对应的以0为基准的扇区号应该思31+3=34。
xiaoyudian4900:于渊大哥,你好。关于GetFatEntry函数我不太理解。从上下文来看,这个函数的作用应该是寻找序号为ax的sector的下一个簇号,假设Loader占用了3,8,9,10四个簇,则将簇号为3的扇区(根据代码4-9,这时以0为基准的扇区号应该是33+3=36,也就是Loader在数据区的第一个扇区)读入内存,然后pop ax(此时ax=3,不知道对不对?),调用GetFatEntry函数(调……
ggggfjeicfh:我想在操作系统中加入vga的图形界面,用tc的图形函数写的能编译到内核里去吗,怎么弄呢,难道一定要用汇编?
zhoutc1029:刚刚完成Csdn注册,试试发言行不行!
gotohome418:我装了linux,按书上的方法,没有与windows共享成文件夹,哪位大哥指点下。
文章分类
    收藏
      相册
      链接
      vmg转txt的bash脚本
      修改后的N6510驱动(for gnokii)
      借助gnokii获取手机上的短信,并转成自己喜欢的格式
      成批将vmg转成txt的脚本(依赖vmg2txt)
      我的.fvwm2rc
      我的.fvwm2rc用到的图图
      走进程序世界的田园(上)
      存档
      软件项目交易
      订阅我的博客
      XML聚合  FeedSky
      订阅到鲜果
      订阅到Google
      订阅到抓虾
      订阅到BlogLines
      订阅到Yahoo
      订阅到GouGou
      订阅到飞鸽
      订阅到Rojo
      订阅到newsgator
      订阅到netvibes

      原创 FVWM收藏

      国庆期间,把自己的FVWM好好整理了一下,现在我的桌面看上去是这个样子滴(点击可放大):

      Forrest's FVWM

      我的.fvwm2rc可以下载
      我的部分FVWM笔记:

      ***    如何使用托盘

              $ sudo apt-get install trayer
              $ trayer --widthtype pixel --width 128 --height 32 --edge bottom &
      ***    .fvwm2rc
      ****        Function
                  DestroyFunc FuncName
                  AddToFunc   FuncName
                   + I (Action to happen immediately)
                   + C (Action to happen on a mouse 'click)
                   + D (Action to happen on a mouse 'double click')
                   + H (Action to happen on a mouse 'hold')
                   + M (Action to happen on a mouse 'motion')

      ****        Geometry 57x500-5-5
                       宽度x高度 左上角坐标
      ****        键(鼠标)绑定(binding)
                  键:Key   X Context Modifier Action
                  鼠:Mouse X Context Modifier Action
                  Context: where the mouse is currently located (as shown below)
                      +-----------------------------------+
                      |                     +---+   +---+ |
                      | R           R       | I |   | I | |
                      |                     +---+   +---+ |
                      |                                   |
                      |       F      S       S      F     |
                      |       +---------------------+     |
                      |       |13579 T   T   T 08642|     |
                      |       +---------------------+     |
                      |       |                     |     |
                      | R     |  W               W  |    R|
                      |       |                     |     |
                      |      S|                     |S    |
                      |       |                     |     |
                      |       |  W               W  |     |
                      |       |                     |     |
                      |       +---------------------+     |
                      |       F      S       S      F     |
                      |                 R                 |
                      +-----------------------------------+
                      R - the root window
                      I - Icon
                      F - frame corners
                      S - frame sides
                      T - title bar
                      W - application window and 0-9 - buttons
                      Note: A will stand for anywhere (it doesn't matter where the mouse is located)
                  Modifier: 下列取值的组合:(A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing,
                        or 1-5, representing the X Modifiers mod1-mod5 (man xmodmap)
                  e.g.:
                      # Key   X       Context Modifier        Action
                      Key     Tab     A       M               WindowList Root c c NoDeskSort, SelectOnRelease Meta_L
                      Key     Super_L A       A               Exec exec xterm -fn -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
                      #   for the root window:
                      Mouse   1       R       A               Menu RootMenu Nop
                      Mouse   2       R       A               Menu Window-Ops Nop
                      Mouse   3       R       A               WindowList
                      #   for the title bar buttons:
                      Mouse   0       1       A               Menu Window-Ops2 Close
                      Mouse   0       2       A               Close
                      Mouse   0       3       A               Maximize-Func
                      Mouse   0       4       A               Iconify
                      #   for other parts of the window/borders/icons:
                      Mouse   1       F       A               Resize-or-Raise
                      Mouse   1       TS      A               Move-or-Raise
                      Mouse   1       W       M               Move-or-Raise
                      Mouse   1       I       A               Move-or-Iconify
                      Mouse   2       I       A               Iconify
                      Mouse   2       FST     A               Menu Window-Ops2 Nop
                      Mouse   3       TSIF    A               RaiseLower

      ****        Window Decor
                  TitleStyle
                      TitleStyle LeftJustified Height 18
                  ButtonStyle
                      Vectors are just simple line drawings.
                      Each vector is set up on a 100x100 grid and can have any number of points all connected by lines.
                      The syntax is 'Vector [number of points] [[point1] [point2] ...]'.
                      points: 'XxY@Z'
                          Z: 0 - Shadow(sh)
                             1 - Hilight(hi)
                             2 - Background(bg)
                             3 - Foreground(fg)
                             4 - Invisible.
                      e.g.
                          ButtonStyle 1 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
      ****        Module
                  所有的Fvwm的模块,只有在函数中启动了它们,它们才能够工作
                  在.fvwm2rc文件中,如果您需要用到FvwmButtons,或者其它的模块,必需要先启动它。具体如下:
                      DestroyFunc StartFunction
                      AddToFunc StartFunction
                      + I Module FvwmButtons
                      + I Module FvwmPager
                      + I Module FvwmAuto 500 Raise Nop
                      + I Module FvwmAnimate
                      + I Module FvwmTaskBar
                      + I Module FvwmWharf
                      + I Exec exec xpmroot /root/pic/macblack.png
                  I 表示:立即执行
                  上面的配置中,分别在启动函数中,启动了FvwmButtons,FvwmPager,FvwmAnimate,FvwmTaskBar 和FvwmWharf等
                  你有什么程序需要在fvwm启动的时候执行,你可以在其中加入一行:比如我想在fvwm启动的时候启动 gkrellm
                      + I Exec exec gkrellm  就ok了:)
      ****        FvwmTaskBar
                  如果把它设成没有边框(!Borders)的话,屏幕右边总是空着一块,甚是不爽,
                  于是我想了个办法,就是把边框设成4,并让颜色跟FvwmTaskBar的颜色一致:
                  Colorset 11 fg rgb:00/60/60, hi rgb:00/60/60, sh rgb:00/60/60, bg rgb:00/60/60
                  Style "FvwmTaskBar" NoTitle, BorderWidth 4, HandleWidth 4, Sticky,\
                          StaysOnTop, WindowListSkip, CirculateSkip, BorderColorset 11, HilightBorderColorset 11
                  *FvwmTaskBar: Back rgb:00/60/60
                  这样TaskBar就能充满屏幕的左右两边了。
      ****        FvwmPager
                  将窗口移动到别的工作区,可以在pager里面用中键拖动窗口,拖到别的desktop里面就好了。
      ****        FvwmButtons
                  做一个抽屉的方法:
                      *MyButtons: (1x1+0+6, Frame 0, Panel(left, indicator, delay 0, steps 1) QuickLaunchButtons "Module FvwmButtons QuickLaunchButtons")
                      DestroyModuleConfig QuickLaunchButtons: *
                      *QuickLaunchButtons: Geometry 128x64
                      *QuickLaunchButtons: ...
                      *QuickLaunchButtons: ...
                  包含其它组件的方法:
                      *MyButtons: (1x4+0+11, Swallow(UseOld) asmon `Exec exec asmon`)
                      *PagerPanel: (Swallow FvwmPager "Module FvwmPager 0 3")
      ****        docks
                  用 apt-cache search wm dock 可以查到很多 dock app,很酷。 :)
                  favorites
                      xclock
                      asclock
                      wmweather -m
                      asmon
                      cputnik
                         from http://www.dockapps.org/
                      wmmoonclock
                      wmnd

      一些有用的链接:
      FVWM Beginners Guide
      Wangyin's FVWM简明使用指南
      dockapps.org

      发表于 @ 2006年10月08日 14:06:00|评论(loading...)|编辑

      旧一篇: 《自己动手写操作系统》2006金秋读书季

      评论

      #axjlq 发表于2007-02-05 12:53:49  IP: 218.4.189.*
      你好,请问你的配置能够让中文和英文用不同的字体吗?你的locale用的是什么?
      发表评论  


      当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
      Csdn Blog version 3.1a
      Copyright © Forrest