Implement multiple configuration profile support#5
Merged
Conversation
Added support for multiple configuration profiles, including options to create, list, and delete profiles. Updated help documentation and migrated legacy single config to a default profile.
Owner
|
Yeah, I knew this was something I needed to add. Thanks, you probably saved me a lot of time and headache patching this in. I’ll do multiple rounds of testing to confirm it is solid before merging to main. I don’t think it’s necessary to tag so many things as “NEW” or call out that the config was modified, so I’ll keep this commit, then follow up with another one that cleans up that extra text. Also ran a shellcheck and have an issue at line # 1812 I fixed that issue myself.. Going to test later |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implements a comprehensive multi-profile configuration system that allows
users to maintain multiple named configurations for different gaming
scenarios (e.g., different monitors, HDR/SDR setups, aspect ratios).
Key Features:
New Flags:
-c <profile>: Load and use specific profile immediately-L: List all available configuration profiles-D <profile>: Delete specified profile with confirmationModified Behavior:
-n: Now prompts for profile name when creating config-l: Uses tracked last profile instead of generic configImplementation Details:
Use Cases:
Example Usage:
smtty -n # Create new profile (prompts for name)
smtty -c gaming # Launch with 'gaming' profile
smtty -L # List all profiles
smtty -D old-config # Delete 'old-config' profile
Breaking Changes: None