test new systray #50

Merged
zach merged 6 commits from new-systray into main 2026-04-09 19:26:57 +02:00
4 changed files with 19 additions and 7 deletions
Showing only changes of commit eceb453036 - Show all commits
+1 -1
View File
@@ -270,6 +270,7 @@ Singleton {
function serializeServices(): var {
return {
weatherLocation: services.weatherLocation,
updates: services.updates,
useFahrenheit: services.useFahrenheit,
ddcutilService: services.ddcutilService,
useTwelveHourClock: services.useTwelveHourClock,
@@ -322,7 +323,6 @@ Singleton {
ElapsedTimer {
id: timer
}
Timer {
+1
View File
@@ -14,6 +14,7 @@ JsonObject {
"to": "YT Music"
}
]
property bool updates: true
property bool useFahrenheit: false
property bool useTwelveHourClock: Qt.locale().timeFormat(Locale.ShortFormat).toLowerCase().includes("a")
property int visualizerBars: 30
+4 -2
View File
@@ -5,6 +5,7 @@ import QtQuick
import Quickshell
import Quickshell.Io
import qs.Paths
import qs.Config
Singleton {
id: root
@@ -44,13 +45,14 @@ Singleton {
Timer {
interval: 1
repeat: true
running: true
running: Config.services.updates
onTriggered: {
if (!root.loaded || !root.commandReady)
return;
updatesProc.running = true;
if (Config.services.updates)
updatesProc.running = true;
interval = 5000;
}
}
+13 -4
View File
@@ -18,6 +18,15 @@ SettingsPage {
Separator {
}
SettingSwitch {
name: "Check for updates"
object: Config.services
setting: "updates"
}
Separator {
}
SettingSwitch {
name: "Use Fahrenheit"
object: Config.services
@@ -60,9 +69,9 @@ SettingsPage {
}
SettingSpinBox {
name: "Audio increment"
max: 1
min: 0
name: "Audio increment"
object: Config.services
setting: "audioIncrement"
step: 0.05
@@ -72,9 +81,9 @@ SettingsPage {
}
SettingSpinBox {
name: "Brightness increment"
max: 1
min: 0
name: "Brightness increment"
object: Config.services
setting: "brightnessIncrement"
step: 0.05
@@ -84,9 +93,9 @@ SettingsPage {
}
SettingSpinBox {
name: "Max volume"
max: 5
min: 0
name: "Max volume"
object: Config.services
setting: "maxVolume"
step: 0.05
@@ -105,8 +114,8 @@ SettingsPage {
}
SettingSpinBox {
name: "Visualizer bars"
min: 1
name: "Visualizer bars"
object: Config.services
setting: "visualizerBars"
step: 1