Fix icons / yaml loader
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
46c5812910
commit
c7912aa7dc
2 changed files with 9 additions and 9 deletions
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
SYM_ADAPTER="$(printf '\ufba3')"
|
SYM_ADAPTER="$(printf '\U000f06a5')" # nf-md-power_plug
|
||||||
SYM_BATTERY="$(printf '\uf58d')"
|
SYM_BATTERY="$(printf '\U000f008e')" # nf-md-battery_outline
|
||||||
BATTERY=/sys/class/power_supply/BAT0
|
BATTERY=/sys/class/power_supply/BAT0
|
||||||
AC=/sys/class/power_supply/AC
|
AC=/sys/class/power_supply/AC
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ def check_ping_reachable(ip):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
config = yaml.load(open(Path('~/.config/i3-vpn.json').expanduser()))
|
config = yaml.safe_load(open(Path('~/.config/i3-vpn.json').expanduser()))
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
for check in config['checks']:
|
for check in config['checks']:
|
||||||
|
|
Loading…
Reference in a new issue