summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe6af14cbf059cad2c271c53f5488044130ea384 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Nikita Nikiforov <swrast at disr dot it>
# Contributor: Nikita Nikiforov <swrast at disr dot it>

pkgname="pipewire-autostart"
pkgver="1.0"
pkgrel="1"
pkgdesc="/etc/xdg/autostart files for pipewire, pipewire-pulse and wireplumber."
arch=("any")
depends=("pipewire" "pipewire-pulse" "wireplumber")
license=("ГОЛ-1.1")

package() {
	mkdir -p "${pkgdir}/etc/xdg/autostart"
	cd "${pkgdir}/etc/xdg/autostart"

	tee pipewire.desktop <<EOF
[Desktop Entry]
Name=PipeWire
Comment=Start PipeWire
Icon=pipewire
Exec=pipewire
Terminal=false
Type=Application
NoDisplay=true
EOF
	tee pipewire-pulse.desktop <<EOF
[Desktop Entry]
Name=PipeWire pulse
Comment=Start the PipeWire pulse server
Icon=pipewire-pulse
Exec=pipewire-pulse
Terminal=false
Type=Application
NoDisplay=true
EOF
	tee wireplumber.desktop <<EOF
[Desktop Entry]
Name=WirePlumber
Comment=Start WirePlumber
Icon=pipewire
Exec=wireplumber
Terminal=false
Type=Application
NoDisplay=true
EOF
}