* Made sure that WirePlumber is installed explicitly. (Turns out that it wasn't; it just kinda... Happened to be there. But in theory, if I were to somehow end up with pipewire-media-session (Ugh!), there would be nothing telling DCli to switch back to WirePlumber.) * Moved extra packages to a separate module (because - now that I think about it - I think I like the idea of system-packages-GuzioPadV4 being a sort of „archive”, to which I won't be appending anything anymore) * Figured out a way to declaratively enable WirePlumber, so I removed it from the commented-out block in GuzioPadV4 host (also, gotten rid of blend-files (no longer on Blend, after all) while at it) [UPDATE: Nevermind! That declarative way will not work until DCli gets its shit together with user-hooks. Still, the error message is loud enough (and not-DCli-flow-breaking) that I think I'll stick to it for now, instead of an easy-to-miss commented-out service.] * Maybe? fixed camera problems that I've been having on this tablet from day-one (and, now that I think about it, on my previous laptop, too - tho I just always thought it broke after I tried cleaning under the lense with a piece of paper (I thought I severed a ribbon cable or something), but maybe it was working, after all?) by installing pipewire-libcamera. * Explicitly declared pipewire and pipewire-audio for good measure.
12 lines
No EOL
479 B
Bash
12 lines
No EOL
479 B
Bash
#!/bin/bash
|
|
|
|
# extra precautions until run_hooks_as_user: true is fixed
|
|
if [ -n "$SUDO_USER" ] && [ "$EUID" == 0 ]; then
|
|
exec su "$SUDO_USER" $0;
|
|
fi
|
|
|
|
systemctl --user enable wireplumber.service --now
|
|
if [ "$?" -ne 0 ]; then
|
|
echo "[WARN] You seem to be running a SystemD-less distro, so WirePlumber couldn't be started automatically. This is not that big of a deal; just start it (AS A USER SERVICE!) manually yourself, according to however your init system works.";
|
|
exit 0;
|
|
fi |