-
Notifications
You must be signed in to change notification settings - Fork 1
Check aurhelper #12
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
Merged
Merged
Check aurhelper #12
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
df71d6f
Enhance setup script to support multiple AUR helpers
Firstp1ck 64f8aac
Enhance AUR helper checks in setup script
Firstp1ck 8e20f5a
Enhance mirror update functionality in setup script
Firstp1ck 7de2647
Enhance setup script to improve directory detection and Timeshift han…
Firstp1ck 287432e
Refactor setup script and UI for improved warning handling and remove…
Firstp1ck 6f5322e
Enhance PAM configuration handling in setup script and improve UI layout
Firstp1ck c8d1fe0
Refactor PAM configuration handling in setup script for improved clar…
Firstp1ck e3cfa01
Update pacman command and improve PAM configuration appending in setu…
Firstp1ck d766de5
Merge https://github.com/Firstp1ck/Hyprland-Simple-Setup into check-a…
Firstp1ck 757d827
Set AUR_HELPER_CHECKED to true for Windows in setup script
Firstp1ck 54c2151
Update .gitignore to exclude Documents directory and modify bug repor…
Firstp1ck 1c6077e
added rust workflow
Firstp1ck ab5de59
Adjusted setup script to improve command execution and cache removal …
Firstp1ck 2af41a1
Added conditional checks to skip dependency verification in the setup…
Firstp1ck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| <!-- Thank you for contributing to Hyprland-Simple-Setup! Please read CONTRIBUTING.md before submitting. --> | ||
|
|
||
| ## Summary | ||
| Briefly describe the problem and how your change solves it. | ||
|
|
||
| ## Type of change | ||
| - [ ] feat (new feature) | ||
| - [ ] fix (bug fix) | ||
| - [ ] docs (documentation only) | ||
| - [ ] refactor (no functional change) | ||
| - [ ] perf (performance) | ||
| - [ ] test (add/update tests) | ||
| - [ ] chore (build/infra/CI) | ||
| - [ ] ui (visual/interaction changes) | ||
| - [ ] breaking change (incompatible behavior) | ||
|
|
||
| ## Related issues | ||
| Closes # | ||
|
|
||
| ## How to test | ||
| List exact steps and commands to verify the change. Include flags like `--dry-run` when appropriate. | ||
|
|
||
| ```bash | ||
| # examples | ||
| cargo fmt --all | ||
| cargo clippy --all-targets --all-features -- -D warnings | ||
| cargo test -- --test-threads=1 | ||
| RUST_LOG=hyprland_setup_tui=debug cargo run -- --dry-run | ||
| ``` | ||
|
|
||
| ## Screenshots / recordings (if UI changes) | ||
| Include before/after images or a short GIF. Update files in `Images/` if relevant. | ||
|
|
||
| ## Checklist | ||
| - [ ] Code compiles locally | ||
| - [ ] `cargo fmt --all` ran without changes | ||
| - [ ] `cargo clippy --all-targets --all-features -- -D warnings` is clean | ||
| - [ ] `cargo test -- --test-threads=1` passes | ||
| - [ ] Added or updated tests where it makes sense | ||
| - [ ] Updated docs if behavior, options, or keybinds changed (README, config examples) | ||
| - [ ] For UI changes: included screenshots and updated `Images/` if applicable | ||
| - [ ] Changes respect `--dry-run` and degrade gracefully if `pacman`/`paru`/`yay` are unavailable | ||
| - [ ] Not a packaging change for AUR (otherwise propose in `hyprland-simple-setup-git` repos) | ||
|
|
||
| ## Notes for reviewers | ||
| Call out tricky areas, assumptions, edge cases, or follow-ups. | ||
|
|
||
| ## Breaking changes | ||
| Describe any breaking changes and migration steps (e.g., config key renames). | ||
|
|
||
| ## Additional context | ||
| Logs, links to discussions, design notes, or prior art. | ||
|
|
||
|
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name: Rust | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Build | ||
| run: cargo build --verbose | ||
| - name: Run tests | ||
| run: cargo test --verbose -- --test-threads=1 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,3 +16,5 @@ RELEASE.md | |
|
|
||
| # Added by cargo | ||
| /target | ||
|
|
||
| Documents/* | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| LOG_FILE="${HOME}/Linux-Setup.log" | ||
|
|
||
| # Give notification daemon a moment to start | ||
| sleep 3 | ||
|
|
||
| # If notify-send is unavailable, exit quietly | ||
| if ! command -v notify-send >/dev/null 2>&1; then | ||
| exit 0 | ||
| fi | ||
|
|
||
| # If log doesn't exist, nothing to check | ||
| [ -f "$LOG_FILE" ] || exit 0 | ||
|
|
||
| # Limit to warnings from the most recent run (after the last "Starting Hyprland Setup..." debug entry) | ||
| start_line=$(grep -n '\[DEBUG\] Starting Hyprland Setup\.\.\.' "$LOG_FILE" | tail -n1 | cut -d: -f1) | ||
| if [[ -n "$start_line" ]]; then | ||
| log_slice=$(tail -n +"$start_line" "$LOG_FILE") | ||
| else | ||
| log_slice=$(cat "$LOG_FILE") | ||
| fi | ||
|
|
||
| # Extract all WARNING messages from the selected slice and notify once per unique message. | ||
| # Log format: [YYYY-MM-DD HH:MM:SS] [WARNING] message... | ||
| mapfile -t warnings < <(awk '/\[WARNING\]/ { sub(/^.*\[WARNING\] /,""); msg=$0; if (!seen[msg]++) print msg }' <<< "$log_slice") | ||
|
|
||
| for w in "${warnings[@]}"; do | ||
| [ -n "$w" ] || continue | ||
| notify-send -u critical -t 0 "Hyprland Setup - Warning" "$w" | ||
| done | ||
|
|
||
|
|
||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.