Commit graph

121 commits

Author SHA1 Message Date
goose121 8851f78a2b
Use absolute value of current_now
It seems on my system that there has been a recent kernel change where `current_now` is reported negative when discharging, leading to no reported time remaining, only a dash; given this is only on certain kernel versions, it is perhaps better to just take the absolute value of `current_now` when calculating time remaining, just to remain compatible with both
2025-07-09 15:13:34 -06:00
Laurent Cimon 0250bbd460 stumptray: Adjust icon vertical and horizontal spacing 2025-02-11 18:38:23 -05:00
Morgan Hager 638aae7aec Make stumptray work with explicit background/foreground colors 2024-08-31 03:00:51 -06:00
David 86e32abbb6
Merge pull request #282 from nyx-land/master
add battery support for freebsd, netbsd
2024-02-10 17:01:45 -05:00
Nyx 31e69bc064 add battery support for freebsd, netbsd 2024-01-19 18:20:36 -08:00
Santiago Payà i Miralta 826485bf0f
ticker: tested some weeks. Clean, and celebrate +40k. 2023-12-04 17:40:17 +01:00
Santiago Payà Miralta 1bf97d749e
Merge branch 'stumpwm:master' into master 2023-12-04 17:29:03 +01:00
marasenna c81650acc6 modeline/cpu: update README.org
The current README.org is confusing. When you read it, it seems like you have to
add "%c" "%t" to *screen-mode-line-format*, which is incorrect. Actually, you
should add "%C". Therefore, I changed the README.org a bit to make it clearer.
2023-09-12 14:05:50 +03:00
Ahmed Khanzada 7828648bf8 Respecting org-mode preferred indentation 2023-09-05 22:30:33 -04:00
Ahmed Khanzada 6bb36b8758 Better Python example 2023-09-05 22:29:26 -04:00
Ahmed Khanzada efea53efc2 Minor fixes 2023-09-05 19:38:11 -04:00
Ahmed Khanzada e2a6f27416 Minor cleanup 2023-09-05 19:30:45 -04:00
Ahmed Khanzada bfe7bc9a36 Some fixes 2023-09-05 19:28:23 -04:00
Ahmed Khanzada 30fcd637c8 Add Pianobar modeline support 2023-09-05 19:25:55 -04:00
Santiago Payà i Miralta cfcab3fe4b ticker: some cleaning and fast thread destroy 2023-08-26 13:26:18 +02:00
Santiago Payà i Miralta 933ef29c66 ticker: use bordeaux-threads instead lparallel 2023-08-25 12:19:28 +02:00
Santiago Payà i Miralta 4e5f9b5a6e ticker: reset-tickers functions uses purge-tickers, README update 2023-08-12 12:48:42 +02:00
Santiago Payà i Miralta 346350c7a6 ticker: reset-tickers functions uses purge-tickers 2023-08-12 12:43:53 +02:00
Santiago Payà i Miralta 220e0d6008 ticker: move global variables at file top 2023-08-12 12:39:24 +02:00
Santiago Payà i Miralta 5d62f0ec70 ticker: deprecate the bitcoin module, reformatted. 2023-04-13 18:36:38 +02:00
Santiago Payà i Miralta 038149f737 ticker: deprecate the bitcoin module. 2023-04-13 18:17:47 +02:00
Santiago Payà i Miralta 33ce64feb1 ticker: new module displays ticker prices on modeline. 2023-04-13 18:11:11 +02:00
David f5af33375a
Merge pull request #268 from mirdono/master
Allow more user configuration in the wifi and end-session modules
2023-03-31 16:25:01 -04:00
David 4ca65bafa3
Merge pull request #266 from santiagopim/bitcoin-lparallel
Bitcoin lparallel
2023-03-31 16:24:32 -04:00
Alexander van den Berghe d56adb8935 Allow users to configure the wifi signal quality format 2023-01-16 13:13:47 +01:00
Santiago Payà i Miralta 37c0fec1c8 bitcoin: with dexador and lparallel 2022-12-21 15:46:49 +01:00
Santiago Payà i Miralta 50e8e07914 bitcoin: added gauge control and some refactoring 2022-12-21 15:30:52 +01:00
Kilian Sprotte 95bfe95add Recognize battery state "Not charging" as :charged
On my laptop, acpi shows:

$ acpi
Battery 0: Not charging, 99%

Within the battery-portable module, (sysfs-field path "status")
reports this as "Not charging".

In order to let the battery not be in an :unknown state, this change
allows "Not charging" to be recognized as :charging in addition to
"Full".
2022-11-26 15:14:54 +01:00
Nathan Shostek a289d9790c Removed wrong form 2022-01-29 23:09:30 +01:00
Nathan Shostek fcd1213c1e update readme, change default format 2022-01-28 23:42:16 +01:00
Nathan Shostek 64067b87f3 exported relevant functions 2022-01-28 23:32:50 +01:00
Nathan Shostek 609d68276e update readme 2022-01-28 23:12:00 +01:00
Nathan Shostek a185ef8854 updated readme, removed d&d translators from menu 2022-01-28 17:10:11 +01:00
Nathan Shostek 97e63e54ce expanded readme and macros
Moved misc macros to their own file, expanded readme with examples of writing
formatters and presentation methods.
2022-01-28 15:39:43 +01:00
Nathan Shostek 06130c017d Added macro do-list-with-interspersed-element 2022-01-28 14:19:37 +01:00
Nathan Shostek baee1b9fd7 Major jump foreward: advanced the design of formatter 2022-01-28 13:44:18 +01:00
szos 33ce38a5e0
Remove clim mode line
The clim mode line has been a failure. I added it here with rose-tinted glasses, thinking that others would see it and contribute to it. However my own motivation to make this a reality has died, and I think the best option at this point is to remove this from the repo, as it can cause confusion to users who expect a well functioning mode line based on clim as opposed to the current reality of a hackish mode line that is less functional than the default StumpWM mode line. 

I may continue working on this in the future, but until it is truly functional it should live in its own repo.
2022-01-01 16:06:03 +00:00
David c9ec57f639
Merge pull request #227 from wdouglass/feature/cpu-freq-range
Allow the cpu plugin to show a range of frequencies
2021-12-26 09:52:01 -05:00
QaidVoid 910fa58fec
get correct thermal zone for cpu temp 2021-09-27 10:45:00 +05:45
Benjamin Slade c3dd72ea43 updates to CPU mode-line formatters
- factor out formatting for the CPU usage output to allow for easier user config
- add bar-zone-colouring for CPU temperature
  - with configurable levels, defaulting to reasonable values
2021-08-21 14:02:09 -06:00
Santiago Payà i Miralta 7dd8de77cc bitcoin: condition should return nil 2021-08-14 15:45:07 +02:00
Santiago Payà i Miralta 434ba2b313 bitcoin: updated module 2021-08-02 11:50:10 +02:00
Santiago Payà i Miralta aec2dbbd7a bitcoin: typo 2021-07-31 22:15:59 +02:00
Santiago Payà i Miralta 373e5e8182 bitcoin: updated module 2021-07-31 21:57:27 +02:00
Woodrow Douglass 16d2e4ef38
Allow the cpu plugin to show a range of frequencies, not just the frequency of cpu 0 2021-06-25 13:37:45 -04:00
David e43bce0916
Merge pull request #220 from szos/clim-modeline
update for change in McCLIM internals
2021-06-02 15:32:23 -04:00
Woodrow Douglass f1f6d620bd
Add hidden window count modeline formatter 2021-06-01 10:19:34 -04:00
Nathan Shostek dbdf4bdfa6 better described issues in TODO
described crashes in the TODO section of the readme
2021-02-11 21:57:57 +01:00
Nathan Shostek 9341d8d6f4 reworked refreshing from stump, readme, presentations
Removed the patched stumpwm::eval-command function and instead hung a
refresh function on the event hook in stumpwm.

moved highlighting of current window/group into the present method.

added a lock to the redisplay to function to (hopefully) cut down on
freezes/hanging of the mode line.

rewrote goals and TODO portion of the readme.
2021-02-11 21:17:24 +01:00
Nathan Shostek 41098bd809 simplified and reworked presentations, commands and formatters
added file presentations.lisp, where presentations, commands,
and *translators live.

removed unneeded default-frame-top-level method

reworked display functionality by writing present methods for groups
and windows. Now one presents a group or window object instead of
using with-output-as-presentation.

fixed D&Ð translators, i wasnt using the correct syntax.
2021-02-11 14:53:11 +01:00