blob: ce52f07f9d5a930d82b82195318c4f5678a1c9f8 (
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
|
post_install() {
echo "==> Linux Soundboard supports native Wayland and X11 sessions."
if [ -f /usr/bin/swhkd ]; then
chmod u+s /usr/bin/swhkd || true
echo "==> Configured swhkd for native Wayland hotkeys."
else
echo "==> Install swhkd-bin or swhkd-git from the AUR for native Wayland hotkeys."
fi
if [ -f /usr/bin/swhks ]; then
chmod +x /usr/bin/swhks || true
fi
if command -v systemctl >/dev/null 2>&1; then
systemctl --global enable linux-soundboard-engine.service >/dev/null 2>&1 || true
echo "==> Enabled Linux Soundboard audio engine for user sessions."
fi
echo "==> X11 sessions can use the native X11 backend directly."
}
post_upgrade() {
post_install
}
|