blob: f860d74948f8c504d484963e9fa66cffa328f58a (
plain)
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
|
import "./items"
import Quickshell
import Quickshell.Wayland
import Quickshell.Hyprland
import Quickshell.Io
import QtQuick
import QtQuick.Layouts
ShellRoot {
id: shellRoot
property int redBatteryPoint: 15
property int orangeBatteryPoint: 30
property color black: "#000000"
property color gray: "#202020"
property color lightgray: "#404040"
property color white: "#ffffff"
property color green: "#28CD41"
property color red: "#FF4040"
property color orange: "#FFA500"
property color purple: "#BF00FF"
property color blue: "#00FFFF"
property string fontFamily: "JetBrainsMono Nerd Font"
property int fontSize: 18
property bool appLauncherVisible: false
property bool calendarVisible: false
GlobalShortcut {
id: launcherShortcut
name: "toggleLauncher"
onPressed: {
appLauncherVisible = true
}
}
GlobalShortcut {
id: calendarShortcut
name: "toggleCalendar"
onPressed: {
calendarVisible = true
}
}
Variants {
model: Quickshell.screens
PanelWindow {
id: root
property int cpuUsage: 0
property int lastCpuTotal: 0
property int lastCpuIdle: 0
property int memUsage: 0
property int cpu_temperature: 6000
property int brightness: 100
property int temperature: 6000
property int volume: 12
property int battery: 12
property bool batteryCharging: false
property string wifiName: "Offline"
Procs {}
Process {
id: networkManagerProc
command: ["foot", "-e", "nmtui"]
Component.onCompleted: running = false
}
anchors.top: true
anchors.left: true
anchors.right: true
implicitHeight: 32
color: shellRoot.black
RowLayout {
anchors.fill: parent
anchors.margins: 0
anchors.leftMargin: 10
anchors.rightMargin: 10
Workspace {}
Item { Layout.fillWidth: true }
Radio {}
Electrons {}
Waves {}
Photons {}
Radiation {}
DataBus {}
Latch {}
Spin {}
}
PanelWindow {
id: apps
anchors.top: true
anchors.right: true
anchors.bottom: true
implicitWidth: 32
color: shellRoot.black
ColumnLayout {
Item {}
IconButton {
icon: ""
tooltip: "Zen"
onClicked: Quickshell.execDetached(["zen"])
}
IconButton {
icon: ""
tooltip: "Dolphin"
onClicked: Quickshell.execDetached(["dolphin"])
}
IconButton {
icon: ""
tooltip: "Vscode"
onClicked: Quickshell.execDetached(["code"])
}
IconButton {
icon: ""
tooltip: "Localsend"
onClicked: Quickshell.execDetached(["localsend_app"])
}
IconButton {
icon: ""
tooltip: "Bitwarden"
onClicked: Quickshell.execDetached(["bitwarden"])
}
IconButton {
icon: ""
tooltip: "GIMP"
onClicked: Quickshell.execDetached(["gimp"])
}
IconButton {
icon: ""
tooltip: "Obsidian"
onClicked: Quickshell.execDetached(["obsidian"])
}
IconButton {
icon: ""
tooltip: "Discord"
onClicked: Quickshell.execDetached(["discord"])
}
IconButton {
icon: ""
tooltip: "VLC"
onClicked: Quickshell.execDetached(["vlc"])
}
}
}
}
}
Variants {
model: Quickshell.screens
PanelWindow {
visible: shellRoot.appLauncherVisible
anchors {
top: true
left: true
}
margins {
top: Screen.height/2 - 300
left: Screen.width/2 - 200
}
implicitWidth: 400
implicitHeight: 600
color: "transparent"
exclusiveZone: 0
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
Behavior on height {
NumberAnimation { duration: 200; easing.type: Easing.OutCubic }
}
AppLauncher {
anchors.fill: parent
isVisible: shellRoot.appLauncherVisible
onRequestClose: {
shellRoot.appLauncherVisible = false
}
}
}
}
Variants {
model: Quickshell.screens
PanelWindow {
visible: shellRoot.calendarVisible
anchors {
top: true
left: true
}
margins {
top: 5
left: Screen.width - 435 - 40
}
implicitWidth: 435
implicitHeight: 370
color: "transparent"
exclusiveZone: 0
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
Behavior on height {
NumberAnimation { duration: 200; easing.type: Easing.OutCubic }
}
Calendar {
anchors.fill: parent
isVisible: shellRoot.calendarVisible
onRequestClose: {
shellRoot.calendarVisible = false
}
}
}
}
}
|