diff --git a/bt-volume-step/PKGBUILD b/bt-volume-step/PKGBUILD index 31c2cee..026438b 100644 --- a/bt-volume-step/PKGBUILD +++ b/bt-volume-step/PKGBUILD @@ -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') diff --git a/bt-volume-step/bt-volume-step.install b/bt-volume-step/bt-volume-step.install new file mode 100644 index 0000000..467f6d8 --- /dev/null +++ b/bt-volume-step/bt-volume-step.install @@ -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 +}