refactor: centralize utility paths in Settings for zigbrightness and zigstat programs
This commit is contained in:
parent
bdfab74e1e
commit
e319d0dfd6
3 changed files with 5 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ Item {
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: getBrightnessProcess
|
id: getBrightnessProcess
|
||||||
command: [Quickshell.shellDir + "/Programs/zigbrightness", "get", monitorName]
|
command: [Settings.settings.zigbrightnessPath, "get", monitorName]
|
||||||
|
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
|
|
@ -47,7 +47,7 @@ Item {
|
||||||
Process {
|
Process {
|
||||||
id: setBrightnessProcess
|
id: setBrightnessProcess
|
||||||
property int targetValue: -1
|
property int targetValue: -1
|
||||||
command: [Quickshell.shellDir + "/Programs/zigbrightness", "set", monitorName, targetValue.toString()]
|
command: [Settings.settings.zigbrightnessPath, "set", monitorName, targetValue.toString()]
|
||||||
|
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ Singleton {
|
||||||
Process {
|
Process {
|
||||||
id: zigstatProcess
|
id: zigstatProcess
|
||||||
running: true
|
running: true
|
||||||
command: [Quickshell.shellDir + "/Programs/zigstat", updateInterval]
|
command: [Settings.settings.zigstatPath, updateInterval]
|
||||||
stdout: SplitParser {
|
stdout: SplitParser {
|
||||||
onRead: function (line) {
|
onRead: function (line) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,8 @@ Singleton {
|
||||||
property real fontSizeMultiplier: 1.0 // Font size multiplier (1.0 = normal, 1.2 = 20% larger, 0.8 = 20% smaller)
|
property real fontSizeMultiplier: 1.0 // Font size multiplier (1.0 = normal, 1.2 = 20% larger, 0.8 = 20% smaller)
|
||||||
property int taskbarIconSize: 24 // Taskbar icon button size in pixels (default: 32, smaller: 24, larger: 40)
|
property int taskbarIconSize: 24 // Taskbar icon button size in pixels (default: 32, smaller: 24, larger: 40)
|
||||||
property var pinnedExecs: [] // Added for AppLauncher pinned apps
|
property var pinnedExecs: [] // Added for AppLauncher pinned apps
|
||||||
|
property string zigbrightnessPath: Quickshell.shellDir + "/Programs/zigbrightness" // Path to zigbrightness utility
|
||||||
|
property string zigstatPath: Quickshell.shellDir + "/Programs/zigstat" // Path to zigstat utility
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue