Skip to content

Commit

Permalink
adding custom just files
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Campbell committed Dec 20, 2024
1 parent ed6d307 commit 944dc29
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions files/system/usr/share/ublue-os/just/60-custom.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Install JetBrains Toolbox | https://www.jetbrains.com/toolbox-app/
jetbrains-toolbox:
#!/usr/bin/env bash
BUILD_VERSION="2.0.2.16660"
echo "Installing JetBrains Toolbox"
pushd "$(mktemp -d)"
curl -sSfL -O https://download.jetbrains.com/toolbox/jetbrains-toolbox-$BUILD_VERSION.tar.gz
curl -sSfL https://download.jetbrains.com/toolbox/jetbrains-toolbox-$BUILD_VERSION.tar.gz.sha256 | sha256sum -c
tar zxf jetbrains-toolbox-$BUILD_VERSION.tar.gz
echo "Launching JetBrains Toolbox"
./jetbrains-toolbox-$BUILD_VERSION/jetbrains-toolbox
# Install nix and Devbox
nix-devbox:
echo 'Setting phasers to kill. Installing nix.'
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
echo 'Installing devbox!'
curl -fsSL https://get.jetpack.io/devbox | bash
echo 'You MUST reboot to continue'
distrobox-assemble:
distrobox assemble create --file /usr/etc/distrobox/distrobox.ini

#Start the podman socket (User)
podman-socket:
systemctl --user start podman.socket

#Install ArcDPS for GW2
arcDPS-install:
wget -O ~/.local/share/Steam/steamapps/common/Guild\ Wars\ 2/d3d11.dll https://www.deltaconnected.com/arcdps/x64/d3d11.dll

#Delete ArcDPS for GW2
arcDPS-remove:
rm ~/.local/share/Steam/steamapps/common/Guild\ Wars\ 2/d3d11.dll

#Bluefin
rebase-bluefin:
rpm-ostree rebase ostree-image-signed:docker://ghcr.io/waffleophagus/wafflosagus-bluefin-dx:latest

#Bazzite
rebase-bazzite:
rpm-ostree rebase ostree-image-signed:docker://ghcr.io/waffleophagus/wafflosagus-bazzite:latest

# Ptyxis terminal transparency
ptyxis-transparency opacity="0.95":
#!/usr/bin/env bash
set -euxo pipefail
if [[ -n "$(echo "{{ opacity }}" | grep -v '^[.0-9]*$')" ]]; then
printf "Value must be numeric: %s.\n" "{{ opacity }}"
elif [[ $(echo "0<{{ opacity }} && 1>{{ opacity }}" | bc -q) -eq 1 ]]; then
raw="$(gsettings get org.gnome.Ptyxis profile-uuids)"
uuids="$(sed -En 's|[^0-9a-z]*||g; s|([0-9a-z]{32})|\1\n|gp' <<<${raw})"
for i in ${uuids}; do
location="org.gnome.Ptyxis.Profile:/org/gnome/Ptyxis/Profiles/${i}/"
gsettings set "${location}" opacity "{{ opacity }}"; done
printf "Ptyxis opacity is now %s.\n" "{{ opacity }}"
else
printf "Value must be between 0 and 1: %s.\n" "{{ opacity }}"
fi
# Install JetBrains Toolbox | https://www.jetbrains.com/toolbox-app/
install-jetbrains-toolbox:
#!/usr/bin/env bash
pushd "$(mktemp -d)"
echo "Get latest JetBrains Toolbox version"
# Get the json with latest releases
curl -sSfL -o releases.json "https://data.services.jetbrains.com/products/releases?code=TBA&latest=true&type=release"
# Extract information
BUILD_VERSION=$(jq -r '.TBA[0].build' ./releases.json)
DOWNLOAD_LINK=$(jq -r '.TBA[0].downloads.linux.link' ./releases.json)
CHECKSUM_LINK=$(jq -r '.TBA[0].downloads.linux.checksumLink' ./releases.json)
echo "Installing JetBrains Toolbox ${BUILD_VERSION}"
curl -sSfL -O "${DOWNLOAD_LINK}"
curl -sSfL "${CHECKSUM_LINK}" | sha256sum -c
tar zxf jetbrains-toolbox-"${BUILD_VERSION}".tar.gz
echo "Launching JetBrains Toolbox"
./jetbrains-toolbox-"${BUILD_VERSION}"/jetbrains-toolbox

0 comments on commit 944dc29

Please sign in to comment.