-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.qml
More file actions
216 lines (166 loc) · 5.12 KB
/
Copy pathshell.qml
File metadata and controls
216 lines (166 loc) · 5.12 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
// Nebula Shell — Entry Point
import Quickshell
import Quickshell.Hyprland
import Quickshell.Wayland
import qs.modules
import "./components"
ShellRoot {
id: root
// Matugen color loader - overrides theme colors when wallpaper changes
Matugen {
id: matugen
}
// Bar - one instance per screen
Variants {
model: Quickshell.screens
PanelWindow {
id: bar
property var modelData
screen: modelData
anchors { top: true; left: true; right: true }
exclusiveZone: 30
WlrLayershell.namespace: "nebula:bar"
WlrLayershell.layer: WlrLayer.Top
WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
color: "transparent"
Bar {
anchors.fill: parent
screen: bar.screen
}
}
}
// Dock - one instance per screen (bottom)
Variants {
model: Quickshell.screens
PanelWindow {
id: dock
property var modelData
screen: modelData
anchors { bottom: true }
exclusiveZone: 72
WlrLayershell.namespace: "nebula:dock"
WlrLayershell.layer: WlrLayer.Bottom
WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
color: "transparent"
Dock {
anchors.centerIn: parent
anchors.bottomMargin: 8
screen: dock.screen
}
}
}
// Notifications - one instance per screen (top right)
Variants {
model: Quickshell.screens
PanelWindow {
id: notifPanel
property var modelData
screen: modelData
anchors { top: true; right: true }
margins { top: 48; right: 12 }
implicitWidth: 350
implicitHeight: 400
color: "transparent"
Notifications {
anchors.fill: parent
screen: notifPanel.screen
}
}
}
// OSD - one instance per screen (right side)
Variants {
model: Quickshell.screens
PanelWindow {
id: osdPanel
property var modelData
screen: modelData
anchors { right: true; top: true; bottom: true }
margins { right: 12; top: 200; bottom: 200 }
implicitWidth: 250
implicitHeight: 60
color: "transparent"
OSD {
anchors.fill: parent
screen: osdPanel.screen
}
}
}
// Launcher - floating window (global, single instance)
Launcher {
id: launcherWindow
}
// Sidebar - control center (right side)
Variants {
model: Quickshell.screens
PanelWindow {
id: sidebarPanel
property var modelData
screen: modelData
anchors { top: true; right: true; bottom: true }
margins { top: 48; right: 12; bottom: 12 }
implicitWidth: 320
color: "transparent"
Sidebar {
anchors.fill: parent
screen: sidebarPanel.screen
}
}
}
// Workspace Overview - centered overlay
Variants {
model: Quickshell.screens
PanelWindow {
id: overviewPanel
property var modelData
screen: modelData
visible: GlobalStates.overviewOpen
anchors { top: true; left: true; right: true; bottom: true }
margins { top: 100; left: 100; right: 100; bottom: 100 }
implicitWidth: 700
implicitHeight: 400
color: "transparent"
WorkspaceOverview {
anchors.fill: parent
screen: overviewPanel.screen
}
}
}
// Lock Screen - full screen overlay
Variants {
model: Quickshell.screens
PanelWindow {
id: lockScreenPanel
property var modelData
screen: modelData
visible: GlobalStates.lockScreenOpen
anchors { top: true; left: true; right: true; bottom: true }
color: "transparent"
WlrLayershell.namespace: "nebula:lockscreen"
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
LockScreen {
anchors.fill: parent
screen: lockScreenPanel.screen
}
}
}
// Screenshot tool - centered overlay
Variants {
model: Quickshell.screens
PanelWindow {
id: screenshotPanel
property var modelData
screen: modelData
visible: GlobalStates.screenshotOpen
anchors { top: true; left: true; right: true; bottom: true }
margins { top: 200; left: 200; right: 200; bottom: 200 }
implicitWidth: 400
implicitHeight: 200
color: "transparent"
Screenshot {
anchors.fill: parent
screen: screenshotPanel.screen
}
}
}
}