Add upgrade safeguards, hardware setup, sign-in options and Taildrop from Omarchy
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:
2026-11-16 12:08:06 -07:00
co-authored by Claude Opus 5.5
parent 5d7db2cdc8
commit 9dc5eb193d
32 changed files with 1809 additions and 9 deletions
+52
View File
@@ -0,0 +1,52 @@
#!/bin/bash
#
# Purpose : Files' right-click Scripts > "Send with Tailscale": send the
# selected files with Taildrop to a computer you choose on your
# Tailscale network. system/taildrop.sh installs it in Nautilus'
# scripts folder. Also works from a terminal:
# send-with-tailscale file...
files=()
if [ -n "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]; then
mapfile -t files <<< "${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS%$'\n'}"
else
files=("$@")
fi
fail() {
notify-send --app-name=Tailscale --icon=dialog-error "$1" "$2"
exit 1
}
regular=()
for file in "${files[@]}"; do
[ -f "$file" ] && regular+=("$file")
done
(( ${#regular[@]} > 0 )) || fail "Nothing to send" "Taildrop sends files, not folders. Choose files."
# Lines of "address<TAB>name" for the computers that can take files
mapfile -t targets < <(tailscale file cp --targets 2> /dev/null)
(( ${#targets[@]} > 0 )) \
|| fail "No computer to send to" "None of your computers on your Tailscale network is online to take files."
rows=()
for target in "${targets[@]}"; do
IFS=$'\t' read -r address name _ <<< "$target"
rows+=("$name" "$address")
done
address="$(zenity --list --title="Send with Tailscale" --text="Send ${#regular[@]} file(s) to:" \
--column=Computer --column=Address --print-column=2 --hide-column=2 --height=360 "${rows[@]}")" || exit 0
[ -n "$address" ] || exit 0
for (( i = 1; i < ${#rows[@]}; i += 2 )); do
[ "${rows[$i]}" = "$address" ] && name="${rows[$((i - 1))]}"
done
if error="$(tailscale file cp --update-interval=0 -- "${regular[@]}" "$address:" 2>&1)"; then
if (( ${#regular[@]} == 1 )); then
notify-send --app-name=Tailscale --icon=document-send "Sent to $name" "$(basename "${regular[0]}")"
else
notify-send --app-name=Tailscale --icon=document-send "Sent to $name" "${#regular[@]} files"
fi
else
fail "Couldn't send to $name" "$error"
fi