i3pystatus: add amdgpu and wifionice modules

This commit is contained in:
Franzi 2022-07-06 08:31:05 +02:00
parent 2957373488
commit 98a1a1ea64
Signed by untrusted user: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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='<span color="#999999">{speed}km/h</span> > {next_station}[ '
'<span color="#999999">\[{next_platform}\]</span> {arrival_time} '
'({arrival_in}[ | <span color="#FF0000">{delay_minutes}</span>])][ '
'<span color="#999999">(Net: {net_current} > [{net_duration}] '
'{net_expected})</span>]',
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",