mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 14:19:43 +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) + "%")
|