From 97f44f09b1d1dd39fcde30a35fdde66fdab9f592 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 12 Aug 2021 07:51:37 +0200 Subject: [PATCH] polybar-weather: don't use nm-online -s flag It only checks if network manager was online at some point in the past. --- bin/polybar-weather | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/polybar-weather b/bin/polybar-weather index f77bd0e..ebcf61a 100755 --- a/bin/polybar-weather +++ b/bin/polybar-weather @@ -146,10 +146,10 @@ if __name__ == "__main__": except requests.exceptions.ConnectionError: # Wait to be online logger.info("not online, waiting") - time.sleep(5) update_status("", options.output) + time.sleep(2) process = subprocess.run( - ["nm-online", "-s", "-q", "-t", str(options.online_timeout * 60)] + ["nm-online", "-q", "-t", str(options.online_timeout * 60)] ) if process.returncode != 0: logger.warning("not online, exiting")