-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtagwibarEcran3.lua
93 lines (90 loc) · 2.44 KB
/
tagwibarEcran3.lua
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
s = screen[3]
gears.wallpaper.set(gears.color(beautiful.bg_normal))
--
largeurTroism = s.geometry.width
hauteurTroism = s.geometry.height
--
awful.tag.add("Auxiliaire",
{
layout = awful.layout.suit.floating,
screen = s,
selected = true
}
)
--
s.droiteLaptop = wibox({
x = largeurPremier + largeurSecond + largeurTroism - 1,
y = hauteurPremier - hauteurSecond,
width = 1,
height = hauteurTroism,
screen = s,
bg = beautiful.bg_normal, -- "#ffff00"
opacity = 0,
visible = true,
ontop = true
})
--
s.anaC = wibox({
x = largeurPremier + largeurSecond,
y = hauteurPremier - hauteurSecond,
width = largeurTroism - 1,
height = largeurTroism - 1,
visible = true,
screen = s ,
bg = beautiful.bg_normal, --"#ff0000"
opacity = 1
})
local layout = wibox.layout.fixed.vertical()
--
local anaC = semi_analog_clock({
font = "Northwood High",
inner_radius = 80,
--angle_offset = 10,
sectors = 59,
--color_type = "solid"
})
-- layout:add(anaC)
local aaC = almost_analog_clock({delay = 1})
layout:add(aaC)
s.anaC:set_widget(layout)
--
-- --
-- local clock = bigC({
-- font = "Northwood High",--"HP15C Simulator Font",
-- size = 45,
-- border_width = 2,
-- height = 80,
-- -- width = largeurTroism - 1
-- })
-- -- inhibit default behaviour
-- clock:buttons(gears.table.join(
-- awful.button({ }, 1, function()
-- end)
-- ))
-- layout:add(clock)
--
--
s.cal = wibox({
x = largeurPremier + largeurSecond,
y = hauteurPremier - hauteurSecond + largeurTroism - 1,
width = largeurTroism - 1,
height = largeurTroism - 1,
visible = true,
screen = s ,
bg = beautiful.bg_normal, --"#ff0000"
opacity = 1
})
local layout = wibox.layout.fixed.vertical()
local cal = calendrierMois.cal({font_size = 8})
layout:add(cal)
--
s.cal:set_widget(layout)
--
s.droiteLaptop:connect_signal("mouse::enter",
function(w)
mouse.coords({
x = 2,
y = mouse.coords().y
})
end
)