Alex
885ced58fc
Fix clang-format
2026-07-03 23:52:13 +02:00
Alexis Rouillard
596facca2c
Merge branch 'master' into master
2026-07-03 22:22:48 +02:00
Alexis Rouillard
2f3cae621f
Merge branch 'master' into openbsd
2026-07-03 21:30:44 +02:00
martuscellifaria
0bc664a99e
Readded the whitespace from the original code
2026-06-12 09:52:03 +02:00
martuscellifaria
eb3669decc
Rearranging code in a non-redundant way.
2026-06-12 09:48:44 +02:00
martuscellifaria
4ef828f712
Fixing CPU usage spike on Waybar
2026-06-12 09:14:04 +02:00
stalker
822071f36e
feat(custom): add image
2026-05-25 08:18:12 +04:00
Volker Schlecht
29979e9227
Fix build for systems without SIGRTMIN/SIGRTMAX
2026-04-17 19:35:31 +02:00
Austin Horstman
790101f824
chore: format
...
Signed-off-by: Austin Horstman <khaneliman12@gmail.com >
2026-03-06 18:49:02 -06:00
Alison
3eb2c7e8f4
sync tooltip updates without resetting hover state
2026-03-03 00:24:04 -08:00
Alison
a97e8dad7c
Revert "Fix tooltip sync issue by removing conditional checks"
...
This reverts commit 2b29c9a5d6 .
2026-03-03 00:23:57 -08:00
Prakhar Chhalotre
f96fb53eeb
feat: add tooltip in format replacments
2026-02-10 01:00:07 +05:30
copilot-swe-agent[bot] and Alexays
2b29c9a5d6
Fix tooltip sync issue by removing conditional checks
...
Co-authored-by: Alexays <13947260+Alexays@users.noreply.github.com >
2026-02-04 09:08:42 +00:00
copilot-swe-agent[bot] and Alexays
0a8b7b096a
Simplify fix: only add isInt() check in refresh methods
...
Changed approach per maintainer feedback - instead of caching signal values,
just add isInt() check before accessing config_["signal"].asInt() in refresh()
methods. This is simpler and more minimal.
Co-authored-by: Alexays <13947260+Alexays@users.noreply.github.com >
2026-02-04 08:57:08 +00:00
copilot-swe-agent[bot] and Alexays
c34b1b6a19
Fix unhandled JSON exception in signal handlers
...
Cache signal value during module construction to avoid accessing JSON config
in signal handler context. This prevents crashes when signal field is missing
or not an integer type.
- Custom module: Cache signal_ value in constructor
- Image module: Cache signal_ value in constructor
- Both modules: Use cached value in refresh() method
Co-authored-by: Alexays <13947260+Alexays@users.noreply.github.com >
2026-02-04 08:53:47 +00:00
Alex
151cf54532
fix: lint
2025-10-05 09:58:34 +02:00
aidansunbury
2b81782fa9
more changes
2025-08-16 16:01:41 -07:00
aidansunbury
2b552f7fb6
compat
2025-08-16 15:34:43 -07:00
aidansunbury
6dc5a73a02
initial changes
2025-08-16 15:29:59 -07:00
Arkoniak
f824ae9334
Relative paths in included configs
2025-07-29 10:45:31 +03:00
Alex
ee91d18ad9
fix: lint
2025-06-22 10:01:36 +02:00
Alexis Rouillard
d6b6158ae9
Update custom.cpp
2025-06-22 09:42:14 +02:00
Alexis Rouillard
f314150736
Merge branch 'master' into issue-1681
2025-06-22 08:41:15 +01:00
Taimase
3ebf2d96e5
fix continuousWorker in the custom module by capturing the buffer by reference.
2025-06-11 01:12:08 -06:00
Lukas Fink
a3e7031fe2
Fix formatting
2024-09-18 17:30:55 +02:00
Lukas Fink
254111ff91
Improve error message for mixed arg indexing in format string
2024-09-18 17:28:58 +02:00
Lukas Fink
83992d29a0
Fix formatting
2024-09-17 00:39:33 +02:00
Lukas Fink
3bb3c2d23f
fix(custom): stop mixing manual and automatic arg indexing
...
The current documentation for the custom module suggests mixing manual
(`{icon}`) and automatic (`{}`) indexing of format args. Newer versions
of the fmt library seem to not support this anymore (see issue #3605 ).
This commit introduces a name for the `text` output of the script, so
that `{text}` can now be used instead of `{}` in the configuration.
2024-09-17 00:13:23 +02:00
Rene D. Obermueller
fb24e8cb1f
add hide-empty-text option to hide module whenever output is empty but format is not
2024-06-30 21:16:52 +02:00
Lars-Ragnar A. Haugen
a453ea3c70
fix( #3210 ): tooltip-format on custom modules not working in some cases ( #3213 )
2024-05-06 10:47:52 +02:00
Alex
937bf2ba5d
fix: lint
2024-04-19 06:21:10 +02:00
joesri
2673a5a4f1
Escape tooltip in custom module
2024-04-18 14:17:30 +00:00
Alexis Rouillard
9191cae13b
Merge pull request #2923 from jones-josh/custom-tooltip-format
...
Add check for tooltip-format for custom modules
2024-02-19 22:47:22 +01:00
Josh Jones
9c3881f6f8
add check for tooltip-format for custom modules
2024-02-16 01:33:04 +01:00
Aleksei Bavshin
d590d508ca
feat: add module class to the root elements of the modules
...
Previously, the only way to select all the module labels was with the
following kind of selector:
```css
.modules-left > widget > label,
.modules-center > widget > label,
.modules-right > widget > label {
/* ... */
}
```
(and a matching block for the `box` containers).
Now, this can be expressed as
```css
label.module, box.module {
/* ... */
}
```
2024-02-14 22:41:13 -08:00
Evan Overman
19bf4d0544
clang format trailing whitespace
2023-12-28 19:38:01 -08:00
Evan Overman
6b860f8690
clang formating
2023-12-28 19:36:21 -08:00
Evan Overman
182272b8b5
fix #2650
2023-12-28 19:30:26 -08:00
Jo De Boeck
0ea5143493
Pass WAYBAR_OUTPUT_NAME environment variable to custom exec scripts
...
Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com >
2023-12-19 22:54:12 +02:00
Viktar Lukashonak
9012cebbf2
Happy Linter
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-10-31 23:31:58 +03:00
Chris Pahl
f511e61832
fix: custom: do not crash if input text is not valid utf-8
2023-10-31 19:41:42 +01:00
Tamino Bauknecht
68dfd6aa3a
scope_guard/modules: Rename scope_guard to ScopeGuard
...
Using pascal case for the class name keeps it more consistent with the
majority of the other class names.
2023-10-24 17:51:38 +02:00
Tamino Bauknecht
dd1de3efbf
Revert "Revert "Fix potential memory leaks""
...
This reverts commit 2d33c20231 and
reapplies various patches for memory leaks.
The reason for the revert was a bug for a maximum duration interval
which caused sleep_for() to cause unpredictable behavior.
2023-10-24 17:51:38 +02:00
Alexis Rouillard
2d33c20231
Revert "Fix potential memory leaks"
2023-10-22 09:44:46 +02:00
Tamino Bauknecht
ae748b2644
modules+util: fix actual (potential) memory leaks
2023-10-21 11:51:33 +02:00
Brenno Lemos
1b98a04c93
chore: lint unrelated files so the CI passes
2023-10-02 12:33:28 -03:00
Evan Overman
bf371f70d1
add waitingWorker() to Custom
2023-09-18 14:56:14 -07:00
Alexis Rouillard
ee0958973b
Merge branch 'master' into issue-1681
2023-07-04 22:49:35 +02:00
lilydjwg
918de59988
custom module: free memory returned by libc's getline
2023-03-29 21:18:13 +08:00
Alex
f4cfafd238
fix: lint
2023-01-23 09:25:02 +01:00