From d5504277564bc10e78bf2de0f6870ff8bfab3aa6 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Mon, 18 Sep 2023 09:15:43 +0200 Subject: [PATCH] v2.4.1 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/internet-connection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pwnagotchi/plugins/default/internet-connection.py b/pwnagotchi/plugins/default/internet-connection.py index 3b5cacd9..4904f1cf 100644 --- a/pwnagotchi/plugins/default/internet-connection.py +++ b/pwnagotchi/plugins/default/internet-connection.py @@ -30,7 +30,7 @@ class InternetConnectionPlugin(plugins.Plugin): with ui._lock: # add a LabeledValue element to the UI with the given label and value # the position and font can also be specified - ui.add_element('connection_status', components.LabeledValue(color=view.BLACK, label='Internet:', value='', + ui.add_element('connection_status', components.LabeledValue(color=view.BLACK, label='', value='', position=(0, 30), label_font=fonts.Small, text_font=fonts.Small)) @@ -41,7 +41,7 @@ class InternetConnectionPlugin(plugins.Plugin): # use the 'ping' command to check if we can reach a well-known website output = subprocess.check_output(['ping', '-c', '1', 'google.com']) # if the command was successful, it means there is an active Internet connection - ui.set('connection_status', 'Connected') + ui.set('connection_status', ' connected') except subprocess.CalledProcessError: # if the command failed, it means there is no active Internet connection - ui.set('connection_status', 'Disconnected') + ui.set('connection_status', ' disconnected')