Skip to content

Commit

Permalink
Merge branch 'main' into motd-package
Browse files Browse the repository at this point in the history
  • Loading branch information
NiHaiden authored Jan 12, 2025
2 parents 837a73b + d1ae36d commit 86dff64
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 49 deletions.
5 changes: 4 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
* @castrojo
* @NiHaiden
* @RealVishy
* @nicknamenamenick
* @ledif
1 change: 1 addition & 0 deletions packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"usbmuxd",
"ublue-bling",
"ublue-motd",
"ublue-fastfetch",
"wireguard-tools",
"xprop",
"wl-clipboard",
Expand Down
3 changes: 0 additions & 3 deletions system_files/kinoite/etc/profile.d/aurora-fastfetch.sh

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[Unit]
Description=Add plugdev groups

[Service]
Type=oneshot
ExecStart=/usr/libexec/aurora-groups
ExecStart=/usr/libexec/aurora-groups.sh
Restart=on-failure
RestartSec=30
StartLimitInterval=0

[Install]
WantedBy=default.target
8 changes: 7 additions & 1 deletion system_files/shared/usr/libexec/aurora-groups.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/usr/bin/env bash

# SCRIPT VERSION
GROUP_SETUP_VER=1
GROUP_SETUP_VER_FILE="/etc/ublue/aurora-groups"
GROUP_SETUP_VER_RAN=$(cat "$GROUP_SETUP_VER_FILE")

# Run script if updated
if [[ -f $GROUP_SETUP_VER_FILE && "$GROUP_SETUP_VER" = "$GROUP_SETUP_VER_RAN" ]]; then
echo "Group setup has already run. Exiting..."
exit 0
fi

# Function to append a group entry to /etc/group
append_group() {
local group_name="$1"
Expand All @@ -16,13 +19,16 @@ append_group() {
grep "^$group_name:" /usr/lib/group | tee -a /etc/group > /dev/null
fi
}

# Setup Groups
append_group plugdev

wheelarray=($(getent group wheel | cut -d ":" -f 4 | tr ',' '\n'))
for user in $wheelarray
for user in "${wheelarray[@]}"
do
usermod -aG plugdev $user
done

# Prevent future executions
echo "Writing state file"
echo "$GROUP_SETUP_VER" > "$GROUP_SETUP_VER_FILE"
38 changes: 0 additions & 38 deletions system_files/shared/usr/libexec/ublue-bling-fastfetch

This file was deleted.

6 changes: 4 additions & 2 deletions system_files/shared/usr/libexec/ublue-system-setup
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ VEN_ID="$(cat /sys/devices/virtual/dmi/id/chassis_vendor)"
CPU_VENDOR=$(grep "vendor_id" "/proc/cpuinfo" | uniq | awk -F": " '{ print $2 }')

# SCRIPT VERSION
HWS_VER=3
HWS_VER=4
HWS_VER_FILE="/etc/ublue/hws_version"
[[ -f "$HWS_VER_FILE" ]] && HWS_VER_RAN=$(cat $HWS_VER_FILE)

Expand Down Expand Up @@ -63,9 +63,11 @@ else
echo "No karg changes needed"
fi

SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"

# FRAMEWORK 13 AMD FIXES
if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
if [[ $SYS_ID == "Laptop ("* ]]; then
if [[ $SYS_ID == "Laptop 13 ("* ]]; then
if [[ "AuthenticAMD" == "$CPU_VENDOR" ]]; then
if [[ ! -f /etc/modprobe.d/alsa.conf ]]; then
echo 'Fixing 3.5mm jack'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type": "file",
"source": "/usr/share/ublue-os/aurora-logo.txt",
"color": {
"1": "94",
"2": "95",
"3": "91",
"4": "97",
}
},
"display": {
"separator": "  ",
"color": {
Expand Down

0 comments on commit 86dff64

Please sign in to comment.