1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

46 Commits

Author SHA1 Message Date
Chris Cummer
d9c362ee9f Make the line wrap settings for the Textfile module configurable via the 'wrapText' setting 2019-06-14 21:27:09 -07:00
Sean Smith
d8f337884f Add more 'man page' like functionality 2019-05-24 00:06:10 -04:00
Sean Smith
46c31103b8 Make widget name part of the output 2019-05-11 20:00:35 -04:00
Sean Smith
cd35d1e0a3 Re-add command line help 2019-05-11 19:47:59 -04:00
Chris Cummer
68ed842c87 Fix double-render of title in Weather 2019-05-10 08:42:37 -07:00
Sean Smith
018d2af3ae Add a global Redraw method for TextWidget
Partially addresses #429, by centralizing widget drawing
2019-05-10 08:42:37 -07:00
Sean Smith
bcf899df72 Further reduce usage of global
Bargraph moves to common settings
"Global" config moves out of wtf and into cfg for the few things that need it
We can probably eliminate a global config used across things if we want to
2019-04-27 22:26:23 -04:00
Sean Smith
5abd701b40 Decouple modules from global config
Rather than referencing wtc.Config, instead pass the global config
Also, look up config for the module early and pass that in sooner, to deal with fewer long paths and get rid of the
ConfigKey variable
2019-04-27 22:26:23 -04:00
Chris Cummer
a18625f427 Remove extraneous app.Draw() calls by having app.Draw() in its own routine 2019-04-23 20:33:03 -07:00
Chris Cummer
f60ce6967d Clean up TextWidget by simplifying the view creation 2019-04-23 19:59:51 -07:00
Chris Cummer
6fd9430ef8 WTF-400 TextWidget properly renders title again 2019-04-19 14:06:55 -07:00
Chris Cummer
59f0bc6cfc WTF-400 Partial conversion to new Common settings 2019-04-18 19:02:08 -07:00
Chris Cummer
f09d08bda2 WTF-400 Common settings implemented 2019-04-18 18:22:19 -07:00
Chris Cummer
aa313bdaa4 WTF-389 Log an exception and terminate if widget config is invalid
If, on startup, a widget's positional configuration is invalid (ie:
cannot be displayed onscreen) then terminate the app and inform about
which widget is erroring
2019-04-12 05:29:44 -07:00
Chris Cummer
c9c7e124cc WTF-389 Don't load widgets that have invalid position co-ordinates in their config 2019-04-12 05:00:40 -07:00
Mathias Weber
7d9dd56aaa add static hot key assignments for text widgets 2018-10-15 22:51:35 +02:00
Chris Cummer
a48d15079a Remove RefreshedAt from TextWidget
This attribute is used for absolutely nothing. It doesn't need to exist.
2018-10-11 17:12:29 -04:00
Chris Cummer
15968718af Todo modal shows up much faster now, looks better 2018-10-01 16:44:51 -07:00
Nicholas Eden
d05300d849 allow changing of title color 2018-09-26 23:33:08 -07:00
Nicholas Eden
c717cecff9 Add option to set background and text color on a module basis, resolves #307 2018-09-26 21:30:54 -07:00
Chris Cummer
f650bb1698 Remove the app.Draw() gorountine
Prefer to have widgets force a draw when their data changes. This should
reduce draws (unless the user has a module installed that updates >=
1/sec, the old draw default).

This should also remove a source of some of the race conditions that
users were experiencing (though not all, there are still many).
2018-09-24 14:40:57 -07:00
Chris Cummer
72c192cabf Clean up a bunch of if statements based on govet results 2018-08-03 05:40:39 -07:00
Chris Cummer
985c41d3b6 Improve styling on focusable character identifier 2018-07-30 22:31:30 -07:00
Chris Cummer
beb0c43b07 Add character identifiers to focusable widgets
When no widget has focus, press the letter key to focus on the widget
assigned to that letter.

Example:

    GitHub (d)

    Press "d" to focus on the GitHub widget.
2018-07-30 15:51:19 -07:00
Chris Cummer
66868a3f49 Unexport colorFor() function 2018-07-26 13:50:37 -07:00
Chris Cummer
23f53a06b9 Make Bargraph widget work with new module lazy-loading 2018-06-08 15:34:31 -07:00
Hossein Mehrabi
9b7f31877d added Disable method 2018-06-08 05:28:45 +04:30
Hossein Mehrabi
2de364a2ef read widget title from config file 2018-06-04 05:58:37 +04:30
Chris Cummer
9e49c18c44 Close #84. Add wtf.colors.background config option 2018-05-31 08:52:37 -07:00
Chris Cummer
cd5a7968c4 Fix bug with positioning in which I hard-coded the positions because....? 2018-05-18 12:35:59 -07:00
Chris Cummer
8bb9115538 A very basic start to adding some unit tests 2018-05-18 11:54:39 -07:00
Chris Cummer
a62b910893 Closes #43. Add CommandRunner module to the app.
CommandRunner allows you to define a terminal command and arguments, run
it on a schedule, and view the output.

Examples:

   ping -3 cisco.com
2018-05-17 17:15:03 -07:00
Chris Cummer
2ecd5e4b84 Closes #44. Cannot tab to disabled widgets. 2018-05-16 17:22:14 -07:00
Chris Cummer
7adc0cdb11 Bringing back the Status widget 2018-05-14 21:04:37 -07:00
Chris Cummer
4727255df6 Focusable widgets get their own border color 2018-05-02 14:27:18 -07:00
Chris Cummer
037c90db85 Widget#focus now a thing
Widgets can inform whether or not they should get tab focus.

Widgets that provide additional functionality should return true.

Widgets that have no extra capability should return false.

This allows the FocusTracker to only tab through and focus on widgets
for which it provides value.
2018-04-28 23:41:51 -07:00
Chris Cummer
3de253bd0d Better color config standardization. It's not just random anymore 2018-04-23 09:17:54 -07:00
Chris Cummer
12ef3919dc Cleanup of stray files. Don't need so many single-use packages 2018-04-18 17:51:43 -07:00
Chris Cummer
912de2fa11 Can focus/blur widgets (with focus border color) 2018-04-17 04:26:18 -07:00
Chris Cummer
693a04b5e1 Removed a bunch of common boilerplate code from widget initialization 2018-04-15 13:08:17 -07:00
Chris Cummer
27a267b123 Cleaner config format and added simple_config.yml example 2018-04-10 11:28:48 -07:00
Chris Cummer
01aab4cc53 wtf.Position into its own file 2018-04-08 05:04:33 -07:00
Chris Cummer
9bda045ce1 Streamlining the widget creation process a bit more. Coords into config 2018-04-07 23:36:05 -07:00
Chris Cummer
79bc8216d6 Don't display disabled widgets 2018-04-07 14:36:13 -07:00
Chris Cummer
ae13d52665 Enabled half-measure: widgets won't run if disabled (still need to not display) 2018-04-07 14:20:21 -07:00
Chris Cummer
b4bc6d4509 Remove a ton of duplication around TextView widget creation 2018-04-07 13:55:08 -07:00