Skip to content

Commit

Permalink
feat: Add powerstat and a just command to use it (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo authored May 1, 2024
1 parent 31b7b81 commit ab859de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build/ublue-os-just/00-default.just
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,7 @@ device-info:
#!/usr/bin/bash
echo "Gathering device info..."
fpaste <(rpm-ostree status) <(fpaste --sysinfo --printonly)

# Measure Idle Power Draw
check-idle-power-draw:
powerstat -a -r
6 changes: 5 additions & 1 deletion build/ublue-os-just/ublue-os-just.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Name: ublue-os-just
Packager: ublue-os
Vendor: ublue-os
Version: 0.31
Version: 0.32
Release: 1%{?dist}
Summary: ublue-os just integration
License: MIT
Expand All @@ -10,6 +10,7 @@ URL: https://github.com/ublue-os/config
BuildArch: noarch
Requires: just
Requires: ublue-os-luks
Requires: powerstat

Source0: ublue-os-just.sh
Source1: 00-default.just
Expand Down Expand Up @@ -107,6 +108,9 @@ just --completions bash | sed -E 's/([\(_" ])just/\1ujust/g' > %{_datadir}/bash-
chmod 644 %{_datadir}/bash-completion/completions/ujust

%changelog
* Wed May 01 2024 Kyle Gospodnetich <[email protected]> - 0.32
- Add powerstat

* Mon Apr 30 2024 Benjamin Sherman <[email protected]> - 0.31
- Add LUKS TPM autounlock support

Expand Down

0 comments on commit ab859de

Please sign in to comment.