Commit Graph

689 Commits

Author SHA1 Message Date
Constantin Piber 09163271d6
Catch errors in update_value to release lock
If an error happens in update_value, reg.lock is never released,
thus resulting in a deadlock.
2022-05-04 10:22:38 +09:00
Constantin Piber 830d624f35 [mpd] Add ability to send arbitrary commands 2022-05-04 10:16:33 +09:00
Nguyễn Gia Phong 81f8a80774
Update docs details
GitHub disabled HTTPS push a while ago
and Sphinx theme needs force update, because RTD.
2022-05-03 12:42:26 +09:00
Constantin Piber 51707f3917 Escape % before using strings in gsub 2022-05-03 10:09:07 +09:00
Nguyễn Gia Phong b20f68bdb7
Fix typos 2022-02-10 22:28:18 +07:00
Nguyễn Gia Phong 150864a76d Add CI running luacheck 2020-12-07 16:27:27 +07:00
Arseniy Terekhin eada06667d
[gmail] Update authentication guide 2020-11-02 09:03:29 +07:00
MArpogaus edfd51215e
[contrib.openweather] Support API ID and additional return values 2020-09-28 15:41:40 +07:00
Nguyễn Gia Phong 4ae9245246 Update changelog and docs for vicious.call 2020-09-27 21:31:00 +07:00
Nguyễn Gia Phong 9df7237755 Separate vicious.call into sync and async versions 2020-09-27 21:31:00 +07:00
Nguyễn Gia Phong 82cffa8ea9 Update changelog 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong 071cc61a58 [docs] Include contrib widget types 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong 365e754d8d [docs] Create symlinks to CONTRIBUTING and CHANGELOG 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong d35eeb2ed3 [docs] Move examples from README 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong 897ebe97b7 [docs] Move format function guide from README 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong 5f87644d28 [docs] Move custom widget type guide from README 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong 7701418b47 [docs] Employ sphinxcontrib.luadomain 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong 1840d0b10d [docs] Move widget type API from README 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong 901e03f39f [docs] Move caching and security notes from README 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong be0eb4870d [docs] Move *See also* from README 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong 2a8f987b22 [docs] Move basic instructions from README 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong b7d08fc84b Draft Sphinx doc structure 2020-09-21 13:15:29 +07:00
Nguyễn Gia Phong f452b5780f Nitpick whitespace and bump version 2020-09-04 17:00:59 +07:00
Alexander Koch 5e0cb0c84a [hwmontemp] Bring back sysfs path cache
Cache sysfs path resolved from given name index in local table. This avoids
spawning a `grep` process over and over again for each invocation.

Co-authored-by: Nguyễn Gia Phong <mcsinyx@disroot.org>
2020-09-03 22:06:08 +07:00
Nguyễn Gia Phong a2f83bf9d6 Release version 2.4.1 2020-05-23 21:35:59 +07:00
Elmeri Niemelä bfc0922f6e
[pkg] Fallback the number of lines before packages listing to 0 2020-05-23 21:32:34 +07:00
Nguyễn Gia Phong 3bd7b59b2c [mdir] Remove trailing semicolon 2019-12-07 16:39:09 +07:00
Nguyễn Gia Phong fa6b4e68c8 Update changelog for version 2.4 2019-10-28 13:50:20 +07:00
Nguyễn Gia Phong eca31413bd
Merge pull request #94 from vicious-widgets/copyright
Add copyright notices and contributing guidelines
2019-10-24 21:08:54 +07:00
Nguyễn Gia Phong 9283d08e35 [CONTRIBUTING.md] Fix typos and revise a few coding styles
* Relax the 80-column limit
* More as examples of call("arg") to avoid misunderstanding
  that only call"arg" is preferred.
2019-10-23 13:12:44 +07:00
Enric Morales 9493dcaa73
[cpu_openbsd] Add a CPU usage widget for OpenBSD (#95)
* [cpu_openbsd] Add a CPU usage widget for OpenBSD

* Remove filename from the header and fix the license name

* Reindent file to get rid of tabs

* Re-add file header and add space after year in copyright line

* Remove space before parens

* Make `ticks` local to the module
2019-10-18 13:27:56 +02:00
Nguyễn Gia Phong b659c3cfea
Merge branch 'master' into copyright 2019-10-17 21:30:54 +07:00
Enric Morales 1277889978 Make helpers.sysctl_async cross-platform & let bat_openbsd use it (#93) 2019-10-17 21:30:00 +07:00
Enric Morales ee970d0c68 Add a notmuch widget (#92) 2019-10-17 21:26:06 +07:00
Nguyễn Gia Phong b9c424c768 Fix styling according to CONTRIBUTING.md 2019-10-17 21:26:06 +07:00
Nguyễn Gia Phong ac86ebdb38 Add contributing guidelines and widget type templates 2019-10-17 21:26:06 +07:00
Enric Morales c16229a9b2 Make helpers.sysctl_async work on different OSes and let bat_openbsd use it (#93) 2019-10-16 21:05:32 +07:00
Enric Morales 969ea465e0 Add a notmuch widget (#92) 2019-10-15 20:11:15 +07:00
Nguyễn Gia Phong 5e7a5325f5 Update changelog and contributor list in README.md 2019-09-18 15:52:45 +07:00
Nguyễn Gia Phong 518d59fae1 Correct the copyright headers in contrib 2019-09-18 10:26:23 +07:00
Nguyễn Gia Phong bea390a75e Correct the copyright headers of the rest widget type 2019-09-14 10:33:40 +07:00
Nguyễn Gia Phong f54f1a7d8e Update some copyright headers along with style change
Additionall introduce helpers.setcall to replace the cumbersome setmetatable
at the end of most synchronous widget types
2019-09-05 12:41:38 +07:00
Nguyễn Gia Phong 08170d67ff Update copyright notices in libraries with the help of an auto-generator 2019-09-05 10:48:50 +07:00
Nguyễn Gia Phong a542c5dbe2
Merge pull request #89 from vicious-widgets/async
Deprecate the use of io.popen in most widget types
2019-08-29 22:19:44 +07:00
Nguyễn Gia Phong d533a1d190 Revert bat_openbsd since the change is unnecessary 2019-08-24 13:49:42 +07:00
Nguyễn Gia Phong 83efd26802 Nitpick style, mainly to make luacheck happy
Only cover the widget types that were recently refactored.
A few conventions are set as followed:
* Textwidth is preferably 80, since the whole point of tiling windows
  is to be able to view more pane of codes
* Standard, 3rd-party and local require should be grouped together
* Closing parentheses should not be on lines by themselves

There should be a style guide to clarify these.
2019-08-23 22:50:13 +07:00
mutlusun 025d2e1ad5
added type to environmet where missing 2019-08-23 10:51:15 +02:00
mutlusun bc134d8792
[mem_freebsd] Correct async behaviour 2019-08-23 10:45:43 +02:00
mutlusun 8092915e86
[fanspeed_freebsd] Multiple fans are now supported 2019-08-23 10:08:05 +02:00
mutlusun a23952f555
corrected symbolic link to cmus_all 2019-08-23 09:58:40 +02:00