Merge pull request #35 from Ly-sec/revert-34-revert-33-main
Revert "Revert "Quick fixs""
This commit is contained in:
commit
0979b2661e
4 changed files with 7 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue