mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Revert "Revert "Quick fixs""
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user