added battery thing but it doesnt work
This commit is contained in:
@@ -15,6 +15,12 @@ Row {
|
||||
|
||||
required property HyprlandMonitor monitor
|
||||
|
||||
spacing: 10
|
||||
|
||||
Battery {
|
||||
exclusiveMonitor: root.monitor
|
||||
}
|
||||
|
||||
Bluetooth {
|
||||
exclusiveMonitor: root.monitor
|
||||
}
|
||||
|
||||
28
Bar/Right/Battery.qml
Normal file
28
Bar/Right/Battery.qml
Normal file
@@ -0,0 +1,28 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Services.UPower
|
||||
import "../../Color.js" as Colors
|
||||
import "../../Components/"
|
||||
import "../../Services/"
|
||||
import "Bluetooth"
|
||||
|
||||
Container {
|
||||
id: root
|
||||
|
||||
animOffset: 160
|
||||
boxColor: Colors.green
|
||||
boxHeight: 25
|
||||
boxWidth: 40
|
||||
defaultItem: icon
|
||||
exclusiveToScreen: true
|
||||
forceHidden: BatteryManager.battery.isLaptopBattery
|
||||
|
||||
Component {
|
||||
id: icon
|
||||
|
||||
CenteredText {
|
||||
text: BatteryManager.batteryPercentage
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user