update i3 status bar
This commit is contained in:
parent
244f2b9265
commit
03e1d4cd1d
4 changed files with 38 additions and 2 deletions
BIN
.config/i3pystatus/__pycache__/config.cpython-37.pyc
Normal file
BIN
.config/i3pystatus/__pycache__/config.cpython-37.pyc
Normal file
Binary file not shown.
|
@ -54,7 +54,7 @@ status.register("battery",
|
|||
})
|
||||
|
||||
status.register("load",
|
||||
format="{avg1} {avg5}")
|
||||
format="{avg1}")
|
||||
|
||||
#status.register("temp",
|
||||
# format="{Package_id_0:.0f}°C {fan0:.0f}rpm",
|
||||
|
@ -63,7 +63,13 @@ status.register("load",
|
|||
|
||||
status.register("shell",
|
||||
format="{output}",
|
||||
command="/home/kunsi/.config/i3pystatus/rfkill.py",
|
||||
hints = {"markup": "pango"},
|
||||
command="/home/kunsi/.config/i3pystatus/rfkill-wifi.py",
|
||||
interval=1)
|
||||
status.register("shell",
|
||||
format="{output}",
|
||||
hints = {"markup": "pango"},
|
||||
command="/home/kunsi/.config/i3pystatus/rfkill-bt.py",
|
||||
interval=1)
|
||||
|
||||
status.register("network",
|
||||
|
|
15
.config/i3pystatus/rfkill-bt.py
Executable file
15
.config/i3pystatus/rfkill-bt.py
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import pyric.utils.rfkill as rfkill
|
||||
import sys
|
||||
|
||||
devices = rfkill.rfkill_list()
|
||||
|
||||
if devices['tpacpi_bluetooth_sw']['hard']:
|
||||
bt = '#FF0000'
|
||||
elif devices['tpacpi_bluetooth_sw']['soft']:
|
||||
bt = '#FF9900'
|
||||
else:
|
||||
bt = '#00FF00'
|
||||
|
||||
print(f'<span color="{bt}">BT</span>')
|
15
.config/i3pystatus/rfkill-wifi.py
Executable file
15
.config/i3pystatus/rfkill-wifi.py
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import pyric.utils.rfkill as rfkill
|
||||
import sys
|
||||
|
||||
devices = rfkill.rfkill_list()
|
||||
|
||||
if devices['phy0']['hard']:
|
||||
wlan = '#FF0000'
|
||||
elif devices['phy0']['soft']:
|
||||
wlan = '#FF9900'
|
||||
else:
|
||||
wlan = '#00FF00'
|
||||
|
||||
print(f'<span color="{wlan}">WLAN</span>')
|
Loading…
Reference in a new issue