diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..ca3324c1 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +max_line_length=120 + +[*.go] +indent_style = tab +indent_size = 4 +charset = utf-8 +trim_trailing_whitespace = true + +[*.html] +indent_style = tab +indent_size = 4 +charset = utf-8 +trim_trailing_whitespace = false + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore index d5e25ce0..7ff72253 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,21 @@ +### Go ### +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, build with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Misc .DS_Store gcal/client_secret.json +#intellij idea +.idea/ + +dist/* diff --git a/_site/content/posts/configuration/attributes.md b/_site/content/posts/configuration/attributes.md index 93e7c3bb..2850875e 100644 --- a/_site/content/posts/configuration/attributes.md +++ b/_site/content/posts/configuration/attributes.md @@ -72,7 +72,8 @@ change.
Values: A positive integer, `0..n`. `term`
-This value is _optional_. Sets a custom value for the terminal type this app runs in. Leave this entry out of the config if you simply want to use your terminal's +_Optional_.
+Sets a custom value for the terminal type this app runs in. Leave this entry out of the config if you simply want to use your terminal's default setting.
**Note:** If an invalid value is provided for this setting, the app will crash with a `"terminal entry not found"` error.
diff --git a/_site/content/posts/modules/ipinfo.md b/_site/content/posts/modules/ipinfo.md index 5d54247d..4894706a 100644 --- a/_site/content/posts/modules/ipinfo.md +++ b/_site/content/posts/modules/ipinfo.md @@ -6,6 +6,8 @@ draft: false Displays your current IP address information, from ipinfo.io. +ipinfo screenshot + ## Source Code ```bash diff --git a/_site/content/posts/modules/prettyweather.md b/_site/content/posts/modules/prettyweather.md new file mode 100644 index 00000000..3a11fe8f --- /dev/null +++ b/_site/content/posts/modules/prettyweather.md @@ -0,0 +1,64 @@ +--- +title: "Prettyweather" +date: 2018-06-02T05:32:04-07:00 +draft: false +--- + +**🔬 Experimental** + +Displays weather information as ASCII art from +[Wttr.in](http://wttr.in). + +prettyweather screenshot + +## Source Code + +```bash +wtf/prettyweather/ +``` + +## Required ENV Variables + +None. + +## Keyboard Commands + +None. + +## Configuration + +```yaml + prettyweather: + enabled: true + city: "tehran" + position: + top: 3 + left: 5 + height: 1 + width: 1 + refreshInterval: 300 + unit: "c" +``` + +### Attributes + +`city`
+_Optional_. It will grab the current location from your IP address if +omitted.
+Values: The name of any city supported by [Wttr.in](http://wttr.in). + +`enabled`
+Determines whether or not this module is executed and if its data displayed onscreen.
+Values: `true`, `false`. + +`position`
+Defines where in the grid this module's widget will be displayed.
+ +`refreshInterval`
+How often, in seconds, this module will update its data.
+Values: A positive integer, `0..n`. + +`unit`
+_Optional_. It will use metric if you are out of US and imperial for US.
+The temperature scale in which to display temperature values.
+Values: `F` for Fahrenheit, `C` for Celcius. diff --git a/_site/static/imgs/modules/ipinfo.png b/_site/static/imgs/modules/ipinfo.png new file mode 100644 index 00000000..45eb5831 Binary files /dev/null and b/_site/static/imgs/modules/ipinfo.png differ diff --git a/_site/static/imgs/modules/prettyweather.png b/_site/static/imgs/modules/prettyweather.png new file mode 100644 index 00000000..77c06b7b Binary files /dev/null and b/_site/static/imgs/modules/prettyweather.png differ diff --git a/_site/themes/hyde-hyde/layouts/partials/sidebar.html b/_site/themes/hyde-hyde/layouts/partials/sidebar.html index 7c581c66..8f91fd8e 100644 --- a/_site/themes/hyde-hyde/layouts/partials/sidebar.html +++ b/_site/themes/hyde-hyde/layouts/partials/sidebar.html @@ -33,6 +33,7 @@ + diff --git a/dist/CHANGELOG.md b/dist/CHANGELOG.md deleted file mode 100644 index f39e40aa..00000000 --- a/dist/CHANGELOG.md +++ /dev/null @@ -1,23 +0,0 @@ -## Changelog - -f23ac85 Fixes bug with default configuration YAML -3e004fd Fix a speling mistake in the documentation -641dce9 Add Configuration and Keyboard Commands to Overview documentation. -ff49ecb Closes #29. wtf.go --help [module name] returns help text if any is available. -9e9ef93 Update the readme -38cf1d5 Security module now displays logged-in users -efaccc8 Added Overview page to documentation -5d66b2a Improve the state of the Makefile a bit -ca4d6f2 Add 'make dependencies' to the Makefile -cd5a796 Fix bug with positioning in which I hard-coded the positions because....? -374832f Update the readme -ca81908 Add dramatic marketing emphasis to site homepage -216a313 Clean up the site sideabar -8bb9115 A very basic start to adding some unit tests -c190a44 Updated the screenshot to show all the modules -e2c27ab Add installation instructions to documentation -ca7d867 h2 styling in the site -0d1c9ca Add documentation for CmdRunner -a62b910 Closes #43. Add CommandRunner module to the app. -c3f1402 WIP -a6dce55 Update the doc site diff --git a/dist/config.yaml b/dist/config.yaml deleted file mode 100644 index 4867485a..00000000 --- a/dist/config.yaml +++ /dev/null @@ -1,73 +0,0 @@ -project_name: wtf -release: - github: - owner: senorprogrammer - name: wtf - name_template: '{{.Tag}}' -brew: - name: wtf - commit_author: - name: goreleaserbot - email: goreleaser@carlosbecker.com - install: bin.install "wtf" -scoop: - commit_author: - name: goreleaserbot - email: goreleaser@carlosbecker.com -builds: -- goos: - - darwin - - linux - goarch: - - amd64 - goarm: - - "6" - targets: - - darwin_amd64 - - linux_amd64 - main: . - ldflags: - - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} - binary: wtf - lang: go -archive: - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm - }}v{{ .Arm }}{{ end }}' - format: tar.gz - files: - - licence* - - LICENCE* - - license* - - LICENSE* - - readme* - - README* - - changelog* - - CHANGELOG* -nfpm: - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm - }}v{{ .Arm }}{{ end }}' - bindir: /usr/local/bin -snapcraft: - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm - }}v{{ .Arm }}{{ end }}' -snapshot: - name_template: SNAPSHOT-{{ .Commit }} -checksum: - name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' -dist: dist -sign: - cmd: gpg - args: - - --output - - $signature - - --detach-sig - - $artifact - signature: ${artifact}.sig - artifacts: none -env_files: - github_token: ~/.config/goreleaser/github_token -before: - hooks: - - make install -github_urls: - download: https://github.com diff --git a/dist/darwin_amd64/wtf b/dist/darwin_amd64/wtf deleted file mode 100755 index eac12e4b..00000000 Binary files a/dist/darwin_amd64/wtf and /dev/null differ diff --git a/dist/linux_amd64/wtf b/dist/linux_amd64/wtf deleted file mode 100755 index cef0d13b..00000000 Binary files a/dist/linux_amd64/wtf and /dev/null differ diff --git a/dist/wtf_0.0.3_checksums.txt b/dist/wtf_0.0.3_checksums.txt deleted file mode 100644 index f88d94a2..00000000 --- a/dist/wtf_0.0.3_checksums.txt +++ /dev/null @@ -1,2 +0,0 @@ -0167b691f57126d3a5cd6ffb4a6ba6115a9b3c5a48541db370530761400b9a21 wtf_0.0.3_linux_amd64.tar.gz -9905629c87fef6c3483bbdd1f8fcf69f4821da9aa80f05b22a8162a063c7905f wtf_0.0.3_darwin_amd64.tar.gz diff --git a/dist/wtf_0.0.3_darwin_amd64.tar.gz b/dist/wtf_0.0.3_darwin_amd64.tar.gz deleted file mode 100644 index 114b8c76..00000000 Binary files a/dist/wtf_0.0.3_darwin_amd64.tar.gz and /dev/null differ diff --git a/dist/wtf_0.0.3_linux_amd64.tar.gz b/dist/wtf_0.0.3_linux_amd64.tar.gz deleted file mode 100644 index e9fee4d2..00000000 Binary files a/dist/wtf_0.0.3_linux_amd64.tar.gz and /dev/null differ diff --git a/docs/404.html b/docs/404.html index c4f18f4d..4eed2f2b 100644 --- a/docs/404.html +++ b/docs/404.html @@ -74,6 +74,7 @@ + diff --git a/docs/categories/index.html b/docs/categories/index.html index b1bbd4b5..263164e0 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -76,6 +76,7 @@ + diff --git a/docs/imgs/modules/ipinfo.png b/docs/imgs/modules/ipinfo.png new file mode 100644 index 00000000..45eb5831 Binary files /dev/null and b/docs/imgs/modules/ipinfo.png differ diff --git a/docs/imgs/modules/prettyweather.png b/docs/imgs/modules/prettyweather.png new file mode 100644 index 00000000..77c06b7b Binary files /dev/null and b/docs/imgs/modules/prettyweather.png differ diff --git a/docs/index.html b/docs/index.html index 86aa7fad..99ae1e75 100644 --- a/docs/index.html +++ b/docs/index.html @@ -75,6 +75,7 @@ + diff --git a/docs/index.xml b/docs/index.xml index 70822fdc..ccf66010 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -6,11 +6,27 @@ Recent content on WTF - A Terminal Dashboard Hugo -- gohugo.io en-us - Fri, 01 Jun 2018 23:18:48 -0700 + Sat, 02 Jun 2018 05:32:04 -0700 + + Prettyweather + https://wtfutil.com/posts/modules/prettyweather/ + Sat, 02 Jun 2018 05:32:04 -0700 + + https://wtfutil.com/posts/modules/prettyweather/ + 🔬 Experimental +Displays weather information as ASCII art from Wttr.in. +Source Code wtf/prettyweather/ Required ENV Variables None. +Keyboard Commands None. +Configuration prettyweather:enabled:truecity:"tehran"position:top:3left:5height:1width:1refreshInterval:300unit:"c" Attributes city Optional. It will grab the current location from your IP address if omitted. +Values: The name of any city supported by Wttr.in. +enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false. +position Defines where in the grid this module’s widget will be displayed. + + Module: IPInfo https://wtfutil.com/posts/modules/ipinfo/ diff --git a/docs/posts/configuration/attributes/index.html b/docs/posts/configuration/attributes/index.html index cd62fe89..76a1a2cb 100644 --- a/docs/posts/configuration/attributes/index.html +++ b/docs/posts/configuration/attributes/index.html @@ -74,6 +74,7 @@ + @@ -174,7 +175,8 @@ change.
Values: A positive integer, 0..n.

term
-This value is optional. Sets a custom value for the terminal type this app runs in. Leave this entry out of the config if you simply want to use your terminal’s +Optional.
+Sets a custom value for the terminal type this app runs in. Leave this entry out of the config if you simply want to use your terminal’s default setting.
Note: If an invalid value is provided for this setting, the app will crash with a "terminal entry not found" error.
diff --git a/docs/posts/configuration/index.html b/docs/posts/configuration/index.html index 63d7284f..ddf6f629 100644 --- a/docs/posts/configuration/index.html +++ b/docs/posts/configuration/index.html @@ -74,6 +74,7 @@

+ diff --git a/docs/posts/configuration/iterm2/index.html b/docs/posts/configuration/iterm2/index.html index 818fe5b5..5c395343 100644 --- a/docs/posts/configuration/iterm2/index.html +++ b/docs/posts/configuration/iterm2/index.html @@ -74,6 +74,7 @@ + diff --git a/docs/posts/glossary/index.html b/docs/posts/glossary/index.html index b3f10ccf..d4533935 100644 --- a/docs/posts/glossary/index.html +++ b/docs/posts/glossary/index.html @@ -74,6 +74,7 @@ + diff --git a/docs/posts/index.html b/docs/posts/index.html index ff7ee96b..7409e432 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -76,6 +76,7 @@ + @@ -96,6 +97,13 @@

Posts