-
Notifications
You must be signed in to change notification settings - Fork 0
Network
laiso edited this page Feb 22, 2024
·
1 revision
-
Type : custom/script
-
Description : Displays an icon representing the current network connection type (Wi-Fi, VPN, Ethernet, or unknown).
-
How to modify :
- Adjust the script
network.shto handle network detection and icon display as needed. - The
typevariable in the script is the icon that will be display in polybar. - Save the changes to the script and refresh or restart Polybar to apply the modifications.
- Adjust the script
-
Script Explanation :
The providednetwork.shscript checks the network connection status by sending a request tohttps://www.google.com.
If the response status is200, indicating a successful connection.
Then it proceeds to determine the type of connection (Wi-Fi, VPN, Ethernet, or unknown) based on the active network interfaces obtained usingnmcli. The appropriate icon is then selected and outputted to be displayed in the Polybar mod
- ๐ Home
- ๐ Intro
- โ๏ธ Installation
- Modules
- ๐ Battery
- ๐ Date
- ๐ Network
- โฏ๏ธ Player Control
- ๐ถ Song info
- ๐ Power Management
- ๐ PulseAudio
- Contributing
- About