[group('Apps')]
jetbrains-toolbox:
@ujust install-jetbrains-toolbox
[group('Apps')]
install-jetbrains-toolbox:
#!/usr/bin/env bash
brew trust --tap ublue-os/homebrew-tap
brew tap ublue-os/homebrew-tap
brew install --cask jetbrains-toolbox-linux
[group('Apps')]
install-opentabletdriver:
gum confirm --affirmative="Install" --negative="Uninstall" "Installer for OpenTabletDriver"
EXIT_CODE="$?"
if [ "${EXIT_CODE}" == 0 ] ; then
echo "Installing OpenTabletDriver..."
OTD_TMPDIR="$(mktemp -d)"
curl -s "https://api.github.com/repos/OpenTabletDriver/OpenTabletDriver/releases/latest" \
| jq -r '.assets[] | select(.name | test("opentabletdriver.*tar.gz$")) | .browser_download_url' \
| xargs curl -L -s \
| tar --strip-components=1 -xvzf - -C "${OTD_TMPDIR}"
sudo cp "${OTD_TMPDIR}/etc/udev/rules.d/70-opentabletdriver.rules" /etc/udev/rules.d/71-opentabletdriver.rules
echo -ne "blacklist hid_uclogic\nblacklist wacom\n" | sudo tee /etc/modprobe.d/blacklist-opentabletdriver.conf
rm -rf "${OTD_TMPDIR}"
flatpak --system install -y flathub net.opentabletdriver.OpenTabletDriver
mkdir -p "$HOME/.config/systemd/user"
curl -s "https://raw.githubusercontent.com/flathub/net.opentabletdriver.OpenTabletDriver/refs/heads/master/scripts/opentabletdriver.service" > "$HOME/.config/systemd/user/opentabletdriver.service"
systemctl --user daemon-reload
systemctl enable --user --now opentabletdriver.service
elif [ "${EXIT_CODE}" == 1 ] ; then
echo "Uninstalling OpenTabletDriver..."
sudo rm -f /etc/modprobe.d/blacklist-opentabletdriver.rules /etc/udev/rules.d/71-opentabletdriver.rules
flatpak --system remove -y flathub net.opentabletdriver.OpenTabletDriver
fi
bbrew:
#!/usr/bin/env bash
set -eou pipefail
if ! command -v bbrew &>/dev/null ; then
if gum confirm "Bold Brew is not installed, would you like to install it?" ; then
brew install bbrew
else
exit 0
fi
fi
echo "Note: Some of these take a while to load, we'll keep working on it."
CHOSEN="$(gum choose $(find "/usr/share/ublue-os/homebrew"/*.Brewfile -exec basename '{}' '.Brewfile' ';'))"
BREWFILE="/usr/share/ublue-os/homebrew/${CHOSEN}.Brewfile"
/usr/libexec/ublue-brew-trust-brewfile "$BREWFILE"
bbrew -f "$BREWFILE"
cncf:
#!/usr/bin/env bash
if ! command -v bbrew &>/dev/null ; then
if gum confirm "Bold Brew is not installed, would you like to install it?" ; then
brew install bbrew
else
exit 0
fi
fi
/usr/libexec/ublue-brew-trust-brewfile "/usr/share/ublue-os/homebrew/cncf.Brewfile"
bbrew -f "/usr/share/ublue-os/homebrew/cncf.Brewfile"