Single-script builder (nosignal.sh) that turns a stock Arch Linux ISO into a fully-offline installer for a themed Hyprland + caelestia (Quickshell) desktop: matching SDDM greeter, Btrfs/Limine bootable snapshots, chwd-style GPU detection, and a curated "os updates" layer (keybind cheatsheet, settings panels, system polish, on-box management skill). See README.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
26 lines
862 B
Bash
Executable file
26 lines
862 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# nosignal-screenshot — take a screenshot that is BOTH copied to the clipboard and
|
|
# saved to ~/Pictures/Screenshots. Modes:
|
|
# region (default) select an area with a crosshair cursor (slurp)
|
|
# full whole screen
|
|
# Deps: grim, slurp, wl-clipboard, libnotify (all in the base image).
|
|
set -euo pipefail
|
|
|
|
mode="${1:-region}"
|
|
dir="${XDG_PICTURES_DIR:-$HOME/Pictures}/Screenshots"
|
|
mkdir -p "$dir"
|
|
file="$dir/Screenshot_$(date +%Y-%m-%d_%H-%M-%S).png"
|
|
|
|
case "$mode" in
|
|
region)
|
|
geom="$(slurp)" || exit 0 # selection cancelled (Esc) -> do nothing
|
|
grim -g "$geom" "$file" ;;
|
|
full)
|
|
grim "$file" ;;
|
|
*)
|
|
echo "usage: nosignal-screenshot [region|full]" >&2; exit 1 ;;
|
|
esac
|
|
|
|
wl-copy < "$file"
|
|
notify-send -i "$file" -a nosignal-screenshot \
|
|
"Screenshot saved" "$(basename "$file") — copied to clipboard"
|