Fix icons / yaml loader

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-05-07 16:26:39 +02:00
parent 46c5812910
commit c7912aa7dc
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5
2 changed files with 9 additions and 9 deletions

View file

@ -1,8 +1,8 @@
#!/bin/bash
set -euo pipefail
SYM_ADAPTER="$(printf '\ufba3')"
SYM_BATTERY="$(printf '\uf58d')"
SYM_ADAPTER="$(printf '\U000f06a5')" # nf-md-power_plug
SYM_BATTERY="$(printf '\U000f008e')" # nf-md-battery_outline
BATTERY=/sys/class/power_supply/BAT0
AC=/sys/class/power_supply/AC

View file

@ -17,7 +17,7 @@ def check_ping_reachable(ip):
def main():
config = yaml.load(open(Path('~/.config/i3-vpn.json').expanduser()))
config = yaml.safe_load(open(Path('~/.config/i3-vpn.json').expanduser()))
results = []
for check in config['checks']: