Skip to content

Conversation

@turannul
Copy link
Contributor

Pull Request

Motivation

I didn't noticed pingCheckProcess is unused, i found out today (my DNS Server crashed) | meantime I noticed doesn't work it didn't showed like i intended to.

Type of Change

Mark the relevant option with an "x".

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring

Testing

quickshell -vv -p shell.qml > "debug_$(date +%Y-%m-%d_%H-%M-%S).log" is running on background, i see my changes after reload delay.

  • Tested on niri
  • Tested on Hyprland
  • Tested on sway
  • Tested with different bar positions and density settings
  • Tested at different interface scaling values
  • Tested with multiple monitors (if applicable)

Checklist

  • Code follows project style guidelines
  • Self-reviewed my code
  • No new warnings or errors
  • Documentation or comments updated (if relevant)

Additional Notes

connectivityCheckTimer 15s I didn't changed but might be too short for connectivity check.
Also may cause too frequent pinging/spam behavior, might need somewhat smarter connectivity check logic...

- Replaced switch statement with cleaner if-else logic for connected status
- Removed raw 'none'/'unknown' status text exposure
- Properly handle 'portal', 'connected', and 'limited' states based on service properties
…ping

This ensures that even when nmcli reports 'full' connectivity, an actual ping check is performed to verify internet access. It also refactors the connectivity check loop to update status and trigger scans immediately on state changes.
@turannul turannul marked this pull request as draft December 27, 2025 12:41
@turannul
Copy link
Contributor Author

I need to know what i can do and what i can't do.

  • I personally hate polling like approach, pinging on regular basis is waste of resources, constantly spawning shell.
    The idea of fixing this connecting (and stay connected while in full state) to a server which is reliable eg (google.com) and ignore timeouts.
    Which i could have implemented as a separate python script and execute within NetworkService.qml.
    I'm open to suggestions other ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant