oh-my-posh icon indicating copy to clipboard operation
oh-my-posh copied to clipboard

Considering support more network interface

Open LNKLEO opened this issue 2 years ago • 4 comments

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 avatar Aug 24 '22 05:08 LNKLEO

@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).

JanDeDobbeleer avatar Aug 24 '22 08:08 JanDeDobbeleer

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.)

Screenshot 2022-08-26 171033 - Copy Screenshot 2022-08-26 171033 Screenshot 2022-08-26 172706

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 avatar Aug 26 '22 09:08 LNKLEO

@LNKLEO did you look at win32 calls for this?

JanDeDobbeleer avatar Aug 26 '22 12:08 JanDeDobbeleer

@LNKLEO did you look at win32 calls for this?

yes, it is win32 call

LNKLEO avatar Aug 27 '22 04:08 LNKLEO

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.

github-actions[bot] avatar Dec 25 '23 00:12 github-actions[bot]