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>
28 lines
831 B
Bash
Executable file
28 lines
831 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Workspace dispatcher helper — bash port of Caelestia's wsaction.fish.
|
|
# Installed to ~/.config/hypr/scripts/wsaction.fish (the path the stock
|
|
# keybinds.conf calls); runs as bash via this shebang.
|
|
# Usage: wsaction [-g] <dispatcher> <workspace>
|
|
|
|
group=0
|
|
if [[ "$1" == "-g" ]]; then
|
|
group=1
|
|
shift
|
|
fi
|
|
|
|
if [[ $# -ne 2 ]]; then
|
|
echo "Wrong number of arguments. Usage: wsaction [-g] <dispatcher> <workspace>" >&2
|
|
exit 1
|
|
fi
|
|
|
|
dispatcher="$1"
|
|
target="$2"
|
|
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
|
|
|
if (( group )); then
|
|
# Move to the same slot within workspace group <target>
|
|
hyprctl dispatch "$dispatcher" "$(( (target - 1) * 10 + active_ws % 10 ))"
|
|
else
|
|
# Move to workspace <target> within the current group
|
|
hyprctl dispatch "$dispatcher" "$(( (active_ws - 1) / 10 * 10 + target ))"
|
|
fi
|