Adds polybar

This commit is contained in:
Michel 2024-11-02 15:57:09 +01:00
parent 56921bfdcc
commit 0f0b9089a4
12 changed files with 1090 additions and 0 deletions

View 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("'")