mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-12-22 21:22:52 +00:00
574f5703c5
This is because the script cant be detected if it has an extension
11 lines
205 B
Python
Executable file
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) + "%")
|