bt-volume-step: print the enable command after install

Packages must not enable units themselves: the Arch default preset is
"disable *", and a user unit cannot be enabled from a pacman transaction
anyway, which runs as root without the user's session bus.
This commit is contained in:
Felitendo committed 2026-08-16 03:20:31 +02:00
1 parent 00a30b119b
commit b3cb379a48
2 files changed
+15

No files matched your search

+5
View File
@@ -12,6 +12,11 @@ license=('BSD-3-Clause')
depends=('python' 'libpulse')
optdepends=('kconfig: follow the KDE Plasma volume step setting'
'bluez-utils: device names in --show')
# Arch packages never enable units themselves (the default preset is
# "disable *"), and a user unit could not be enabled from a pacman transaction
# anyway - it runs as root, without the user's session bus. Print the command
# instead.
install="${pkgname}.install"
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('0b06ba55c3764271856a5a806c28dc71b0802f85fd3d706699834eb4249ed097')
+10
View File
@@ -0,0 +1,10 @@
post_install() {
cat <<'EOF'
==> bt-volume-step ships a systemd user unit. Enable it for your session:
==>
==> systemctl --user enable --now bt-volume-step
==>
==> Then use the volume control on a connected Bluetooth device a few times:
==> the daemon measures that device's volume grid before it starts correcting.
EOF
}