@@ -13,53 +13,74 @@ Information=A clock skin that uses Ascii art fonts
13
13
@include =# @#Variables.inc
14
14
@include2 =# @#AsciiArtFonts\#AsciiFont#.inc
15
15
16
- ; time -------------------------------------------------------------
16
+ ; Time -------------------------------------------------------------
17
17
18
18
[MeasureTime]
19
19
Measure =Time
20
20
Format =# TimeFormat#
21
+ OnChangeAction =!CommandMeasure MeasureLua " SetMeasures()"
22
+
23
+ [MeasureLua]
24
+ Measure =Script
25
+ ScriptFile =AsciiClock.lua
21
26
22
27
; Digit Isolation--------------------------------------------------
23
28
24
- [MeasureHourFirst ]
29
+ [Measure1Char ]
25
30
Measure =String
26
- String =[MeasureTime]
27
- RegExpSubstitute =1
28
- Substitute =" ^.{0}(.).*$" :" \1"
29
31
DynamicVariables =1
30
32
31
- [MeasureHourSecond ]
33
+ [Measure2Char ]
32
34
Measure =String
33
- String =[MeasureTime]
34
- RegExpSubstitute =1
35
- Substitute =" ^.{1}(.).*$" :" \1"
36
35
DynamicVariables =1
37
36
38
- [MeasureMinuteFirst ]
37
+ [Measure3Char ]
39
38
Measure =String
40
- String =[MeasureTime]
41
- RegExpSubstitute =1
42
- Substitute =" ^.{2}(.).*$" :" \1"
43
39
DynamicVariables =1
44
40
45
- [MeasureMinuteSecond ]
41
+ [Measure4Char ]
46
42
Measure =String
47
- String =[MeasureTime]
48
- RegExpSubstitute =1
49
- Substitute =" ^.{3}(.).*$" :" \1"
50
43
DynamicVariables =1
51
44
45
+ ; [MeasureHourFirst]
46
+ ; Measure=String
47
+ ; String=[MeasureTime]
48
+ ; RegExpSubstitute=1
49
+ ; Substitute="^.{0}(.).*$":"\1"
50
+ ; DynamicVariables=1
51
+
52
+ ; [MeasureHourSecond]
53
+ ; Measure=String
54
+ ; String=[MeasureTime]
55
+ ; RegExpSubstitute=1
56
+ ; Substitute="^.{1}(.).*$":"\1"
57
+ ; DynamicVariables=1
58
+
59
+ ; [MeasureMinuteFirst]
60
+ ; Measure=String
61
+ ; String=[MeasureTime]
62
+ ; RegExpSubstitute=1
63
+ ; Substitute="^.{2}(.).*$":"\1"
64
+ ; DynamicVariables=1
65
+
66
+ ; [MeasureMinuteSecond]
67
+ ; Measure=String
68
+ ; String=[MeasureTime]
69
+ ; RegExpSubstitute=1
70
+ ; Substitute="^.{3}(.).*$":"\1"
71
+ ; DynamicVariables=1
72
+
52
73
; Font Convertion--------------------------------------------------
53
74
54
- [MeasureMinuteFirstAscii ]
75
+ [MeasureHourFirstAscii ]
55
76
Measure =String
56
- String =[MeasureMinuteFirst ]
77
+ String =[Measure1Char ]
57
78
Substitute =# AsciiFontFace#
58
79
DynamicVariables =1
59
80
60
- [MeasureMinuteSecondAscii ]
81
+ [MeasureHourSecondAscii ]
61
82
Measure =String
62
- String =[MeasureMinuteSecond ]
83
+ String =[Measure2Char ]
63
84
Substitute =# AsciiFontFace#
64
85
DynamicVariables =1
65
86
@@ -69,18 +90,26 @@ String=Colon
69
90
Substitute =# AsciiFontFace#
70
91
DynamicVariables =1
71
92
72
- [MeasureHourFirstAscii ]
93
+ [MeasureMinuteFirstAscii ]
73
94
Measure =String
74
- String =[MeasureHourFirst ]
95
+ String =[Measure3Char ]
75
96
Substitute =# AsciiFontFace#
76
97
DynamicVariables =1
77
98
78
- [MeasureHourSecondAscii ]
99
+ [MeasureMinuteSecondAscii ]
79
100
Measure =String
80
- String =[MeasureHourSecond ]
101
+ String =[Measure4Char ]
81
102
Substitute =# AsciiFontFace#
82
103
DynamicVariables =1
83
104
105
+ ; this is the only way i can get this not to spit out an error every second
106
+
107
+ [Measure1CharFix]
108
+ Measure =String
109
+ String =[Measure1Char]
110
+ Substitute =" " :" 1"
111
+ DynamicVariables =1
112
+
84
113
; Meter Config-----------------------------------------------------
85
114
86
115
[MeasureBlink]
@@ -91,27 +120,31 @@ Formula=MeasureBlink = 0 ? 255 : 0
91
120
FontFace =Jetbrains Mono
92
121
FontColor =# FontColor#
93
122
FontSize =# FontSize#
123
+ FontWeight =# FontWeight#
94
124
Padding =0,0,(# FontSize#*#AsciiFontPadding#),0
95
125
AntiAlias =1
96
126
X =R
97
127
DynamicVariables =1
98
128
99
129
; Meters-----------------------------------------------------------
100
130
101
- [MeterHourFirst ]
131
+ [MeterHourSecond ]
102
132
Meter =String
103
133
MeterStyle =TextStyle
104
- MeasureName =MeasureHourFirstAscii
134
+ X =((# Wmax#*2*#FontSize#)-[#W[&Measure2Char]]*#FontSize#)
135
+ MeasureName =MeasureHourSecondAscii
105
136
106
- [MeterHourSecond ]
137
+ [MeterHourFirst ]
107
138
Meter =String
108
139
MeterStyle =TextStyle
109
- MeasureName =MeasureHourSecondAscii
140
+ X =(-[# W[&Measure1CharFix]]*#FontSize#)r
141
+ MeasureName =MeasureHourFirstAscii
110
142
111
143
[MeterColon]
112
144
Meter =String
113
145
MeterStyle =TextStyle
114
146
FontColor =# FontColor#,[MeasureBlink]
147
+ X =(# Wmax#*2*#FontSize#)
115
148
MeasureName =MeasureColonAscii
116
149
117
150
[MeterMinuteFirst]
0 commit comments