Skip to content

Commit 2b61899

Browse files
committed
feat: use ublue udev rules and ujust
1 parent a05d4e0 commit 2b61899

File tree

12 files changed

+78
-9
lines changed

12 files changed

+78
-9
lines changed

containerfiles/ublue/Containerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
RUN rpm-ostree install just powerstat
2+
COPY --from=ghcr.io/ublue-os/config:latest /rpms/ublue-os-udev-rules.noarch.rpm /
3+
COPY --from=ghcr.io/ublue-os/config:latest /rpms/ublue-os-update-services.noarch.rpm /
4+
COPY --from=ghcr.io/ublue-os/config:latest /rpms/ublue-os-signing.noarch.rpm /
5+
COPY --from=ghcr.io/ublue-os/config:latest /rpms/ublue-os-luks.noarch.rpm /
6+
COPY --from=ghcr.io/ublue-os/config:latest /rpms/ublue-os-just.noarch.rpm /
7+
RUN rpm -ivh /ublue-os-udev-rules.noarch.rpm
8+
RUN rpm -ivh /ublue-os-update-services.noarch.rpm
9+
RUN rpm -ivh /ublue-os-signing.noarch.rpm
10+
RUN rpm -ivh /ublue-os-luks.noarch.rpm
11+
RUN rpm -ivh /ublue-os-just.noarch.rpm

files/scripts/00-image-info.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SUPPORT_URL="https://github.com/ledif/blue95/issues/"
1212
BUG_SUPPORT_URL="https://github.com/ledif/blue95/issues"
1313
VERSION_CODENAME="Ross"
1414

15-
IMAGE_INFO="/usr/share/blue95/image-info.json"
15+
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
1616
IMAGE_REF="ostree-image-signed:docker://ghcr.io/$IMAGE_VENDOR/$IMAGE_NAME"
1717

1818
FEDORA_MAJOR_VERSION=41

files/scripts/20-chicago95.sh

+17-5
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,26 @@ mv Chicago95* /usr/src/chicago95
1010
cd /usr/src/chicago95
1111

1212
# Themes
13-
mkdir -p /usr/share/blue95/themes
14-
cp -r Theme/Chicago95 /usr/share/blue95/themes
15-
ln -s /usr/share/blue95/themes/Chicago95 /usr/share/themes/Chicago95
16-
flatpak override --filesystem=/usr/share/blue95/themes/
17-
flatpak override --env=GTK_THEME=Chicago95
13+
cp -r Theme/Chicago95 /usr/share/themes
14+
#flatpak override --filesystem=/usr/share/blue95/themes/
15+
#flatpak override --env=GTK_THEME=Chicago95
1816

1917
# Icons and cursors
2018
cp -r Icons/* Cursors/* /usr/share/icons/
19+
20+
# Battery tweaks (stay on full icon from 100%-90%)
21+
for f in $(find . -name "battery-level-90*"); do
22+
target=$(echo ${f/90/100} | sed 's/-charging//')
23+
rm $f
24+
ln -s $target $f
25+
done
26+
27+
28+
# Custom app icons
29+
30+
ln -s /usr/share/icons/Chicago95/apps/48/{software,bauh}.png
31+
ln -s /usr/share/icons/Chicago95/apps/48/stock_keyring.png /usr/share/icons/Chicago95/apps/com.onepassword.OnePassword.png
32+
2133
update-mime-database /usr/share/mime
2234
gdk-pixbuf-query-loaders-64 --update-cache
2335

files/scripts/21-fix-icon-sizes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@
3737
if not size_dir.is_dir():
3838
size_dir.mkdir()
3939

40+
num_created = 0
4041
for icon in icons_for_all_sizes:
4142
out_png = size_dir / icon
4243
in_svg = Path(category_dir / "scalable" / f"{Path(icon).stem}.svg")
4344

4445
if not out_png.exists() and in_svg.exists():
45-
print(f"-- Creating {out_png}")
4646
cairosvg.svg2png(url=str(in_svg), write_to=str(out_png), output_width=int(size), output_height=int(size))
47+
num_created = num_created + 1
4748

49+
print(f"-- Created {num_created} icons for {category_dir.name} ({size}px)")
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
set -ouex pipefail
4+
5+
update-mime-database /usr/share/mime
6+
gdk-pixbuf-query-loaders-64 --update-cache
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Name=Software Store
4+
Categories=System;
5+
Comment=Install and manage Flatpak applications
6+
Exec=/usr/bin/bauh
7+
Icon=system-software-installer

files/system/usr/share/blue95/fastfetch.jsonc files/system/usr/share/ublue-os/fastfetch.jsonc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
33
"logo": {
44
"type": "file",
5-
"source": "/usr/share/blue95/blue95-logo.ansi",
5+
"source": "/usr/share/ublue-os/blue95-logo.ansi",
66
"color": {
77
"1": "94",
88
"2": "95",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
alias brew := install-brew
2+
3+
# Install Homebrew | https://brew.sh
4+
install-brew:
5+
#!/usr/bin/env bash
6+
source /usr/lib/ujust/ujust.sh
7+
if [[ ! -f "/var/home/linuxbrew/.linuxbrew/bin" || ! -x "/var/home/linuxbrew/.linuxbrew/bin/brew" ]]; then
8+
echo "${b}Brew Installation${n}"
9+
echo "Please ${b}IGNORE${n} everything the installer tells you to do at the end"
10+
echo "We have already done it for you! You just need to close and re-open the terminal after installation"
11+
echo "Do you understand?"
12+
echo "Please type in \"YES I UNDERSTAND\" and press enter"
13+
read ACCEPT
14+
if [ "$ACCEPT" == "YES I UNDERSTAND" ]; then
15+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
16+
else
17+
echo "Capitalization matters when you type \"YES I UNDERSTAND\""
18+
fi
19+
fi
20+
21+
# Removes homebrew from system
22+
remove-brew:
23+
echo "Removing homebrew ..."
24+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

justfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ test-local:
22
#!/bin/bash
33
set -xeuo pipefail
44

5-
bluebuild rebase recipes/recipe.yml
5+
bluebuild rebase --tempdir /var/tmp recipes/recipe.yml

recipes/recipe.yml

+7
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ modules:
1313
- source: system
1414
destination: /
1515

16+
- type: containerfile
17+
containerfiles: ["ublue"]
18+
19+
1620
- type: rpm-ostree
1721
install:
1822
- btop
1923
- fastfetch
2024
- libcanberra
2125
- lightdm-gtk-greeter-settings
26+
- mate-disk-usage-analyzer
27+
- mate-system-monitor
2228
- menulibre
2329
- neovim
2430
- python3-cairosvg
@@ -44,6 +50,7 @@ modules:
4450
- 10-install-appimages.sh
4551
- 20-chicago95.sh
4652
- 21-fix-icon-sizes.py
53+
- 29-finalize-de-tweaks.sh
4754

4855
- type: default-flatpaks
4956
notify: true # Send notification after install/uninstall is finished

0 commit comments

Comments
 (0)