Merge pull request #35 from Ly-sec/revert-34-revert-33-main

Revert "Revert "Quick fixs""
This commit is contained in:
Lysec 2025-07-20 12:11:39 +02:00 committed by GitHub
commit 0979b2661e
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 { PanelWithOverlay {
id: ioSelector id: ioSelector
signal closed() signal panelClosed()
property int tabIndex: 0 property int tabIndex: 0
property Item anchorItem: null property Item anchorItem: null

View file

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

View file

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

View file

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