feat(hyprland): implement declarative monitor scaling and add scale picker to welcome wizard
Some checks failed
Check / eval-and-lint (push) Failing after 6m36s
Some checks failed
Check / eval-and-lint (push) Failing after 6m36s
This commit is contained in:
@@ -56,6 +56,18 @@ if [[ -n "$POSITION" ]]; then
|
||||
nomarchy-state-write panelPosition "$POSITION"
|
||||
fi
|
||||
|
||||
# 4. Select monitor scaling
|
||||
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"
|
||||
fi
|
||||
|
||||
# Skip system-modifying steps in the Live ISO environment
|
||||
if [[ "$USER" == "nixos" ]]; then
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user