Dotfiles-dwm/dwmbar/modules/daypercentage
2024-06-02 14:02:06 +03:00

12 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) + "%")