Revert "Revert "Quick fixs""
This commit is contained in:
parent
39660bad23
commit
686e4ce81c
4 changed files with 7 additions and 6 deletions
|
|
@ -7,7 +7,7 @@ import qs.Settings
|
|||
|
||||
PanelWithOverlay {
|
||||
id: ioSelector
|
||||
signal closed()
|
||||
signal panelClosed()
|
||||
property int tabIndex: 0
|
||||
property Item anchorItem: null
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ Singleton {
|
|||
Process {
|
||||
id: generateThemeProcess
|
||||
command: ["wallust", "run", currentWallpaper, "-u", "-k", "-d", "Templates"]
|
||||
workingDirectory: Quickshell.configDir
|
||||
workingDirectory: Quickshell.shellDir
|
||||
running: false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue