Skip to content

Commit

Permalink
Merge pull request #2 from vitorgalvao/patch-1
Browse files Browse the repository at this point in the history
Update Workflow Environment Variables to User Configuration
  • Loading branch information
giovannicoppola committed Aug 7, 2022
2 parents 121ed10 + c0a163a commit 785fb50
Showing 1 changed file with 104 additions and 35 deletions.
139 changes: 104 additions & 35 deletions source/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@
<dict>
<key>delimiter</key>
<string>;;;</string>
<key>discardemptyarguments</key>
<false/>
<key>outputas</key>
<integer>0</integer>
<key>trimarguments</key>
<true/>
<key>variableprefix</key>
Expand Down Expand Up @@ -212,6 +216,10 @@ python3 almanac.py $1 "${LOCATION}"</string>
<dict>
<key>delimiter</key>
<string>;;;</string>
<key>discardemptyarguments</key>
<false/>
<key>outputas</key>
<integer>0</integer>
<key>trimarguments</key>
<true/>
<key>variableprefix</key>
Expand All @@ -229,6 +237,10 @@ python3 almanac.py $1 "${LOCATION}"</string>
<dict>
<key>delimiter</key>
<string>;;;</string>
<key>discardemptyarguments</key>
<false/>
<key>outputas</key>
<integer>0</integer>
<key>trimarguments</key>
<true/>
<key>variableprefix</key>
Expand All @@ -246,12 +258,14 @@ python3 almanac.py $1 "${LOCATION}"</string>
<dict>
<key>browser</key>
<string></string>
<key>skipqueryencode</key>
<false/>
<key>skipvarencode</key>
<false/>
<key>spaces</key>
<string></string>
<key>url</key>
<string>{var:split2}</string>
<key>utf8</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.action.openurl</string>
Expand All @@ -265,13 +279,13 @@ python3 almanac.py $1 "${LOCATION}"</string>
<string>- Launch `alfred-almanac` to retrieve weather and other almanac information from default locations ...
- ... or enter a location/ZIP code directly
- The default weather string will output:
- `%C` weather condition text
- `%c` weather condition
- 🌡️`%t` actual temperature
- `%f` 'feels like' temperature
- `%h` humidity
- 🌬️`%w` wind
- `%m` moon phase
- `%C` weather condition text
- `%c` weather condition
- 🌡️`%t` actual temperature
- `%f` 'feels like' temperature
- `%h` humidity
- 🌬️`%w` wind
- `%m` moon phase
- The almanac section will output:
- local date and time
- Current week of the year
Expand All @@ -287,66 +301,121 @@ python3 almanac.py $1 "${LOCATION}"</string>
<key>14649548-782E-42CF-BFB1-2F4A8F051301</key>
<dict>
<key>xpos</key>
<integer>565</integer>
<real>565</real>
<key>ypos</key>
<integer>90</integer>
<real>90</real>
</dict>
<key>3ACFA87D-7C7F-4FD2-B2BA-44B82E70C8BB</key>
<dict>
<key>xpos</key>
<integer>565</integer>
<real>565</real>
<key>ypos</key>
<integer>520</integer>
<real>520</real>
</dict>
<key>3B9C56F6-92CA-4E97-92EF-20C22F571619</key>
<dict>
<key>xpos</key>
<integer>125</integer>
<real>125</real>
<key>ypos</key>
<integer>305</integer>
<real>305</real>
</dict>
<key>5108E2BB-255E-495B-8724-D08BE7428EE4</key>
<dict>
<key>xpos</key>
<integer>565</integer>
<real>565</real>
<key>ypos</key>
<integer>305</integer>
<real>305</real>
</dict>
<key>9FAAF43A-64B2-4222-9BC4-476F44DB774E</key>
<dict>
<key>xpos</key>
<integer>350</integer>
<real>350</real>
<key>ypos</key>
<integer>335</integer>
<real>335</real>
</dict>
<key>AD98303D-D3C7-49B5-9333-ED86BD1D6FDF</key>
<dict>
<key>xpos</key>
<integer>350</integer>
<real>350</real>
<key>ypos</key>
<integer>225</integer>
<real>225</real>
</dict>
<key>F1D04340-4DE0-42CE-9668-77B9EC45BAB5</key>
<dict>
<key>xpos</key>
<integer>350</integer>
<real>350</real>
<key>ypos</key>
<integer>445</integer>
<real>445</real>
</dict>
</dict>
<key>variables</key>
<dict>
<key>FORMATSTRING</key>
<string>%C %c 🌡️%t (feels %f, %h) 🌬️%w %m</string>
<key>LOCATION</key>
<string>10282,Malibu, Naples</string>
<key>SPECIAL_DAY</key>
<string>03-14</string>
</dict>
<key>variablesdontexport</key>
<array/>
<key>userconfigurationconfig</key>
<array>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string>%C %c 🌡️%t (feels %f, %h) 🌬️%w %m</string>
<key>placeholder</key>
<string></string>
<key>required</key>
<false/>
<key>trim</key>
<true/>
</dict>
<key>description</key>
<string></string>
<key>label</key>
<string>Format</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
<string>FORMATSTRING</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string>10282, Malibu, Naples</string>
<key>placeholder</key>
<string></string>
<key>required</key>
<false/>
<key>trim</key>
<true/>
</dict>
<key>description</key>
<string></string>
<key>label</key>
<string>Location</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
<string>LOCATION</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string>03-14</string>
<key>placeholder</key>
<string></string>
<key>required</key>
<false/>
<key>trim</key>
<true/>
</dict>
<key>description</key>
<string></string>
<key>label</key>
<string>Special Day</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
<string>SPECIAL_DAY</string>
</dict>
</array>
<key>version</key>
<string>1.1</string>
<string>1.2</string>
<key>webaddress</key>
<string>https://github.com/giovannicoppola/alfred-almanac</string>
</dict>
Expand Down

0 comments on commit 785fb50

Please sign in to comment.