oh-my-posh
oh-my-posh copied to clipboard
Considering support more network interface
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
What would you like to see changed/added?
Hope omp could support cellular network and cable networks, and hava a variable to identify which network is currently in use.
@LNKLEO unfortunately this isn't available from golang without a full custom implementation which goes beyond the scope of oh-my-posh. Pretty sure there's no language out there that supports this though as it requires a specific implementation per os. Even the Wifi segment here is only available for Windows (because there a contributor did it for us).
update some progress with you. without add more libs, I have found a native way on windows to get all network connections with types(wifi/cellular/bluetooth/etc.), and Link/Transmission speed, but no service provider for Cellular, SSID for wifi, signal strength for both. (while current way supports wifi.)
i tested on two of my computers, including wifi/cellular/wired/bluetooth, it looks good. but only problem is i cannot get priority of the networks.
my method using nearly the same way just like get wifi info.
I think i could merge this support into to network indicator first.
@LNKLEO did you look at win32 calls for this?
@LNKLEO did you look at win32 calls for this?
yes, it is win32 call
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.