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:
1 parent
00a30b119b
commit
b3cb379a48
2 files changed
+15
No files matched your search
@@ -12,6 +12,11 @@ license=('BSD-3-Clause')
|
|||||||
depends=('python' 'libpulse')
|
depends=('python' 'libpulse')
|
||||||
optdepends=('kconfig: follow the KDE Plasma volume step setting'
|
optdepends=('kconfig: follow the KDE Plasma volume step setting'
|
||||||
'bluez-utils: device names in --show')
|
'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")
|
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
|
||||||
sha256sums=('0b06ba55c3764271856a5a806c28dc71b0802f85fd3d706699834eb4249ed097')
|
sha256sums=('0b06ba55c3764271856a5a806c28dc71b0802f85fd3d706699834eb4249ed097')
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
}
|
||||||
Reference in new issue
Block a user