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
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
eca31413bd
Merge pull request #94 from vicious-widgets/copyright
...
Add copyright notices and contributing guidelines
2019-10-24 21:08:54 +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
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
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
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
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
Nguyễn Gia Phong
268f4acfd9
[bat_openbsd] Deprecate io.popen
2019-08-16 20:43:28 +07:00
mutlusun
f5060093c6
[os_all] Splitted into os_linux and os_bsd
2019-07-31 18:51:55 +02:00
mutlusun
d6e21f71d0
[cpufreq_freebsd][fanspeed_freebsd] Deprecate syncronous sysctl
2019-07-31 18:22:49 +02:00
mutlusun
04e8a49d2e
[cpu_freebsd] Deprecate synchronous sysctl
2019-07-31 18:07:04 +02:00
mutlusun
2b60a72d06
[uptime_freebsd] Deprecate synchronous sysctl
2019-07-31 17:51:47 +02:00
mutlusun
df4048da37
[thermal_freebsd] Deprecate synchronous sysctl
2019-07-31 17:09:11 +02:00
Xaver Hellauer
ca075d0c8e
BSSID in vicious.widgets.wifiiw
2019-07-19 09:57:25 +07:00
Nguyễn Gia Phong
b8afc3aafc
[cmus] Deprecate io.popen and promote to widgets/
2019-07-04 21:49:08 +07:00
Nguyễn Gia Phong
0e7f5e5bcb
[hddtemp_linux] Deprecate io.popen
2019-06-22 18:12:37 +07:00
Nguyễn Gia Phong
565d74cc8b
[fs] Deprecate io.popen
...
Also clarify unit prefix convention
2019-06-22 17:25:18 +07:00
Nguyễn Gia Phong
c91167f954
[hwmontemp_linux] Deprecate io.popen
...
Note that all failures now return an empty table instead of { N/A },
since N/A indicates missing information from a successful attempt.
2019-06-22 14:37:47 +07:00
Nguyễn Gia Phong
db446c35d9
[mpd] Deprecate io.popen
2019-06-05 10:57:18 +07:00
mutlusun
b0b6d46937
Merge branch 'master' into async
2019-06-03 19:11:25 +02:00
Nguyễn Gia Phong
62e9a757df
[{wifi,wifiiw}_linux] Deprecate io.popen
2019-05-29 21:46:02 +07:00
Nguyễn Gia Phong
7ae6a84b52
[mdir] Switch to async call
...
mdir is only semi-tested that it does work:
I have not set up maildir to check if the matching patterns are correct
2019-05-29 21:46:02 +07:00
mutlusun
06d96a92ba
[net_freebsd] Switched to async spawn
2019-05-27 09:52:00 +02:00
mutlusun
73b664b63e
[FreeBSD] switched to async call (and fixed previous bug)
2019-05-27 09:42:22 +02:00
mutlusun
992d835c2e
[battery_freebsd] switch to awful.spawn.easy_async
2019-05-26 19:17:21 +02:00
Arthur Axel 'fREW' Schmidt
cf81341fc9
Surface {when} in local time for weather widget
...
Here's how I use this:
local weather_widget = function(
code,
url,
name
)
local actual_widget = wibox.widget.textbox()
local actual_tooltip = awful.tooltip({ objects = { actual_widget } });
actual_widget:buttons(awful.util.table.join(
awful.button({}, 1, function () awful.spawn("firefox '" .. url .. os.time() .. "'") end)
))
vicious.register(actual_widget, vicious.widgets.weather,
function (widget, args)
actual_tooltip:set_text(
"City: " .. args["{city}"] ..
"\nWind: " .. args["{windmph}"] .. "mph " ..
"\nSky: " .. args["{sky}"] ..
"\nHumidity: " .. args["{humid}"] ..
"\nMeasured at: " .. os.date("%F %T", args["{when}"]))
return name .. " " .. args["{tempf}"] .. "°F"
end, 60 * 10, code)
return actual_widget
end
2019-05-21 21:31:28 +07:00
Nguyễn Gia Phong
383d91399f
[gmail] Switch to awful.spawn.easy_async
2019-05-16 22:15:44 +07:00
Nguyễn Gia Phong
6f002577b9
[volume_freebsd] Use spawn.easy_async instead of io.popen
...
NOTE: Similar to volume_linux, the default mute symbol has also been changed.
2019-05-16 21:50:54 +07:00
Nguyễn Gia Phong
92a2138296
Let existing async wtype use helpers.setasyncall
2019-05-15 16:12:24 +07:00
Nguyễn Gia Phong
6ba97712f5
Introduce helpers.setasyncall which simplifies calling of async wtype
...
Also add note about potential breakage on changing default symbol in volume_linux
2019-05-15 16:12:15 +07:00
Nguyễn Gia Phong
e643de1375
[volume_linux] Use awful.spawn.easy_async instead of io.popen
2019-05-15 16:12:04 +07:00
Nguyễn Gia Phong
1d96075f6c
Clean up spawn and widget types using it
2019-05-14 13:32:28 +07:00
Nguyễn Gia Phong
5a0573ebef
Fallback asynchronous widget types to use spawn.lua
...
pkg_all was also optimized and use more updated package manager front-ends
2019-05-13 13:21:17 +07:00
Lorenzo Gaggini
9cf9e994cd
[mpd] fixes if-else block missing end ( #81 )
2019-03-18 19:48:48 +07:00
Lorenzo Gaggini
f37566b0af
[mpd] Add playing progress percentage ( #80 )
2019-03-16 08:38:52 +07:00
Lorenzo Gaggini
60c57e8a41
[mpd] More math.floor for format progress fix
2019-03-15 21:36:52 +07:00
Enric Morales
3f42e7aeb9
[bat_openbsd] Fix compatibility with Lua 5.3 and remaining time display ( #78 )
...
Also remove duplicated environment
2019-03-12 09:21:29 +07:00
mutlusun
1003ed4e92
update bat_freebsd
2019-03-08 08:20:27 +01:00
Enric Morales
96c9d59eb5
Add battery support for OpenBSD ( #76 )
2019-03-08 11:57:08 +07:00
Juan Carlos Menonita
bb74db1835
[mpd] Use math.floor when formatting song progress ( #75 )
...
This ensure compatibility with Lua 5.3
2019-03-04 10:23:23 +07:00