mirror of
https://github.com/FAUSheppy/config
synced 2025-12-09 08:08:32 +01:00
improved statusbar refresh time by reducing critical write time
This commit is contained in:
@@ -173,9 +173,9 @@ def pr_acct_status():
|
|||||||
|
|
||||||
def bc_words():
|
def bc_words():
|
||||||
try:
|
try:
|
||||||
with open(hl_utils.hlpath(BC_WORD_LOG),'w') as g:
|
|
||||||
tmp = len(hl_utils.shexec("pdftotext {} -".format(\
|
tmp = len(hl_utils.shexec("pdftotext {} -".format(\
|
||||||
hl_utils.hlpath(".bcpdf",use_hostname=False))).split(" "))
|
hl_utils.hlpath(".bcpdf",use_hostname=False))).split(" "))
|
||||||
|
with open(hl_utils.hlpath(BC_WORD_LOG),'w') as g:
|
||||||
g.write(str(tmp))
|
g.write(str(tmp))
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
pass
|
pass
|
||||||
@@ -213,8 +213,9 @@ def vpn_status():
|
|||||||
|
|
||||||
def battery_status():
|
def battery_status():
|
||||||
if hl_utils.is_laptop():
|
if hl_utils.is_laptop():
|
||||||
|
stat = battery()
|
||||||
with open(hl_utils.hlpath(BATTERY_LOG),'w') as g:
|
with open(hl_utils.hlpath(BATTERY_LOG),'w') as g:
|
||||||
g.write(battery())
|
g.write(stat)
|
||||||
|
|
||||||
last_ip="LOL"
|
last_ip="LOL"
|
||||||
def ip_status():
|
def ip_status():
|
||||||
|
|||||||
Reference in New Issue
Block a user