Add dotfiles
This commit is contained in:
parent
49bfe1a4d3
commit
b6e01a720b
52 changed files with 4701 additions and 0 deletions
11
dwmbar/modules/daypercentage
Executable file
11
dwmbar/modules/daypercentage
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/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) + "%")
|
Loading…
Add table
Add a link
Reference in a new issue