polybar applet for showing connection status
-
Make sure
connection.sh
is in yourPATH
for example in/usr/local/bin/
-
copy following code inside your polybar's
modules.ini
[module/connection]
type = custom/script
exec = connection.sh
interval = 5
tail = true
format-padding = 1
- Add
connection
module to anymodule-*
option on polybar'sconfig.ini
, example code:
modules-center = connection
- Restart polybar
Feel free to chage the ips on connection.sh
to your needs :)