-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtagwibarEcran2.lua
102 lines (101 loc) · 2.7 KB
/
tagwibarEcran2.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
94
95
96
97
98
99
100
101
102
-------------------------------------------------
-- author: David Cobac
-- twitter: @david_cobac
-- github: https://github.com/cobacdavid
-- date: 2022
-- copyright: CC-BY-NC-SA
-------------------------------------------------
-- most parts from awesome wm
-- distribution
-- copyright ??
-------------------------------------------------
--
-- {{{ Wiboxes
-- Configuration de l'écran 2
s = screen[2]
--
-- ÉCRAN 2
--
awful.tag.add("Auxiliaire",
{
layout = awful.layout.suit.tile.top,
screen = s,
selected = true,
gap = 5
}
)
clo = wibox.widget {
align = "center",
format = "%A %d %B %Y %H:%M",
widget = wibox.widget.textclock
}
s.mywibar = awful.wibar {
screen = s ,
bg = beautiful.bg_normal,
widget = clo,
position = "top",
ontop = true,
type = "dock",
opacity = .75
}
--
s.mywibar:buttons(gears.table.join(
awful.button({}, 1,
function()
calendrier.calendrier {
width = 1100,
height = 900
}
end
)
))
--
s.versDroite = wibox {
-- écran n°2 vertical
x = largeurSecond - 1,
y = 0,
height = hauteurSecond - hauteurPremier,
screen = s ,
width = 1,
bg = couleurTheme,
opacity = 0,
ontop = true,
visible = true
}
s.versDroite:connect_signal("mouse::enter",
function(w)
mouse.coords {
x = 1,
y = mouse.coords().y
}
end
)
s.versGauche = wibox {
x = 0,
y = 0,
screen = s ,
width = 1,
height = hauteurSecond,
bg = couleurTheme,
opacity = 0,
ontop = true,
visible = true
}
s.versGauche:connect_signal("mouse::enter",
function(w)
if mouse.coords().y < hauteurSecond - hauteurPremier then
mouse.coords {
x = largeurSecond - 2,
y = mouse.coords().y
}
else
mouse.coords {
x = largeurPremier + largeurSecond - 2,
y = mouse.coords().y
}
end
end
)
--
--
dofile(config .. "/widgets/horlogeFormes/horlogeFormes.lua")