mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 04:20:03 +02:00
polybar-weather: wait longer before checking nm-online
This commit is contained in:
parent
8fd82af49f
commit
6207bc2c7e
1 changed files with 1 additions and 1 deletions
|
@ -145,8 +145,8 @@ if __name__ == "__main__":
|
|||
location = get_location()
|
||||
except requests.exceptions.ConnectionError:
|
||||
# Wait to be online
|
||||
time.sleep(2)
|
||||
logger.info("not online, waiting")
|
||||
time.sleep(5)
|
||||
update_status("", options.output)
|
||||
process = subprocess.run(
|
||||
["nm-online", "-s", "-q", "-t", str(options.online_timeout * 60)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue