Commit graph

2754 commits

Author SHA1 Message Date
tobi-wan-kenobi
28601cf2b7 Revert "Merge branch '917-event-based-pulseaudio'"
This reverts commit 72a888748e, reversing
changes made to d57ef9364a.

This merge causes really high CPU load if using both pasink and
pasource, because those two modules trigger each other, and there's not
a terrible lot I can do about that, unfortunately.
2022-09-09 08:39:05 +02:00
tobi-wan-kenobi
72a888748e Merge branch '917-event-based-pulseaudio'
fixes #917
2022-09-09 08:25:23 +02:00
tobi-wan-kenobi
d57ef9364a
Merge pull request #919 from kellya/main
[doc] fix missing bullet on scrolling.bounce
2022-09-08 18:06:29 +02:00
Alex Kelly
87764dccf0 [doc] fix missing bullet on scrolling.bounce 2022-09-08 11:06:06 -04:00
tobi-wan-kenobi
3c37b666f5
Merge pull request #918 from FraSharp/main
[modules/pamixer] use -t flag to toggle mute instead of setting volume level to 0
2022-09-08 12:55:36 +02:00
FraSharp
8d0f8a4177 [modules/pamixer] use -t flag to toggle mute instead of setting volume level to 0
Signed-off-by: FraSharp <s23265@iisve.it>
2022-09-08 12:11:27 +02:00
tobi-wan-kenobi
ee9885a601 [core] fix concurrency issues
* initialize first line of output earlier (before modules are
  initialized, so that module/thread output cannot interfere)
* make sure that update and draw are protected against concurrent access
2022-09-04 16:22:29 +02:00
tobi-wan-kenobi
ee81f6198e [modules/pulseaudio] rate-limit pulseaudio events
attempting a different tack: Reduce the amount of draws that are being
emitted by the pulseaudio module to max. 2/s. That hopefully increases
reactivity and at the same time keeps flickering to a minimum.

see #917
2022-09-04 09:55:33 +02:00
tobi-wan-kenobi
40041d6080 Revert "[core/output] rate-limit output (see #917)"
(did not fix the issue)

This reverts commit b90346424b.
2022-09-04 09:41:20 +02:00
tobi-wan-kenobi
b90346424b [core/output] rate-limit output (see #917)
according to research (Jakob Nielsen '93), roughly 0.1s is what is
required for the user to feel "instantaneous".

based on this, rate-limit updates to only once per ~0.03s (0.1 felt
really laggy for me, so let's be conservative)
2022-09-01 21:15:14 +02:00
tobi-wan-kenobi
978519e130 [modules/pulseaudio] redraw only
make sure that we only ever redraw see #917
2022-09-01 19:00:06 +02:00
tobi-wan-kenobi
1983408e58 [util] fix location timeouts 2022-08-31 19:12:05 +02:00
tobi-wan-kenobi
0f74b690ca [modules/publicip] add nicer logging 2022-08-31 19:09:04 +02:00
tobi-wan-kenobi
05f0e08493
Merge pull request #916 from tfwiii/main
More robust identification of changes to public IPs
2022-08-31 19:08:34 +02:00
tobi-wan-kenobi
8d2cdebbaf [modules/pulseaudio] fix pactl subscribe thread
calling "draw" too early causes status line to be messed up.

see #917
2022-08-31 19:05:08 +02:00
tobi-wan-kenobi
ae04cc9897 [module/pulseaudio] somewhat experimental immediate update
try to immediately update pulseaudio, if pactl subscribe exists & allows
us to monitor update.

see #913
2022-08-31 07:51:36 +02:00
tobi-wan-kenobi
b1fd18b9af Revert "[module/pulseaudio] somewhat experimental immediate update"
This reverts commit d5d0d6a56c.
2022-08-30 21:50:56 +02:00
tobi-wan-kenobi
d5d0d6a56c [module/pulseaudio] somewhat experimental immediate update
try to immediately update pulseaudio, if pactl subscribe exists & allows
us to monitor update.

see #913
2022-08-30 21:38:48 +02:00
tfwiii
7ee9645437 Added secondary check for potential changes in public IP and a small bug fix arising from reliance on util.location
Added a second check for indications of possible change of public IP address since netifaces does not properly handle all Linux routing tables (ref: http://linux-ip.net/html/routing-tables.html) which can lead to changes being missed if only looking at defauilt route. Consequently an additional check for changes to the network interface names/numbers was added to further help in identifying potentially notable changes. Note that netifaces is no longer being maintained so the underlying issue with its handling of gateways is unlikely to be resolved (https://github.com/al45tair/netifaces). An alternative would be to use direct calls to the OS like 'ip route list table all' (note the difference to 'ip route list all') but this might lead to unpredicatble results between distributions/flavours so probably best to stick with a library for now. all') but this might lead to unpredicatble results between distributions/flavours so probably best to stick with a library for now.

Introduced time.sleep(2) following calls to util.location.reset() since it can take util.location a while to update following a call to .reset() which can cause calls to .location_info() to return unpredicatable/unuseful results.
2022-08-30 02:01:25 +07:00
tobi-wan-kenobi
82e55ec517 [modules/pulseaudio] remove "warning" if "too loud"
Falls in the "meant well, but doesn't really make sense" category: When
the volume exceeds 100%, the widget was shown in "critical" state. Some
headsets, audio cards, etc. do require a high volume setting, however.
And anyhow, it's really up to the user.

fixes #913
2022-08-26 21:14:28 +02:00
tobi-wan-kenobi
fed7a067ba
Merge pull request #911 from diesphink/main
Fix on gcalendar module
2022-08-11 17:37:01 +02:00
Diego Pereyra
2b3b9c0ca0 Undo serialization using picke, added comment on minimum version for google-api-python-client 2022-08-11 12:26:42 -03:00
tobi-wan-kenobi
bb36f98aaa [doc] add redshift.adjust parameter 2022-08-11 16:54:15 +02:00
Diego Pereyra
80efa64614 Support for locale on gcalendar 2022-08-10 12:02:35 -03:00
tobi-wan-kenobi
84dfd85396
Merge pull request #912 from diesphink/regolith-rofication
Added support for regolith fork of rofication
2022-08-09 06:16:39 +02:00
Diego Pereyra
f9cfede0d0 Added support for regolith fork of rofication (differs on the comm protocol: \n after command, receive values on csv) 2022-08-08 23:13:01 -03:00
Diego Pereyra
55f3085c90 Added support for regolith fork of rofication (differs on the comm protocol: \n after command, receive values on csv) 2022-08-08 23:11:05 -03:00
Diego Pereyra
124f13075d Fix for multiple calendars 2022-08-08 21:59:39 -03:00
Diego Pereyra
2ab14d9cd3 Fix save token (using pickle) 2022-08-08 21:59:27 -03:00
tobi-wan-kenobi
470f05150d [module/redshift] allow adjusting the color temperature
add a boolean flag ("adjust") to redshift that allows the user to have
bumblebee-status actually perform the color adjustment (by invoking
redshift in "one-shot" node).

Note that this only updates the color value each time the redshift
module is updated (every 10s, by default), and likely will collide with
any running redshift process.

fixes #908
2022-08-07 10:32:28 +02:00
tobi-wan-kenobi
6af47dc506 [doc] update module documentation
fixes #910
2022-08-06 10:55:04 +02:00
tobi-wan-kenobi
7a47e9e13d [module/publicip] handle netifaces errors
make sure the monitoring thread doesn't terminate when there are
netifaces errors.

see #909
2022-08-06 09:17:49 +02:00
tobi-wan-kenobi
a7dba79664 [modules/publicip] add default route monitor
(re)add a separate thread that monitors the default route and updates
the module immediately, if the default route changes.

fixes #909
2022-08-05 14:30:50 +02:00
tobi-wan-kenobi
062506f467 [doc] fix code climage badge 2022-07-29 14:08:37 +02:00
tobi-wan-kenobi
b752eb8934 [doc] fix badge 2022-07-29 14:08:02 +02:00
tobi-wan-kenobi
38a5f38b43 [doc] add test badge 2022-07-29 14:05:15 +02:00
tobi-wan-kenobi
f59da4c2d8 [autotests] add more python versions 2022-07-29 14:04:04 +02:00
tobi-wan-kenobi
42ef6a3f02 Revert "[doc] remove code climate for now"
This reverts commit 7635fec36f.
2022-07-29 14:03:12 +02:00
tobi-wan-kenobi
921ddb64f0 Revert "[autotest] remove code climate dependency"
This reverts commit 61ebc3aea6.
2022-07-29 14:02:54 +02:00
tobi-wan-kenobi
a78403d3e8 [publicip] fix tests and bugs 2022-07-29 14:00:28 +02:00
tobi-wan-kenobi
61ebc3aea6 [autotest] remove code climate dependency 2022-07-29 13:44:40 +02:00
tobi-wan-kenobi
6bac2b6e34 [autotest] remove environment variable setting 2022-07-29 13:39:06 +02:00
tobi-wan-kenobi
6980d5e5d0 [autotest] use coverage3 explicitly? 2022-07-29 13:35:58 +02:00
tobi-wan-kenobi
db13bd94a1 [autotest] use separate action for code climate 2022-07-29 13:29:50 +02:00
tobi-wan-kenobi
e8c493607f [autotest] add debug flag to code climate tool 2022-07-29 13:27:03 +02:00
tobi-wan-kenobi
00b7929df5 [autotest] fix ubuntu package installation 2022-07-29 13:19:32 +02:00
tobi-wan-kenobi
184762ac57 [autotest] first attempt at a github action that runs tests 2022-07-29 13:18:07 +02:00
tobi-wan-kenobi
7635fec36f [doc] remove code climate for now
since those were triggered by the travis builds, remove code climate as
well (might reintroduce them later)

see #906
2022-07-29 11:41:34 +02:00
tobi-wan-kenobi
a8a4a86350 [all] remove Travis CI
As far as I can tell, Travis CI is *not* free anymore, even for OSS
projects. I assumed the 10k credits were monthly or yearly, but
seemingly, they are a one-time thing.

So, remove Travis CI and start searching for a better replacement.

see #906
2022-07-29 11:29:18 +02:00
tobi-wan-kenobi
a1c4b3c65e [modules/spotify] enable scrolling
this change should enable scrolling for the spotify module

(unfortunately, i am unable to fully test this, as i am not using
spotify)

fixes #903
2022-07-29 11:18:07 +02:00