Repository navigation
v1.0.1
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.shnow checksxrandr.shexists, catches xrandr failures, and logs them to~/.config/display-profiles/debug.log set -euo pipefail— added to allbin/scripts so unhandled failures exit cleanly- Dependency checks —
require_cmd xrandradded 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_NAMEis now quoted in theExecline install.sh— now wires.githooks/viagit config core.hooksPathso the pre-push version bump hook is active for contributorsdisplay-apply-saved.sh— safe profile read underset -e(file existence check replacescatsuppression)- README — added
xrandr.shmanual 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