File: dock.lua

package info (click to toggle)
ion2 20040729-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,828 kB
  • ctags: 3,466
  • sloc: ansic: 28,432; makefile: 473; sh: 230; perl: 16
file content (47 lines) | stat: -rw-r--r-- 1,306 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--
-- Ion-devel dock module configuration
--

dock = create_dock(0, {    -- create a new dock on screen 0
    name="dock",    -- name for use in target="..." winprops
    hpos="right",    -- horizontal position left|center|right
    vpos="bottom",    -- vertical position top|middle|bottom
    grow="left",    -- growth direction up|down|left|right
    is_auto=true})    -- whether new dockapps should be added automatically

global_bindings{
    kpress(DEFAULT_MOD.."space",
        function()
            WDock.toggle(dock)    -- toggle map/unmapped state
        end),
}

-- dockapp ordering

-- Use the dockposition winprop to enforce an ordering on dockapps. The value is
-- arbitrary and relative to other dockapps only. The default is 0.
-- Unfortunately, many dockapps do not set their class/instance/role so they
-- cannot be used with the winprop system.

-- dockapp borders

-- Use dockappborder=false to disable the drawing of a border around a dockapp.
-- This is only effective if outline_style="each" (see dock-draw.lua).

winprop{
    instance="gkrellm2",
    dockposition=-100,    -- place first
    dockborder=false,    -- do not draw border if outline_style="each"
}

-- kludges

winprop{
    instance="wmxmms",
    target="dock",
}

winprop{
    instance="wmdate",
    target="dock",
}