Skip to content

v1.0.1

Choose a tag to compare

@jordan-lee-code jordan-lee-code released this 22 Apr 01:45
· 23 commits to main since this release

What's changed

Hardening pass across all scripts — better error handling, input validation, and tooling fixes.

Improvements

  • Input validation — all index selections in display-new-profile.sh (resolution, refresh rate, primary, position) now re-prompt on invalid input instead of silently producing a broken profile
  • Error handling — display-switch.sh now checks xrandr.sh exists, catches xrandr failures, and logs them to ~/.config/display-profiles/debug.log
  • set -euo pipefail — added to all bin/ scripts so unhandled failures exit cleanly
  • Dependency checks — require_cmd xrandr added to scripts that need it, with an install hint on failure
  • Profile name notification — warns when spaces in a profile name are converted to hyphens
  • Desktop file fix — $PROFILE_NAME is now quoted in the Exec line
  • install.sh — now wires .githooks/ via git config core.hooksPath so the pre-push version bump hook is active for contributors
  • display-apply-saved.sh — safe profile read under set -e (file existence check replaces cat suppression)
  • README — added xrandr.sh manual editing example, clarified Cinnamenu path instructions, added xrandr failure troubleshooting entry

Debug log

xrandr failures are now recorded with a timestamp at:

~/.config/display-profiles/debug.log