Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions system_files/bluefin/usr/share/ublue-os/just/changelog.just
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,23 @@ changelogs:
# Get Image Tag
TAG="$(jq -r '.["image-tag"]' < /usr/share/ublue-os/image-info.json)"

# If stable or gts, get changelogs from Github Releases
if [[ "$TAG" =~ gts$|stable$ ]]; then
# Select the correct upstream repo based on image stream
if [[ "$TAG" =~ ^lts ]]; then
REPO="projectbluefin/bluefin-lts"
else
REPO="projectbluefin/bluefin"
fi

# If stable, gts, or lts, fetch from GitHub Releases
if [[ "$TAG" =~ gts$|stable$|^lts ]]; then
DATE="$(grep -oP "OSTREE_VERSION=.*\d{2}\.\K\d{8}[.0-9]*" /etc/os-release)"
CONTENT="$(curl -Ls "https://api.github.com/repos/ublue-os/bluefin/releases" | jq -r ".[] | select(.tag_name==\"${TAG}-${DATE}\") | .body")"
CONTENT="$(curl -Ls "https://api.github.com/repos/${REPO}/releases" | jq -r ".[] | select(.tag_name==\"${TAG}-${DATE}\") | .body")"
fi

# Display Content with Glow, otherwise fallback to rpm-ostree changelogs (stable-daily/latest/desynced)
# Display Content with Glow, otherwise fallback to latest release for this repo
if [[ -n "${CONTENT:-}" ]]; then
echo "$CONTENT" | glow -p
else
echo "WARN: Could not find a release specific to your image"
curl -Ls "https://api.github.com/repos/ublue-os/bluefin/releases/latest" | jq -r ".body" | glow -p
curl -Ls "https://api.github.com/repos/${REPO}/releases/latest" | jq -r ".body" | glow -p
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Auto-switch audio output to newly connected Bluetooth devices
# and prefer A2DP (high-quality audio) over HFP/HSP (headset profile)
pulse.cmd = [
{ cmd = "load-module" args = "module-switch-on-connect" }
]
Loading