Theme System: - Move all theme app configs to apps/ subdirectory (20 themes) - Add theme-loader.nix for dynamic theme config deployment - Simplify stylix.nix to focus on base theming only Override System: - Add overrides.nix for file-based config overrides - Add behavior-configs.nix for non-visual configuration - Split hypr/nomarchy.conf into behavior vs visual sections Module Improvements: - Add lib.mkDefault to all customizable settings - Add modules/lib/ with shared utilities and state schema - Update all home and system modules for downstream overridability Installer: - New minimal TTY installer (installer/install.sh) - Golden path: BTRFS + LUKS2 (disko-golden.nix) - New installer-iso.nix for TTY-only installation - Keep graphical installer as installerIsoGraphical option Cleanup: - Remove obsolete install.sh, disko-ext4.nix, install-nomarchy.sh - Update live-iso.nix references - Add .claude/ to .gitignore for local IDE settings Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
912 B
Bash
Executable File
31 lines
912 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Toggles the window gaps globally between no gaps and the default 10/5/2, declaratively and instantly.
|
|
|
|
STATE_DIR="$HOME/.config/nomarchy"
|
|
STATE_FILE="$STATE_DIR/state.json"
|
|
mkdir -p "$STATE_DIR"
|
|
|
|
if [ ! -f "$STATE_FILE" ]; then
|
|
echo "{}" > "$STATE_FILE"
|
|
fi
|
|
|
|
gaps=$(jq -r '.hyprland.gaps_out // 10' "$STATE_FILE")
|
|
|
|
if [[ $gaps == "0" ]]; then
|
|
NEW_STATE='{"gaps_out": 10, "gaps_in": 5, "border_size": 2}'
|
|
hyprctl keyword general:gaps_out 10
|
|
hyprctl keyword general:gaps_in 5
|
|
hyprctl keyword general:border_size 2
|
|
else
|
|
NEW_STATE='{"gaps_out": 0, "gaps_in": 0, "border_size": 0}'
|
|
hyprctl keyword general:gaps_out 0
|
|
hyprctl keyword general:gaps_in 0
|
|
hyprctl keyword general:border_size 0
|
|
fi
|
|
|
|
TMP_JSON=$(mktemp)
|
|
jq --argjson state "$NEW_STATE" '.hyprland = $state' "$STATE_FILE" > "$TMP_JSON" && mv "$TMP_JSON" "$STATE_FILE"
|
|
|
|
echo "Toggled gaps to $NEW_STATE declaratively."
|