Implement power icon

This commit is contained in:
Jeremy Soller 2024-01-17 12:37:22 -07:00
parent 41cc4d1db7
commit 195525d450
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
6 changed files with 113 additions and 18 deletions

View file

@ -16,6 +16,8 @@ wayland-client = "0.31.1"
cosmic-dbus-networkmanager = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
# For logind integration using logind feature
logind-zbus = { version = "3.1.2", optional = true }
# For power status with upower feature
upower_dbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
# Required for some features
zbus = { version = "3.14.1", optional = true }
@ -39,6 +41,7 @@ version = "1.33.0"
features = ["full"]
[features]
default = ["logind", "networkmanager"]
default = ["logind", "networkmanager", "upower"]
logind = ["logind-zbus", "zbus"]
networkmanager = ["cosmic-dbus-networkmanager", "zbus"]
upower = ["upower_dbus", "zbus"]