feat: implement hybrid declarative state with automatic Nix sync
Some checks failed
Check / eval-and-lint (push) Has been cancelled
Some checks failed
Check / eval-and-lint (push) Has been cancelled
This commit is contained in:
@@ -61,13 +61,10 @@ echo "Step 4: Choose your monitor scaling"
|
||||
echo "Recommended: 'auto' for most screens, '2' for 4K/HiDPI."
|
||||
SCALE=$(gum choose "auto" "1" "1.25" "1.5" "2")
|
||||
if [[ -n "$SCALE" ]]; then
|
||||
# Write to nested hyprland.scale key
|
||||
STATE_DIR="$HOME/.config/nomarchy"
|
||||
mkdir -p "$STATE_DIR"
|
||||
TMP_FILE=\$(mktemp)
|
||||
jq ".hyprland.scale = \"$SCALE\"" "\$STATE_FILE" > "\$TMP_FILE" && mv "\$TMP_FILE" "\$STATE_FILE"
|
||||
nomarchy-state-write "hyprland.scale" "$SCALE"
|
||||
fi
|
||||
|
||||
|
||||
# Skip system-modifying steps in the Live ISO environment
|
||||
if [[ "$USER" == "nixos" ]]; then
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user