Skip to content

Commit

Permalink
Merge changes from upstream (#21)
Browse files Browse the repository at this point in the history
* chore: add an issue template (ublue-os#675)

* fix: remove ddccontrol (ublue-os#676)

* fix: turn off gnome vrr by default (ublue-os#674)

* feat: add hplip (ublue-os#678)

* chore(just): brew moved to config repo (ublue-os#679)

* chore(yafti): update forum link (ublue-os#682)

* chore(yafti): update docs links (ublue-os#683)

* feat(just): combine devmode on/off with gum (ublue-os#685)

* chore(readme): update links (ublue-os#684)

Co-authored-by: Jorge O. Castro <jorge.castro@gmail.com>

* fix: increase open file limit (ublue-os#686)

---------

Co-authored-by: Jorge O. Castro <jorge.castro@gmail.com>
Co-authored-by: bobslept <38557801+bobslept@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 29, 2023
1 parent 340004f commit 1746bd9
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 57 deletions.
84 changes: 29 additions & 55 deletions just/custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,6 @@ aqua:
printf '\n export PATH="${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin:$PATH"\n'
printf '\n=> see https://aquaproj.github.io/docs/tutorial for more info\n'

# Install Homebrew for Linux
brew:
echo "Installing homebrew ..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Remove Homebrew
brew-remove:
echo "Removing homebrew ..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

# Add Homebrew to shell rc files
brew-shell:
#!/usr/bin/env bash
set -euxo pipefail
echo "Adding homebrew to shell configuration"
touch $HOME/.zprofile
touch $HOME/.bash_profile
if grep -q "linuxbrew" $HOME/.zprofile
then
echo "Brew configuration already present in .zprofile"
else
echo "Adding Brew configuration to .zprofile"
echo 'eval "$(/var/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> $HOME/.zprofile
fi
if grep -q "linuxbrew" $HOME/.bash_profile
then
echo "Brew configuration already present in .bash_profile"
else
echo "Adding Brew configuration to .bash_profile"
echo 'eval "$(/var/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> $HOME/.bash_profile
fi

# Enable Cockpit for web-based system management | https://cockpit-project.org/
cockpit:
echo 'Enabling Cockpit'
Expand All @@ -66,25 +34,8 @@ cockpit:
sudo systemctl enable cockpit.service
echo 'Open Cockpit -> http://localhost:9090'

# Import a devcontainers profile for VSCode
code-profile:
xdg-open https://vscode.dev/profile/github/c761b7738e9a7b02286d6d94cb2d1ecd

# Rebase to a stock Bluefin image
devmode-off:
#!/usr/bin/env bash
CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"')
if grep -q "bluefin-dx" <<< $CURRENT_IMAGE
then
echo "Rebasing to a non developer image"
NEW_IMAGE=$(echo $CURRENT_IMAGE | sed "s/bluefin-dx/bluefin/")
rpm-ostree rebase $NEW_IMAGE
else
echo "You are currently not on a developer image"
fi

# Rebase to the Bluefin Developer Experience image
devmode-on:
# Toggle between Bluefin and the Developer Experience
devmode:
#!/usr/bin/env bash
CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"')

Expand All @@ -99,11 +50,34 @@ devmode-on:

if grep -q "bluefin-dx" <<< $CURRENT_IMAGE
then
echo "You are already on a developer image"
CURRENT_STATE="enabled"
else
echo "Rebasing to a developer image"
NEW_IMAGE=$(echo $CURRENT_IMAGE | sed "s/bluefin/bluefin-dx/")
rpm-ostree rebase $NEW_IMAGE
CURRENT_STATE="disabled"
fi

echo "Developer mode is currently ${CURRENT_STATE}"
echo "Enable or Disable developer mode"
OPTION=$(gum choose Enable Disable)
if [ "$OPTION" = "Enable" ]
then
if [ "$CURRENT_STATE" = "enabled" ]
then
echo "You are already on a developer image"
else
echo "Rebasing to a developer image"
NEW_IMAGE=$(echo $CURRENT_IMAGE | sed "s/bluefin/bluefin-dx/")
rpm-ostree rebase $NEW_IMAGE
fi
elif [ "$OPTION" = "Disable" ]
then
if [ "$CURRENT_STATE" = "enabled" ]
then
echo "Rebasing to a non developer image"
NEW_IMAGE=$(echo $CURRENT_IMAGE | sed "s/bluefin-dx/bluefin/")
rpm-ostree rebase $NEW_IMAGE
else
echo "You are currently not on a developer image"
fi
fi

# Assemble a Pytorch distrobox (Nvidia only)
Expand Down
1 change: 1 addition & 0 deletions packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"fish",
"glow",
"gum",
"hplip",
"input-remapper",
"libratbag-ratbagd",
"libxcrypt-compat",
Expand Down
1 change: 1 addition & 0 deletions usr/etc/sysctl.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fs.file-max = 500000
4 changes: 2 additions & 2 deletions usr/etc/yafti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ screens:
- "Install More Applications":
run: /usr/bin/gnome-software
- "Documentation":
run: /usr/bin/xdg-open https://universal-blue.org/images/bluefin/
run: /usr/bin/xdg-open https://universal-blue.discourse.group/t/introduction-to-bluefin/41
- "Discussions and Announcements":
run: /usr/bin/xdg-open https://github.com/orgs/ublue-os/discussions/categories/bluefin
run: /usr/bin/xdg-open https://universal-blue.discourse.group/c/bluefin/6
- "Join the Discord Community":
run: /usr/bin/xdg-open https://discord.gg/XjG48C7VHx
description: |
Expand Down

0 comments on commit 1746bd9

Please sign in to comment.