- Show charge/discharge power in watts, a battery graphic with charge bolt, a power history graph and the estimated time until full or remaining (respecting the 80 % charge limit) in the app, the panel widget, its tooltip and `predatorctl status` - Add packaging/arch/PKGBUILD that builds a pacman package; the kernel module ships as DKMS source and is rebuilt for every kernel - Bump version to 1.1.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
837 B
Plaintext
26 lines
837 B
Plaintext
post_install() {
|
|
systemctl daemon-reload
|
|
modprobe predator_wmi 2>/dev/null || echo ":: predator_wmi could not be loaded yet (kernel headers installed? Secure Boot?)"
|
|
systemctl enable --now predatord.service
|
|
echo ":: Predator Control installed."
|
|
echo ":: Add the panel widget: right-click the panel -> Add or Manage Widgets -> 'Predator Control'"
|
|
echo ":: Only members of the 'wheel' group can change settings."
|
|
}
|
|
|
|
post_upgrade() {
|
|
systemctl daemon-reload
|
|
modprobe predator_wmi 2>/dev/null
|
|
systemctl try-restart predatord.service
|
|
}
|
|
|
|
pre_remove() {
|
|
systemctl disable --now predatord.service 2>/dev/null
|
|
modprobe -r predator_wmi 2>/dev/null
|
|
true
|
|
}
|
|
|
|
post_remove() {
|
|
systemctl daemon-reload
|
|
echo ":: Settings were kept in /etc/predator-control (delete manually if no longer needed)."
|
|
}
|