mirror of
https://github.com/blazblue547-afk/aero3.git
synced 2026-12-02 14:24:17 -05:00
Initial AeroOS source
This commit is contained in:
commit
b27732ad89
42 files changed
+3775
No files matched your search
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
# aero-lofi — loops the subtle AeroOS lofi track on the PipeWire graph.
|
||||
# Kept intentionally simple: loop a seamless WAV with pw-play (falls back to
|
||||
# paplay / aplay). Volume is held low for a "subtle" background feel.
|
||||
|
||||
TRACK="${AERO_LOFI_TRACK:-/usr/share/aeros/lofi/aero-lofi.wav}"
|
||||
VOL="${AERO_LOFI_VOLUME:-0.35}"
|
||||
|
||||
[ -r "$TRACK" ] || { echo "aero-lofi: no track at $TRACK" >&2; exit 1; }
|
||||
|
||||
player() {
|
||||
if command -v pw-play >/dev/null 2>&1; then
|
||||
pw-play --volume "$VOL" "$TRACK"
|
||||
elif command -v paplay >/dev/null 2>&1; then
|
||||
paplay "$TRACK"
|
||||
elif command -v aplay >/dev/null 2>&1; then
|
||||
aplay -q "$TRACK"
|
||||
else
|
||||
echo "aero-lofi: no audio player available" >&2
|
||||
sleep 3600
|
||||
fi
|
||||
}
|
||||
|
||||
# Loop forever (the track itself is a seamless loop).
|
||||
while :; do
|
||||
player || sleep 2
|
||||
done
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=AeroOS subtle lofi on the home screen
|
||||
After=pipewire.service wireplumber.service
|
||||
Wants=pipewire.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/aero-lofi
|
||||
Restart=on-failure
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in new issue
Block a user