+ -
当前位置:首页 → 问答吧 → 如何使用idesk来配合blackbox&fluxbox

如何使用idesk来配合blackbox&fluxbox

时间:2003-08-27

来源:互联网

上网看了idesk的一些介绍,可惜全是英文,看不懂。
谁能贴一个配置文件来看看,最好能解释一下。

我想实现的效果如下图:
http://idesk.timmfin.net/screens.html

作者: losska   发布时间: 2003-08-27

Idesk configuration
Ideskrc file
To use Idesk, you must first setup your config file. Put something like this into into .ideskrc in your home directory:
# 要使用Idesk,你必需先设置config文件,将以下内容写入 .ideskrc 文件并放在home目录下

table Config
FontName: tahoma
FontSize: 8
FontColor: #ffffff
Locked: false
Transparency: 150
Shadow: true
ShadowColor: #000000
ShadowX: 1
ShadowY: 2
Bold: false
ClickDelay: 300
IconSnap: true
SnapWidth: 55
SnapHeight: 100
SnapOrigin: BottomRight
SnapShadow: true
SnapShadowTrans: 200
CaptionOnHover: false
end

table Actions
Lock: control right doubleClk
Reload: middle doubleClk
Drag: left hold
EndDrag: left singleClk
Execute[0]: left doubleClk
Execute[1]: right doubleClk
end


"Locked" is boolean (true/false). Setting it to true disables the dragging movement.
# 锁定在桌面上的位置

"Transparency" is between 0 (no glow effect) and 255 (invisible without a mouseover).
# “0”没有影响,“255”只有当mouse经过才看见图标

"HighContrast" will draw a border around the text in the opposite colour if it is true. It will draw it in an arbitary colour if it "#aa00aa", for example. And it will not draw anything at all if it is set to "false".

"Shadow" is boolean (true/false). Turning this on will draw a drop shadow of color ShadowColor behind the text. The shadow will be ShadowX pixels right and ShadowY pixels down (negative values will work). Both ShadowX and ShadowY default to 1.

"Bold" is a boolean (true/false). Setting it to true will make your font bold.
# 粗体字

"Click Delay" is the number of milliseconds that represents a double-click.
# mouse双击的时间间隔

"SingleClick" is a boolean (true/false). Setting it to true makes a single-click execute the command associated with the icon. This also means that it is impossible to drag the icon either.
# “true”使用单击运行命令,同时取消拖动

"IconSnap" is a boolean (true/false). Setting it to true makes the icons snap to a grid defined by "SnapWidth" and "SnapHeight". The icon will snap to the middle of the rectangle defined by "SnapWidth" and "SnapHeight". So if "SnapWidth" = "SnapHeight" = 100, the center of the icon will by in multiples of 50: (50,50), or (50, 100), or (100, 100), or (250, 350)... You will want to make "SnapWidth" and "SnapHeight" greater than or equal to the size of the picture.

"SnapWidth" is a positive integer, see description in "IconSnap".

"SnapHeight" is a positive integer, see description in "IconSnap".

"SnapOrigin" defines where the snap grip starts from. Valid values are:

TopLeft, TopRight, BottomLeft, BottomRight.
"SnapShadow" is a boolean (true/false) value. Setting it to true will make a shadow of the icon appear where the icon will snap if the drag was released there. Turn "IconSnap" on and check this out, pretty cool effect.

"SnapShadowTrans" is a integer between 0 (opaque) and 255 (invisible). It represents the transparency of the SnapShadow

"CaptionOnHover" is a boolean (true/false) value. Setting it to true will make the icon's caption only appear when the mouse hovers over an icon. False is the default behavior.

Further Snapping Description
. . .
. . .
|__________|__________|_______ . . .
| | |
| | |
y | | |
| | |
| | |
[> |__________|__________|________ . . .
| x
|
|

This is the bottom left of the desktop (SnapOrigin: BottomLeft)

X represents the snap width Y represents the snap height Snap origin only describes which corner of the screen

So basically set snap width to the width of the "box" you want the icon contained in and set snap height to the height of the "box" you want the icon contained in.

The icon will snap to the middle of that box specified by snap width and snap height. You will typically want the width and heihgt to be a bit larger than the width and height of the icons (make the height bigger if you use a caption).

Aciton Configuration
In the Action table 5 different actions can be configured.

Lock:
Disables icon dragging to prevent accidental movement.
Reload:
Reloads all of the config options and gets a new background.
Drag:
Puts the icon in drag mode. Icon follows cursor.
EndDrag:
End the drag mode, icon will be positioned at the cursor.
Exectue[i]:
Executes the ith icon command. So the Execute[0] action is the default action and run Command[0] (in the icon config file), Execute[1] runs Command[1] and so forth.
The options for each command are as follows:

<shift> <control> <alt> [Button] [ClickType]
[Button] = left, middle, and/or right
[ClickType] = singleClk, doubleClk, tripleClk, or hold
Some examples:
The default settings, should be self explanitory.

Lock: right doubleClk
Reload: middle doubleClk
Drag: left hold
EndDrag: left singleClk
Execute[0]: left doubleClk

Note: Drag starts when left button is pressed
and Drag ends when left button is released.
Left single click while holding shift on the keyboard Execute[0]: shift left singleClk Left double click while holding down the right mouse button. Execute[0]: left doubleClk right hold And for those with too many fingers, middle double click while holding down the left and right mouse buttons, and control, alt, and shift on the keyboard. Execute[0]: control shift alt left hold middle doubleClk right hold
Notes:
For the Drag action I reccomend only doing button holds and for the EndDrag I recommend using single clicks. This way the icon begins dragging as soon as you press the button and stops dragging as soon as you release the button. Using other actions should work as expected, but there are a few small bugs.

If two actions have the same key/button combinations they both will occur, unless one is the reload action. The reload action always only happens by itself.

Idesktop Directory
To add an icon, you need to first create a .idesktop directory in your home dir and inside that directory, create a file, for example, home.lnk and inside the file put something like this:
# 增加一个图标,你需要在home目录创建“.idesktop”目录,然后在“.idesktop”中创建文件如下例所示

table Icon
Caption: Home # 图标下的名称
Icon: /home/you/.idesktop/home.png # 图标位置
Command[0]: nautilus /home/you # 运行的命令
Command[1]: nautilus /home/you/otherDir
end
These are the options for icon file, they should mostly be self-explantory. The Icon option is the graphic file for the icon image (either a png file or a svg file). The Execute[i] action (in .ideskrc) runs the Command[i]. If the Caption field is blank or just one space, then no caption will be created for the icon.
# 图标可以是png或svg图形文件,Caption可以没有,Command是可执行的命令

table Icon
Caption: Tux
Command: echo 'Linux rocks!'
Icon: /home/you/icons/tux2.svg
SVG: true
Width: 600
Height: 700
X: 680
Y: 174
end
Important for SVG! #对svg重要
If you use a svg icon need to set Width and Height to your desired pixel size. Just make sure that the X value plus the width doesn't exceed your window diemensions, you get a segfault (same for Y value and height). It is best to set X and Y to zero to prevent this.
# 如果你使用svg文件,你必需设定你需要的Width和Height,确认X的值加上width不超过window窗口的尺寸,最好将X和Y设为0以避免发生问题

作者: allen1970   发布时间: 2003-08-27

http://idesk.timmfin.net/screens.html里面的windows manager是哪些啊?好像都很不错的样子。

作者: fredricktoy   发布时间: 2003-08-28

基本上是flusbox和waimea(已经停止开发了,新的叫kahakai,不过好像还没进sid,主页上有dabian包;Gentoo有ebuild)

作者: allen1970   发布时间: 2003-08-28