Commit graph

1791 commits

Author SHA1 Message Date
Luca Capezzuto
14d9c637ab
#546: satisfy review requests 2023-01-06 13:54:14 +01:00
Luca Capezzuto
4382f5efdd Merge branch '545_openweathermap_api_request_use_lat_and_lon_instead_of_city_id' of https://github.com/quantumfate/lain into quantumfate-545_openweathermap_api_request_use_lat_and_lon_instead_of_city_id 2023-01-06 13:50:16 +01:00
Luca Capezzuto
506ecf2ea2
#547: create new rockspec version 2023-01-03 18:31:02 +01:00
Aire-One
d0b9588cfa
build(luarocks): add all modules (#547) 2023-01-03 16:50:16 +00:00
Leon Connor Holm
50e893228f updated current_call and forecast_call api calls 2022-12-27 00:38:35 +01:00
Luca CPZ
438dd74810
widget.weather: use math.floor; closes #519 2022-10-20 19:38:51 +00:00
Luca Capezzuto
6cc8c921e9 Merge branch 'hp-pepster-master' 2022-10-20 20:30:20 +01:00
Florian Baumgärtner
d2ac6f308d removes the utf-8 dependency
Should fix https://github.com/lcpz/lain/issues/503
2022-10-18 22:04:02 +02:00
Florian Baumgärtner
67e8bde37b fix cal align for short day names
If the day names do not consist of three characters, the alignment is off
(see https://github.com/lcpz/lain/issues/522).
2022-10-18 22:03:07 +02:00
Teivel
c489aa63ac
fix(#485): Separators not following theme (#535)
* fix(util/separators): Not following theme

Fix issue #485 `lain.util.separators` not following theme variables
separators_width and separators_height as stated in the wiki

* fix: Removed redundant parenthesis
2022-06-25 11:43:16 +00:00
Luca Capezzuto
1703661273
luacheck: add global objects, ignore W131 only
Inspired by AwesomeWM's luacheckrc:
https://github.com/awesomeWM/awesome/blob/master/.luacheckrc

Signed-off-by: Luca Capezzuto <luca.cpz@gmail.com>
2022-06-11 12:25:17 +02:00
Luca Capezzuto
c7c50bbf8c
luacheck: fix dkjson warnings
Signed-off-by: Luca Capezzuto <luca.cpz@gmail.com>
2022-06-11 12:07:45 +02:00
Luca Capezzuto
4b5c98612c
README: add workflow badge
Signed-off-by: Luca Capezzuto <luca.cpz@gmail.com>
2022-06-11 12:00:07 +02:00
Luca Capezzuto
853946b665
Luacheck: ignore W113 too; GitHub Action: specify permissions
Ignoring W113 safely avoids warnings due to Awesome modules not found by
Luacheck.

Signed-off-by: Luca Capezzuto <luca.cpz@gmail.com>
2022-06-11 11:51:02 +02:00
Thomas Croft
aa2f9138f4
Automated testing with Luacheck (#533) 2022-06-11 09:39:21 +00:00
Luca Capezzuto
dbf6e9cfb1
layout/centerwork: fix comments/spacing style
Signed-off-by: Luca Capezzuto <luca.cpz@gmail.com>
2022-06-11 11:33:40 +02:00
Luca Capezzuto
5403835b96
Some linting
- layout/centerwork: specify client as a dependency, improve logic at lines
  141, 149
- widget/temp: remove whitespace

Signed-off-by: Luca Capezzuto <luca.cpz@gmail.com>
2022-06-11 11:26:23 +02:00
Neville Li
29f8d1fc36
exclude minimized windows in centerwork focus/swap (#530) 2022-05-11 16:04:57 +00:00
Luca Capezzuto
0df20e38bb
fixed rockspec 2022-03-26 12:11:15 -06:00
Albin Wahlén
57dee4c91b
Fix temp widget show N/A when no sensor found (#528) 2022-03-26 17:58:50 +00:00
Luca Capezzuto
07cf82e3b2 update dkjson to v2.6 2022-03-16 14:13:10 -06:00
Joe Fiorini
958ab5ba81
Fix rockspec (#524)
I could not install lain via luarocks using the existing rockspec file. There were a few issues:

1. There is no `scm-1` tag in the repo,
2. The glib, curl & awesome dependencies do not exist as rocks in the luarocks repo, therefore they should not be dependencies here
3. The format of the repo URL is incorrect, it should be using the `git+https` protocol

Once I fixed those issues I was able to install using a local copy of the rockspec. I'm sure I'm not the first person to install lain via luarocks, how have others have managed to get it to work?
2022-03-16 19:46:25 +00:00
Albin Wahlén
6a06d3cb79
Add format option for net and temp widget (#523) 2022-03-15 16:17:01 +00:00
Albin Wahlén
4933d6cb27
Fix alsa widget updating unnecessarily (#516) 2021-09-25 11:53:06 +00:00
Luca Capezzuto
1db09ba186 Merge branch 'shubham-cpp-view_non_empty' 2021-08-22 14:33:35 +02:00
Shubham Pawar
284a4b61a5 Better implementation of tag_view_nonempty
The Problem:
The issue will current implementation is that it goes to next tag and
stops only if clients on that tag are more than 0.
So now consider a scenario we have clients on *tag 1,2,5*

With the current implementation if we are on tag 2 and call
lain.util.tag_view_nonempty(1) and then call
awful.tag.history.restore() It will take us to tag 4 instead of tag 2.

This PR solves the problem
2021-08-22 07:48:09 +05:30
Luca CPZ
f55ba48d7a Merge branch 'zdmgmail-master' 2021-07-06 11:12:02 +01:00
zdmgmail
8d4f9b32b0
util.tag_view_nonempty(direction,sc) 2021-07-06 10:33:53 +08:00
Sam Price
7e814d1411
Add volume to MPD widget (#507) 2021-07-01 19:08:53 +00:00
Pratik Devkota
6bf79c30ae
Update cpu.lua (#506)
I noticed once that the CPU usage was being reported as being '-1%', I dug around the code for a while and think that the change at line 52 should make sure no negative values are obtained.

Co-authored-by: Pratik Devkota <pratikdevkota82@gmail.com>
2021-07-01 19:07:07 +00:00
Anant Murmu
2e5660faf8
Fixed typo (#508) 2021-07-01 19:06:20 +00:00
Marvin Ewald
16e2e73336
Add capacity field to battery widget (#504) 2021-05-07 16:41:39 +00:00
MarcinM
5882000904
widget.cal: fix week numbers (#501)
widget.cal: fix week numbers; closes #487
2021-03-31 10:19:10 +00:00
Luca Capezzuto
a955bbb2a9
widget.cal: remove whitespace; wiki.weather updated 2021-03-30 12:14:08 +02:00
Aleksandr Beliaev
799fab660b "temp_min" and "temp_max" are useless as both show always the same value 2021-03-30 12:09:59 +02:00
Czarnodziej
e5774fd463 prevent redrawing cal notification after change 2021-03-28 14:18:26 +02:00
Czarnodziej
3a6882af54 widget.cal: fix utf-8 weekday names 2021-03-28 14:15:11 +02:00
bzgec
47a2da364f Converting volume level to number in ALSA widget 2021-03-28 14:14:30 +02:00
Luca Capezzuto
3d4bb0b1d3
widget.weather: remove invalid default API key; wiki updated; closes #493 2021-03-15 18:43:43 +01:00
Luca CPZ
21c0d157ac
Merge pull request #492 from trap000d/master
Fix for openweathermap.org API changes
2021-03-15 17:28:07 +00:00
Aleksandr Beliaev
01d4f14919 Openweathermap license conditions and API changes 2021-03-10 15:16:22 +13:00
trap000d
beaa7abac2
Merge pull request #1 from lcpz/master
Pull origin master
2021-03-10 15:12:09 +13:00
Luca CPZ
10076e1d69
Merge pull request #484 from andersfugmann/battery_ac
Fix AC detection for battery widget.
2021-02-19 10:19:46 +00:00
Luca CPZ
74fc1d9d3d
Merge pull request #483 from lecoredump/master
Validate function before callback. Fixes #482.
2021-02-19 10:17:43 +00:00
Anders Fugmann
15bba30180 Fix ac detection for bat widget.
Multiple power sources may exist under /sys/class/power_supply/.
Durring autodetection (get_batteries), will case the detected ac to be reset to 'AC0' if a power source not starting with BAT or AC.

This change skips updating the name of the ac device if the devices does not start with 'AC'
2021-01-18 17:47:40 +01:00
Sébastien Le Corre
c782f7d775 Validate function before callback. Fixes #482 2021-01-13 04:09:47 +01:00
Luca CPZ
b38c6d67e9
Merge pull request #481 from gaelj/master
Allow transparency in util.separators
2020-12-30 15:17:38 +01:00
Gaël James
c2ec8f2a6b Allow transparency in util.seperators 2020-12-29 15:51:23 +01:00
Luca Capezzuto
80e41c1e7b
widget.weather: fix check in notification #479 2020-12-16 11:41:22 +01:00
Luca CPZ
3236575b52 wiki updated 2020-12-03 11:43:44 +00:00