-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add automated Git configuration, Nerd Fonts installer, and bootloader management scripts to linutil #309
Conversation
Sorry this inadvertently got added
Why are you removing cargo.lock? |
Co-authored-by: Nyx <[email protected]>
Co-authored-by: Nyx <[email protected]>
I hope the commits have fixed the issue.
warning: use of deprecated method `ratatui::Frame::<'_>::set_cursor`: the method set_cursor_position indicates more clearly what about the cursor to set
--> src/filter.rs:111:19
|
111 | frame.set_cursor(x, y);
| ^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated method `ratatui::Frame::<'_>::size`: use .area() as it's the more correct name
--> src/state.rs:81:26
|
81 | .split(frame.size());
| ^^^^
warning: `tui` (bin "linutil") generated 2 warnings |
@fam007e These need to be put on separate lines with |
@fam007e You're adding too many things into 1 PR I'd recommend splitting this up into multiple. |
OK I won't add anymore to this. |
- Reverted the previous changes made to Cargo.toml to maintain stability. - Kept the GPU compatibility check to ensure proper setup for NVIDIA GPUs using nvidia-dkms. - Added configuration to load necessary NVIDIA modules (nvidia, nvidia_modeset, nvidia_uvm, and nvidia_drm) for enhanced NVIDIA experience. - Implemented Pacman hooks to automatically regenerate initramfs after NVIDIA package transactions for smoother updates. - This setup provides a better NVIDIA experience for users who are not using the Cosmic Desktop with nvidia-lts.
…made to be presented in columns for better view
…mpliant methods like printf are used so colored text could be used which previously showed just numbers i.e. ANSI escape codes.
To remove the cosmic-setup.sh to minimize my PR size.
want to keep my binary and get main branch commits if possible
Sorry for the inconvenience. We had a massive restructure of the codebase to improve future development. Because of this can you update your PR to the new structure. Thank you for your assistance and contribution. |
- Fixed typo: corrected 'parrent' to 'parent' in hint.rs - Added color to linutil logo in state.rs - Updated preview image in README to show visual changes
@fam007e This needs to be rebased. |
❯ git pull origin main
From github.com:fam007e/linutil
* branch main -> FETCH_HEAD
Already up to date.
❯ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
❯ git rebase origin/main
Current branch main is up to date. Despite a successful rebase and a clean status, GitHub still indicates that there are conflicts. I’m perplexed by this. Here’s what I did:
As a result, the image in the I would appreciate any guidance on resolving this issue. |
Can you please split this PR into separate feature PRs |
I am going for the hard reset. I will make the fork again and make two batches of commits one is for the scripts and another for the |
Each of the script should be a separate PR so that it will be easy to check |
Type of Change
Description
This pull request introduces several new features to linutil:
Automated Git Configuration Script: This script helps users set up Git by configuring their GitHub email, SSH key (either Ed25519 or RSA), and copying the SSH key to the clipboard for easy GitHub integration. It checks for necessary tools like
xclip
and uses best practices for SSH key generation and GitHub authentication.Nerd Fonts Installer Script: This script automates the installation of Nerd Fonts by detecting the user’s Linux distribution and using the appropriate package manager to install dependencies (
curl
,tar
). It then provides an interactive prompt for selecting fonts, downloads them from GitHub, installs them locally, and refreshes the font cache. This feature simplifies the process of installing Nerd Fonts across different systems.Bootloader Switching and Backup Script: This new script facilitates seamless switching between GRUB and systemd-boot bootloaders. It includes:
Edited Logo: Used ANSI color from
ratatui
style's color and modifier to create a logo which is in depicted in readme.Minor correction of word "parent" in
hint.rs
is made.These changes aim to streamline user setup and enhance the configuration experience, making it easier for developers to quickly configure their environment and manage bootloader setups.
Testing
GRUB
andsystemd-boot
. Backup and restore functionalities have been verified.Impact
xclip
in the Git configuration script, and ensurescurl
andtar
are installed for the Nerd Fonts installer. The bootloader script uses common system tools and does not introduce additional runtime dependencies.Issue related to PR
system-setup
part of Linutil. #307Additional Information
Checklist