Chris Cummer
12e4260c84
Merge branch 'master' into master
2018-06-19 10:11:36 -07:00
Chris Cummer
bb01ddf93d
Merge branch 'master' into gcal-until-update
2018-06-19 07:09:12 -07:00
Chris Cummer
a0f820e205
Add a note about logging writing to file even if widget is disabled
2018-06-19 07:07:45 -07:00
Chris Cummer
2d6271650b
Merge pull request #215 from anandsudhir/rename-logging-logger
...
Fix documentation for logging module
2018-06-19 07:05:18 -07:00
Anand Sudhir Prayaga
65ef6fc9eb
Rename widget logging to logger to maintain consistency
2018-06-19 14:22:08 +02:00
Anand Sudhir Prayaga
95cd6ee23c
Fix documentation for logging module
2018-06-19 11:10:29 +02:00
Bryan Austin
1077adbff2
Update GCal module's "time until event" text more frequently
...
While it's reasonable to have a refresh interval of several minutes
between the GCal module hitting the server, the fact that the module
(helpfully) displays the time until an event means that as times
approach zero, they become relatively inaccurate - "3m" might show
up next to a meeting that you were supposed to be in 2 minutes ago.
(don't worry, that hasn't happened to me yet)
This change introduces a goroutine to the GCal module that will
update the module text using the most recently cached copy of
events. By default, it runs every 30 seconds (this could be changed
to 0 to make it opt-in if desired) or however many seconds is
specified by the new config option `wtf.mods.gcal.textInterval`.
To make sure the goroutine doesn't cause any synchronization issues
if a text update were to trigger at the same time as a module
refresh, this change also adds the use of `sync.Mutex` to gate
setting GCal's text. Since both mutexes and having a goroutine within
individual modules are not the sort of thing any other code in
`wtf` does at this point in time, I'm definitely open to feedback
on whether there might be better ways to do this.
Additionally, the change in `wtf.go` fixes an issue I noticed when
testing if my `Disable()` function worked - the main `Widgets`
array wasn't being cleared out after disabling all widgets before
re-creating new copies of them, so it still held pointers to the
old ones.
2018-06-18 17:45:04 -07:00
Chris Cummer
7acb426978
Merge branch 'master' into master
2018-06-18 14:10:37 -07:00
retgits
e6d45e4eeb
Added trello widget
2018-06-18 13:38:24 -07:00
Chris Cummer
8a0ace3837
Reset permissions on files that were incorrectly set to executable
2018-06-18 08:48:49 -07:00
Chris Cummer
f879cb18e9
Take another attempt to fix the badges
2018-06-17 15:01:22 -07:00
Chris Cummer
c37e73e168
Attempt to fix the README badges
2018-06-17 14:59:21 -07:00
Chris Cummer
ddf39c3f59
Update README to add list of all contributors
2018-06-17 14:53:36 -07:00
Chris Cummer
25517cd22c
Add @andrewzolotukhin as a contributor
2018-06-17 14:37:14 -07:00
Chris Cummer
40442e0665
Add @BlackWebWolf as a contributor
2018-06-17 14:37:06 -07:00
Chris Cummer
cd8b41809b
Add @lsipii as a contributor
2018-06-17 14:36:51 -07:00
Chris Cummer
f7ea5c080f
Add @anandsudhir as a contributor
2018-06-17 14:36:43 -07:00
Chris Cummer
4370e7a84f
Add @askl56 as a contributor
2018-06-17 14:35:42 -07:00
Chris Cummer
a7bde09bac
Add @sherodtaylor as a contributor
2018-06-17 14:35:07 -07:00
Chris Cummer
b914c108fb
Add @patrickelectric as a contributor
2018-06-17 14:34:56 -07:00
Chris Cummer
875c445bc3
Add @mcordell as a contributor
2018-06-17 14:34:48 -07:00
Chris Cummer
9ff6fe870c
Add @Grazfather as a contributor
2018-06-17 14:34:41 -07:00
Chris Cummer
6d84bce1c8
Add @International as a contributor
2018-06-17 14:34:33 -07:00
Chris Cummer
1b56bc4bd5
Add @matrinox as a contributor
2018-06-17 14:34:25 -07:00
Chris Cummer
7dc02a3445
Add @davebarda as a contributor
2018-06-17 14:34:18 -07:00
Chris Cummer
d53ad4949d
Add @flw-cn as a contributor
2018-06-17 14:34:11 -07:00
Chris Cummer
b93f97be50
Add @dlom as a contributor
2018-06-17 14:33:42 -07:00
Chris Cummer
ad9759d309
Add @lasanthak as a contributor
2018-06-17 14:33:31 -07:00
Chris Cummer
49f6d23cfc
Add @FarhadF as a contributor
2018-06-17 14:33:23 -07:00
Chris Cummer
8e150f6a94
Add @rubiojr as a contributor
2018-06-17 14:32:59 -07:00
Chris Cummer
c42fdc93db
Add @mxplusb as a contributor
2018-06-17 14:32:52 -07:00
Chris Cummer
e29d12c65d
Add @lixin9311 as a contributor
2018-06-17 14:32:45 -07:00
Chris Cummer
2b2904ad0c
Add @baustinanki as a contributor
2018-06-17 14:32:36 -07:00
Chris Cummer
57a7372661
Add @XanthusL as a contributor
2018-06-17 14:32:28 -07:00
Chris Cummer
24b02abd7f
Add @interlock as a contributor
2018-06-17 14:32:20 -07:00
Chris Cummer
b77b594ce5
Add @BillKeenan as a contributor
2018-06-17 14:32:12 -07:00
Chris Cummer
2e2d1582dc
Add @deltaxflux as a contributor
2018-06-17 14:32:04 -07:00
Chris Cummer
0630d286ce
Add @Fengyalv as a contributor
2018-06-17 14:31:56 -07:00
Chris Cummer
f67e340254
Add @jeangovil as a contributor
2018-06-17 14:31:13 -07:00
Chris Cummer
08aabe6c2c
Add @senorprogrammer as a contributor
2018-06-17 09:32:57 -07:00
Chris Cummer
c08a594d56
Fixing merge conflict with master and multi-gcal
2018-06-17 08:10:36 -07:00
Chris Cummer
3309579689
Rename logging/ to logger/
2018-06-17 08:06:58 -07:00
Chris Cummer
993166e57d
Clean up some colourizing switch statements
2018-06-17 08:06:58 -07:00
Chris Cummer
eb5f09e65c
Properly scope Config to the wtf package and remove it as a dependency from everywhere else
2018-06-17 08:06:57 -07:00
Chris Cummer
966b2df52a
Add documentation for Logging module
2018-06-17 08:05:39 -07:00
Chris Cummer
b2ee2d43d0
Colourize the log file output
2018-06-17 08:05:39 -07:00
Chris Cummer
0fc2376179
Add a widget to display the log file in reverse order
2018-06-17 08:05:39 -07:00
Chris Cummer
6086690be7
Make flags package responsible for its own display
2018-06-17 08:05:39 -07:00
Chris Cummer
e9118dcc07
Clean up the flag and config handling in main()
2018-06-17 08:05:39 -07:00
Chris Cummer
a6505516ad
Move responsibility for version display out of flags
2018-06-17 08:05:39 -07:00