update i3 status bar

This commit is contained in:
Franzi 2018-12-21 17:34:49 +01:00
parent 244f2b9265
commit 03e1d4cd1d
4 changed files with 38 additions and 2 deletions

15
.config/i3pystatus/rfkill-bt.py Executable file
View 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>')