Implement suspend with logind

This commit is contained in:
Jeremy Soller 2023-11-29 08:02:14 -07:00
parent 5d0999df83
commit 13e3dcd911
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
5 changed files with 58 additions and 1 deletions

View file

@ -8,10 +8,12 @@ chrono = "0.4.31"
env_logger = "0.10.0"
freedesktop_entry_parser = "1.3.0"
log = "0.4.20"
logind-zbus = { version = "3.1.2", optional = true }
pam-client = "0.5.0"
pwd = "1.4.0"
shlex = "1.2.0"
wayland-client = "0.31.1"
zbus = { version = "3.14.1", optional = true }
[dependencies.cosmic-bg-config]
git = "https://github.com/pop-os/cosmic-bg"
@ -31,3 +33,7 @@ features = ["tokio", "wayland"]
[dependencies.tokio]
version = "1.33.0"
features = ["full"]
[features]
default = ["logind"]
logind = ["logind-zbus", "zbus"]