Krolyxon
Commit 45dccf9

Branches

Refs →

aurora45dccf9

aurora: move updates to bottom of sys tab

Author
krolyxon
Date
2026-10-27 09:51 +0530
Parent
22933f7
Commit
45dccf9fbb3c548d0e6a568ee136553abcff3392

+44 −44

1 file changed

  1. M .config/quickshell/aurora/SysPage.qml +44 −44
M .config/quickshell/aurora/SysPage.qml View
@@ -87,50 +87,6 @@ Flickable {
8787 }
8888 }
8989
90− // pending pacman + AUR updates (Updates)
91− SectionLabel { text: "updates"; Layout.topMargin: 6; visible: Updates.available }
92− RowLayout {
93− visible: Updates.available
94− Layout.fillWidth: true
95− spacing: 6
96− Text {
97− Layout.fillWidth: true
98− text: Updates.checking ? "checking..."
99− : Updates.error !== "" ? Updates.error
100− : (Updates.count === 0 ? "up to date" : Updates.repo + " repo, " + Updates.aur + " aur")
101− + (Updates.lastCheck.getTime() > 0 ? " · " + Qt.formatDateTime(Updates.lastCheck, "HH:mm") : "")
102− color: Updates.error !== "" ? Theme.err : Theme.fg
103− font.family: Theme.font
104− font.pixelSize: Theme.fontSize
105− elide: Text.ElideRight
106− }
107− IconBtn { icon: Theme.iRefresh; label: "check"; onClicked: Updates.check(true) }
108− IconBtn {
109− visible: Updates.count > 0
110− icon: Theme.iUpdate
111− label: Updates.upgrading ? "running" : "upgrade"
112− active: Updates.upgrading
113− onClicked: Updates.upgrade()
114− }
115− }
116− Repeater {
117− model: Updates.available ? Updates.list.slice(0, 6) : []
118− delegate: ListRow {
119− required property var modelData
120− icon: Theme.iUpdate
121− title: modelData.name
122− subtitle: modelData.from + " → " + modelData.to
123− trailing: modelData.aur ? "aur" : ""
124− }
125− }
126− Text {
127− visible: Updates.available && Updates.list.length > 6
128− text: "+ " + (Updates.list.length - 6) + " more"
129− color: Theme.dim
130− font.family: Theme.font
131− font.pixelSize: Theme.fontSize - 2
132− }
133−
13490 BatteryInfo { Layout.topMargin: 6 }
13591
13692 ColumnLayout {
@@ -177,6 +133,50 @@ Flickable {
177133
178134 GpuSwitch { Layout.topMargin: 6 }
179135
136+ // pending pacman + AUR updates (Updates)
137+ SectionLabel { text: "updates"; Layout.topMargin: 6; visible: Updates.available }
138+ RowLayout {
139+ visible: Updates.available
140+ Layout.fillWidth: true
141+ spacing: 6
142+ Text {
143+ Layout.fillWidth: true
144+ text: Updates.checking ? "checking..."
145+ : Updates.error !== "" ? Updates.error
146+ : (Updates.count === 0 ? "up to date" : Updates.repo + " repo, " + Updates.aur + " aur")
147+ + (Updates.lastCheck.getTime() > 0 ? " · " + Qt.formatDateTime(Updates.lastCheck, "HH:mm") : "")
148+ color: Updates.error !== "" ? Theme.err : Theme.fg
149+ font.family: Theme.font
150+ font.pixelSize: Theme.fontSize
151+ elide: Text.ElideRight
152+ }
153+ IconBtn { icon: Theme.iRefresh; label: "check"; onClicked: Updates.check(true) }
154+ IconBtn {
155+ visible: Updates.count > 0
156+ icon: Theme.iUpdate
157+ label: Updates.upgrading ? "running" : "upgrade"
158+ active: Updates.upgrading
159+ onClicked: Updates.upgrade()
160+ }
161+ }
162+ Repeater {
163+ model: Updates.available ? Updates.list.slice(0, 6) : []
164+ delegate: ListRow {
165+ required property var modelData
166+ icon: Theme.iUpdate
167+ title: modelData.name
168+ subtitle: modelData.from + " → " + modelData.to
169+ trailing: modelData.aur ? "aur" : ""
170+ }
171+ }
172+ Text {
173+ visible: Updates.available && Updates.list.length > 6
174+ text: "+ " + (Updates.list.length - 6) + " more"
175+ color: Theme.dim
176+ font.family: Theme.font
177+ font.pixelSize: Theme.fontSize - 2
178+ }
179+
180180 Text {
181181 Layout.topMargin: 10
182182 Layout.alignment: Qt.AlignRight