NoSignal-OS/os updates/super-clipboard/super-copy
28allday 19fd794b6b NoSignal — fully-offline Arch → Hyprland desktop installer
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>
2026-06-21 11:03:10 +01:00

17 lines
711 B
Bash
Executable file

#!/usr/bin/env bash
# super-copy — make a single Super+C "copy" in every app.
#
# Wayland has no global copy; each app owns its own shortcut. Terminals use
# Ctrl+Shift+C (Ctrl+C is SIGINT); GUI apps use Ctrl+C. This sends the right
# one to the focused window using Hyprland's built-in `sendshortcut`
# dispatcher — no external tools (ydotool/wtype) required.
set -euo pipefail
cls=$(hyprctl activewindow -j 2>/dev/null | jq -r '.class // empty' | tr '[:upper:]' '[:lower:]')
case "$cls" in
*kitty*|*foot*|*ghostty*|*alacritty*|*wezterm*|*xterm*|*konsole*|*term*)
hyprctl dispatch sendshortcut "CTRL SHIFT, C, activewindow" ;;
*)
hyprctl dispatch sendshortcut "CTRL, C, activewindow" ;;
esac