Commit graph

1216 commits

Author SHA1 Message Date
streetturtle
c8388f484e
Merge pull request #377 from WiltonLoch/master
New parameter to brightness widget
2023-03-06 13:52:14 -05:00
streetturtle
ca300adf01
Merge pull request #378 from augustogunsch/cmus-improvements
Copy ellipsize function from Spotify widget
2023-03-06 13:49:09 -05:00
streetturtle
ecb22a54bc
Merge pull request #392 from nekotxs/master
Added displaying volume in tooltip
2023-03-06 13:46:27 -05:00
nekotxs
d1c59a6bd0 Added displaying volume in tooltip 2023-02-08 03:49:50 +07:00
streetturtle
ef70d16c43
Update update-site.yml 2023-01-18 13:38:13 -05:00
streetturtle
e1a8a18a58
Merge pull request #388 from jarrowsm/pacman-widget
pacman-widget
2023-01-18 13:36:29 -05:00
streetturtle
a3f4a07316
Merge pull request #386 from shuber2/pactl-widget
pactl: A new volume widget using pactl only
2023-01-18 13:32:47 -05:00
James Arrowsmith
97d127b774 Fix luacheck warnings 2023-01-19 01:43:53 +13:00
Stefan Huber
81d725fe84 pactl: A new volume widget using pactl only
Add a new volume widget that is using pactl only for controlling volume
and selecting sources and sinks. It therefore works with PulseAudio or
PipeWire as backend, unlike the original Volume widget.

The code is split as follows:
  - volume.lua contains the UI logic
  - pactl.lua contains the pactl interfacing and output parsing
  - utils.lua contains some shared helper routines

It is heavily based on the original Volume code and supports the same
configuration options and uses the same widget code.
2023-01-18 07:59:53 +01:00
streetturtle
5f251902cf
Update README.md 2023-01-17 22:23:22 -05:00
streetturtle
f5ffa665b7
Update README.md 2023-01-17 22:22:37 -05:00
streetturtle
5f5aa85bed
Merge pull request #384 from shuber2/fix-bat-unknownstatus
Fix bat unknownstatus
2023-01-17 22:20:39 -05:00
streetturtle
72d53d1e87
Merge pull request #382 from SkylarGill/spotifywidget-mouseevent-spbin
Spotify Widget - Use sp_bin setting when registering mouse events
2023-01-17 22:16:27 -05:00
James Arrowsmith
4741325f8b pacman-widget 2023-01-05 17:15:30 +13:00
gpotter2
bd82ee004a
Fix ps: 'improper AIX field descriptor'
It appears that `ps` doesn't support using custom separators (e.g. here: '|') on all OSes. This replaces it with hardcoded lengths when known (cpu, mem, etc...).

E.G. on a debian bookworm machine this is what it returns:
```
ps -eo '%p|%c|%C|' -o "%mem" -o '|%a' --sort=-%cpu
error: improper AIX field descriptor
```
2022-12-31 00:38:55 +01:00
Stefan Huber
ed355dbf46 battery-widget: Sanitize total charge computation
The code to parse the output of `acpi -i` is fragile as it does not
guarantee that the same number of battery status and capacities are
read. This causes a wrong computation of the total charge level when
batteries of status "Unknown" are reported.

For instance, this is what `acpi -i` reports with a Wacom Intuos S
attached to a Thinkpad T460s:

  $ acpi -i
  Battery 0: Unknown, 0%, rate information unavailable
  Battery 1: Not charging, 98%
  Battery 1: design capacity 1857 mAh, last full capacity 1513 mAh = 81%
  Battery 2: Not charging, 98%
  Battery 2: design capacity 2051 mAh, last full capacity 1711 mAh = 83%

Fix the code by guaranteeing that for each battery status parsed there
is also a capacity, which is zero if no capacity can be parsed. This
effectively causes the exclusion of such batteries when computing the
total charge level.
2022-12-30 13:51:04 +01:00
Stefan Huber
0aba2f2e13 battery-widget: Simplify capacity computation
Increase cohesion of code that computes total charge and total capacity.
2022-12-30 12:59:09 +01:00
Skylar Gill
d1195d0e26 Use sp_bin setting when registering mouse events 2022-11-22 16:52:12 +00:00
Augusto Gunsch
5116ed6c93
Copy ellipsize function from Spotify widget 2022-09-21 11:36:37 +02:00
wiltonloch
5436535d37 Adding a parameter to allow the right mouse button to always set the
brightness level to maximum, instead of the default toggle behavior.
2022-09-17 11:44:26 +02:00
streetturtle
3bb3d56c26
Merge pull request #373 from Aire-One/fix/281
fix: #281
2022-09-02 21:51:25 -04:00
streetturtle
8c2e57347e
Merge pull request #374 from 0x501D/fix_luacheck_warnings
Fix luacheck warnings
2022-09-02 21:49:30 -04:00
Pavel Balaev
408e044d08
Fix luacheck warnings
This patch fixes luacheck warnings in brightness plugin:
brightness-widget/brightness.lua:60:1:
        inconsistent indentation (SPACE followed by TAB)
brightness-widget/brightness.lua:63:60:
        line contains trailing whitespace
2022-08-23 11:47:06 +03:00
Aire-One
bbb4bd7623 fix: #281 2022-08-07 19:14:04 +02:00
streetturtle
5358c40a02 Fix bug introduced by #367 2022-07-16 22:22:58 -04:00
streetturtle
2650676e31
Merge pull request #367 from chaorace/spotify-widget-icon-placeholder
Separate artist/title textboxes in spotify-widget when an icon cannot be drawn
2022-07-16 21:05:40 -04:00
streetturtle
1245ea43cd
Merge pull request #364 from chaorace/spotify-local-sp
Allow specifying a custom location for the sp binary used by spotify-widget
2022-07-16 20:50:10 -04:00
streetturtle
7467480c58
Merge pull request #362 from augustogunsch/cmus_functions
Cmus functions
2022-07-16 20:48:05 -04:00
streetturtle
1a2a4385da
Merge pull request #359 from WiltonLoch/master
Adding a Portuguese language file to the weather widget locale
2022-07-16 20:47:28 -04:00
streetturtle
860c31c9e6
Merge pull request #355 from akadaedalus/master
add left positions for calendar
2022-07-16 20:43:15 -04:00
streetturtle
c0fdb16652
Merge pull request #352 from webknjaz/bugfixes/C-locale-corner-case
Treat C-locale in the weather widget as English
2022-07-16 20:41:39 -04:00
streetturtle
0e96494f47
Merge pull request #345 from shubham-cpp/update-brightnessctl
Simplified get_brightness_cmd and using gears.filesystem
2022-07-16 20:40:04 -04:00
Christopher Crockett
f3229d2716 Separate spotify-widget artist/title without icon
Introduces a minimum distance between the artist/title textboxes equal
in width to 1 space character in the specified widget font.

This should ensure that the artist/title textboxes are not crammed
together in the event that an icon cannot be displayed.
2022-07-13 17:06:24 -04:00
Christopher Crockett
5d50fe7fab Document new sp_bin option for spotify-widget 2022-07-13 14:08:17 -04:00
Christopher Crockett
cd162c9a17 Added sp_bin option to spotify-widget
Allows specifying a custom location for the sp binary via widget config.
This is intended for users who don't want to add the sp binary to their
system PATH.
2022-07-13 14:03:53 -04:00
Augusto Gunsch
e2e680c11e Fix prev command 2022-07-10 21:11:17 +02:00
Augusto Gunsch
d9c689d733 Add stop function 2022-07-10 21:04:15 +02:00
Augusto Gunsch
12cfe038f8 Add more functions for cmus widget 2022-07-10 20:59:28 +02:00
wiltonloch
a345fa5975 Adding a Portuguese language file to the weather widget locale 2022-06-25 13:21:07 -03:00
Hamish Fleming
2f79c7bf35
feat(apt-widget): Close Popup On Mouse Out 2022-06-22 18:54:41 +10:00
Hamish Fleming
d075212be3
fix(apt-widget): Fixed nil value (buttons) 2022-06-22 18:23:27 +10:00
streetturtle
83914c91c8
Merge pull request #356 from davidk55/fix-filename-typo
Fix typo in filename
2022-05-24 11:17:51 -04:00
David
dedcadf993 Fix typo in filename 2022-05-24 16:57:23 +02:00
A.J. Palmer
7702f00efa add left positions for calendar 2022-05-24 08:49:32 -06:00
Sviatoslav Sydorenko
a03da2303c
Treat C-locale in the weather widget as English 2022-05-10 00:33:34 +02:00
Shubham Pawar
fc7d966cb9
Merge branch 'master' into update-brightnessctl 2022-04-16 18:30:12 +05:30
streetturtle
8439ca7930
Merge pull request #332 from augustogunsch/cmus
Cmus widget - fix unused "spacing" option
2022-04-15 17:30:55 -04:00
streetturtle
dc80558d9d
Merge pull request #350 from easlice/misc-customization-additions
Add customizations to batteryarc and ram widgets.
2022-04-15 17:19:42 -04:00
streetturtle
2043d21cb5
Merge pull request #334 from augustogunsch/brightness_font
Brightness widget - Use by default theme font
2022-04-15 17:16:10 -04:00
streetturtle
c238098a0d
Merge pull request #342 from utix/calendar/improvement
Add missing screen shot
2022-04-15 17:12:35 -04:00