Added more recording options #72
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Pull Request: Refactor and Extend
recordSubcommand in Caelestia CLIThis pull request refactors and extends the
recordsubcommand in the Caelestia CLI, improving flexibility, reliability, and user experience for screen recording. It introduces granular video and audio options, robust device handling, enhanced notifications, and cleaner code formatting.Enhancements to
recordsubcommandGranular recording modes:
fullscreen,region,windownone,mic,system,combinedThese replace previous simpler options, allowing more flexible recording scenarios, such as tutorials, presentations, or system-only captures.
Improved audio device selection:
get_audio_devicemethod that validates device availability and provides fallbacks, increasing reliability when recording audio.Backward compatibility:
--soundare still supported for users upgrading from older versions.User Experience Improvements
Status and control flags:
--statusto check ongoing recording--stopto terminate a recording gracefullyEnhanced notifications:
Error handling improvements:
Code Quality and Maintainability
Usage Example Screenshot
These changes make the
recordsubcommand more robust, flexible, and suitable for tutorials or professional recording workflows.The changes work well with the shell fork on my repo: Caelestia Shell and can be forked and compiled directly.