Revert "Revert "Quick fixs""

This commit is contained in:
Lysec 2025-07-20 12:10:50 +02:00 committed by GitHub
parent 39660bad23
commit 686e4ce81c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 6 deletions

View file

@ -7,7 +7,7 @@ import qs.Settings
PanelWithOverlay {
id: ioSelector
signal closed()
signal panelClosed()
property int tabIndex: 0
property Item anchorItem: null

View file

@ -6,9 +6,10 @@ import qs.Components
Item {
id: batteryWidget
property var battery: UPower.displayDevice
property bool isReady: battery && battery.ready && battery.isLaptopBattery && battery.isPresent
property real percent: isReady ? battery.percentage : 0
property real percent: isReady ? (battery.percentage * 100) : 0
property bool charging: isReady ? battery.state === UPowerDeviceState.Charging : false
property bool show: isReady && percent > 0
@ -24,7 +25,7 @@ Item {
return "battery_alert";
}
visible: show
visible: isReady && battery.isLaptopBattery
width: 22
height: 36
@ -78,4 +79,4 @@ Item {
targetItem: batteryWidget
delay: 200
}
}
}

View file

@ -23,7 +23,7 @@ Singleton {
Process {
id: zigstatProcess
running: true
command: [Quickshell.shellRoot + "/Programs/zigstat", updateInterval]
command: [Quickshell.shellDir + "/Programs/zigstat", updateInterval]
stdout: SplitParser {
onRead: function (line) {
try {

View file

@ -116,7 +116,7 @@ Singleton {
Process {
id: generateThemeProcess
command: ["wallust", "run", currentWallpaper, "-u", "-k", "-d", "Templates"]
workingDirectory: Quickshell.configDir
workingDirectory: Quickshell.shellDir
running: false
}
}