mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-04 15:24:21 +02:00
weather: do not make it depend on polybar
It's not used only by polybar and can be run before or after it.
This commit is contained in:
parent
4ec09efa25
commit
45ee293d35
5 changed files with 7 additions and 9 deletions
|
@ -11,7 +11,7 @@ import subprocess
|
|||
import time
|
||||
from systemd import journal
|
||||
|
||||
logger = logging.getLogger("polybar-weather")
|
||||
logger = logging.getLogger("weather")
|
||||
|
||||
|
||||
def get_location():
|
||||
|
@ -95,7 +95,7 @@ def update_status(status, output):
|
|||
f.write(status)
|
||||
|
||||
# Send it to polybar
|
||||
subprocess.run(["polybar-msg", "action", f"#weather.send.{status}"], check=True)
|
||||
subprocess.run(["polybar-msg", "action", f"#weather.send.{status}"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
Loading…
Add table
Add a link
Reference in a new issue