The Meowgorithm Dotfiles, Collectors’ Edition
#!/usr/bin/env bash
set -euo pipefail
# Install the latest Rio terminal RPM on Fedora.
# https://raphamorim.io/rio/
# Check if running on Fedora.
if [[ ! -f /etc/os-release ]]; then
echo "Cannot detect OS. This script only supports Fedora."
exit 1
fi
source /etc/os-release
if [[ "$ID" != "fedora" ]]; then
echo "This script only supports Fedora. Detected: $ID"
exit 1
fi
# Detect architecture.
arch="$(uname -m)"
case "$arch" in
x86_64)
rpm_arch="x86_64"
;;
aarch64)
rpm_arch="aarch64"
;;
*)
echo "Unsupported architecture: $arch"
exit 1
;;
esac
# Detect display server (default to wayland).
if [[ -n "${WAYLAND_DISPLAY:-}" ]]; then
display_server="wayland"
elif [[ -n "${DISPLAY:-}" ]]; then
display_server="x11"
else
# Default to wayland for modern Fedora systems.