From 98a1a1ea640e7846cefc3553332f0d140ae82272 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 6 Jul 2022 08:31:05 +0200 Subject: [PATCH] i3pystatus: add amdgpu and wifionice modules --- .config/i3pystatus/config.py | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/.config/i3pystatus/config.py b/.config/i3pystatus/config.py index ecc1a09..30f5c39 100644 --- a/.config/i3pystatus/config.py +++ b/.config/i3pystatus/config.py @@ -1,7 +1,7 @@ from i3pystatus import Status status = Status( - logfile='/dev/null', + logfile='/tmp/i3pystatus.log', ) status.register("pulseaudio", @@ -51,9 +51,10 @@ status.register("battery", status.register("load", format="{avg1}") - +status.register("amdgpu", + format="G: {temp}°C {gpu_usage}%") status.register("temp", - format="{temp:.0f}°C", + format="C: {temp:.0f}°C", hints={"markup": "pango"}, # lm_sensors_enable=True, dynamic_color=True) @@ -85,13 +86,25 @@ status.register("shell", on_leftclick="xinput enable 'SynPS/2 Synaptics TouchPad'", on_rightclick="xinput disable 'SynPS/2 Synaptics TouchPad'") -status.register("shell", - format="{output}", +status.register("wifionice", wifi_adapters=['wlp3s0']) +status.register("wifionice", hints = {"markup": "pango"}, - command="/home/kunsi/.config/i3pystatus/ice-status.py", - on_leftclick="/home/kunsi/.config/i3pystatus/ice-status.py --link", - ignore_empty_stdout=True, - interval=2) + travelynx_url='travelynx.franzi.business', + wifi_adapters=['wlp3s0'], + format_offtrain='Wann wieder Zug?', + format_ontrain='{speed}km/h > {next_station}[ ' + '\[{next_platform}\] {arrival_time} ' + '({arrival_in}[ | {delay_minutes}])][ ' + '(Net: {net_current} > [{net_duration}] ' + '{net_expected})]', + log_level='DEBUG') +#status.register("shell", +# format="{output}", +# hints = {"markup": "pango"}, +# command="/home/kunsi/.config/i3pystatus/ice-status.py", +# on_leftclick="/home/kunsi/.config/i3pystatus/ice-status.py --link", +# ignore_empty_stdout=True, +# interval=2) status.register("network", interface="wlp4s0",