Adds polybar
This commit is contained in:
parent
56921bfdcc
commit
0f0b9089a4
12 changed files with 1090 additions and 0 deletions
8
.config/polybar/scripts/storage/Utils.py
Normal file
8
.config/polybar/scripts/storage/Utils.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import string
|
||||
import subprocess
|
||||
|
||||
|
||||
def find_storage_usage(path: string) -> string:
|
||||
output = subprocess.check_output(['df', '-h', '--output=pcent', path])
|
||||
percentage: string = output.strip().__str__().split()[1]
|
||||
return percentage.strip("'")
|
||||
Loading…
Add table
Add a link
Reference in a new issue