1
0
mirror of https://gitlab.com/linuxstuff/dotfiles.git synced 2026-06-20 04:30:53 +02:00

added script

This commit is contained in:
Simon
2021-03-13 15:44:48 +01:00
parent e6fef2f6d4
commit 43507d4808
@@ -0,0 +1,58 @@
#!/bin/python
# 1 󱑋 󱐿
# 2 󱑌 󱑀
# 3 󱑍 󱑁
# 4 󱑎 󱑂
# 5 󱑏 󱑃
# 6 󱑐 󱑄
# 7 󱑑 󱑅
# 8 󱑒 󱑆
# 9 󱑓 󱑇
# 10 󱑔 󱑈
# 11 󱑕 󱑉
# 12 󱑖 󱑊
import datetime
mappedChars = {
-1: "󰅚",
0: "󱑖",
1: "󱑋",
2: "󱑌",
3: "󱑍",
4: "󱑎",
5: "󱑏",
6: "󱑐",
7: "󱑑",
8: "󱑒",
9: "󱑓",
10: "󱑔",
11: "󱑕",
12: "󱑖",
13: "󱑋",
14: "󱑌",
15: "󱑍",
16: "󱑎",
17: "󱑏",
18: "󱑐",
19: "󱑑",
20: "󱑒",
21: "󱑓",
22: "󱑔",
23: "󱑕",
24: "󱑖",
}
def getHours():
return datetime.datetime.now().hour
def getSymbolByValue(value):
for char in mappedChars:
if(value < char):
return mappedChars[value]
return mappedChars[-1]
print(getSymbolByValue(getHours()))