dwmbar/modules/daypercentage
Baitinq 574f5703c5
Rename daypercentage.py to daypercentage
This is because the script cant be detected if it has an extension
2021-12-21 23:31:37 +00:00

11 lines
205 B
Python
Executable file

#!/usr/bin/env python3
PREFIX = ''
import datetime
now = datetime.datetime.now()
minutes = now.hour * 60 + now.minute
percentage = round(minutes * 100 / 1440)
print(PREFIX + str(percentage) + "%")