Add upgrade safeguards, hardware setup, sign-in options and Taildrop from Omarchy
shellcheck / shellcheck (push) Failing after 19s
shellcheck / shellcheck (push) Failing after 19s
Adapted from Omarchy (github.com/omacom/omarchy) for Arch with GNOME: - A pacman hook stops a full upgrade run without update (pacman -Syu, yay -Syu), which would skip the snapshot and update's checks. update and install.sh set COREDESKTOP_ALLOW_PACMAN=1, which the hook finds on pacman or any process above it; you can set it too. - When the Arch upgrade stops on files no package owns, update lists them and asks to move them to /var/lib/coredesktop/replaced and try again, putting back what the retry didn't replace. When packages conflict, it runs pacman again so you can choose. - update and install keep the computer from sleeping until they finish. - system/hardware.sh (install, and a migration): the Wi-Fi country from the time zone, thermald and intel-lpmd on Intel laptops, and Wi-Fi 6 on Intel BE200/BE211 cards, whose driver gets Wi-Fi 7 wrong. - configure security-key and configure fingerprint: touch a FIDO2 key or a finger instead of typing your password for sudo and polkit, falling back to the password. Each shows only when the hardware is there. The fingerprint skips to the password with the lid shut. - webapp: put a website in the app grid as its own app window. - Taildrop: Files' Scripts > Send with Tailscale, and a user service that saves files sent here to Downloads, started when configure tailscale joins. - A NetworkManager dispatcher script pauses a Tailscale exit node while you sign in to a captive portal, and resumes it once online. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+28
-1
@@ -82,6 +82,17 @@ on_exit() {
|
||||
}
|
||||
trap on_exit EXIT
|
||||
|
||||
# Keep the computer from suspending, from idle or a closed lid, until the
|
||||
# install exits. tail exits with it, and that ends the inhibitor.
|
||||
if command -v systemd-inhibit > /dev/null; then
|
||||
systemd-inhibit --what=sleep:idle --who=CoreDesktop --why="Installing CoreDesktop" --mode=block \
|
||||
tail --pid=$$ -f /dev/null > /dev/null 2>&1 &
|
||||
fi
|
||||
|
||||
# Lets the install's pacman upgrade the system past the guard that stops
|
||||
# upgrades run without update (system/pacman-guard)
|
||||
export COREDESKTOP_ALLOW_PACMAN=1
|
||||
|
||||
# Ensure git is available before attempting to clone anything
|
||||
if ! command -v git &> /dev/null; then
|
||||
echo "Installing git..."
|
||||
@@ -103,7 +114,7 @@ cd ~/.local/share/coredesktop
|
||||
# Source utility functions (provides install_packages and other helpers)
|
||||
source utils.sh
|
||||
|
||||
# Install the refresh, update, sibling, version, configure, audit and report scripts to the user's bin
|
||||
# Install the refresh, update, sibling, version, configure, audit, report and webapp scripts to the user's bin
|
||||
mkdir -p ~/.local/bin
|
||||
install_script ~/.local/share/coredesktop/refresh ~/.local/bin/refresh
|
||||
install_script ~/.local/share/coredesktop/update ~/.local/bin/update
|
||||
@@ -112,6 +123,7 @@ install_script ~/.local/share/coredesktop/version ~/.local/bin/version
|
||||
install_script ~/.local/share/coredesktop/configure ~/.local/bin/configure
|
||||
install_script ~/.local/share/coredesktop/audit ~/.local/bin/audit
|
||||
install_script ~/.local/share/coredesktop/report ~/.local/bin/report
|
||||
install_script ~/.local/share/coredesktop/webapp ~/.local/bin/webapp
|
||||
|
||||
# Source the package list (defines SYSTEM_UTILS, DEV_TOOLS, DESKTOP, etc. arrays)
|
||||
if [ ! -f "packages.conf" ]; then
|
||||
@@ -255,6 +267,10 @@ bash ~/.local/share/coredesktop/system/firewall.sh
|
||||
echo "Configuring package mirrors..."
|
||||
bash ~/.local/share/coredesktop/system/mirrors.sh
|
||||
|
||||
# Stop full upgrades with pacman alone, which skip update's snapshot and checks
|
||||
echo "Configuring the pacman upgrade guard..."
|
||||
bash ~/.local/share/coredesktop/system/pacman-guard.sh
|
||||
|
||||
# Snapshot / before each update (btrfs only)
|
||||
echo "Configuring Snapper..."
|
||||
bash ~/.local/share/coredesktop/system/snapper.sh
|
||||
@@ -263,6 +279,10 @@ echo "Installing GPU drivers..."
|
||||
bash ~/.local/share/coredesktop/system/vulkan.sh
|
||||
bash ~/.local/share/coredesktop/system/nvidia.sh
|
||||
|
||||
# Wi-Fi country, Intel laptops' power daemons, Intel Wi-Fi 7 cards
|
||||
echo "Setting up for this hardware..."
|
||||
bash ~/.local/share/coredesktop/system/hardware.sh
|
||||
|
||||
# Prompt, zoxide, fzf key bindings, aliases and functions
|
||||
echo "Configuring the shell..."
|
||||
bash ~/.local/share/coredesktop/shell/setup.sh
|
||||
@@ -278,6 +298,13 @@ bash ~/.local/share/coredesktop/system/update-notify.sh
|
||||
echo "Configuring email password checks..."
|
||||
bash ~/.local/share/coredesktop/system/email-watch.sh
|
||||
|
||||
# Send and receive files on your Core's Tailscale network
|
||||
echo "Configuring Taildrop..."
|
||||
bash ~/.local/share/coredesktop/system/taildrop.sh
|
||||
|
||||
# Stop using a Tailscale exit node while signing in to a captive portal
|
||||
bash ~/.local/share/coredesktop/system/captive-portal.sh
|
||||
|
||||
# Apply GNOME dconf settings only if the settings file has changed since last run
|
||||
bash ~/.local/share/coredesktop/gnome/apply-gnome-settings.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user