Alex
8dbba448ce
refactor(modules): migrate state modules to ALabel tooltip helper
...
Migrate cpu, cpu_usage, cpu_frequency and memory to the generic
updateLabelAndTooltip/ForState helper so label and tooltip rendering go
through the dedup-aware setters and shared tooltip-format resolution.
Add store-accepting overloads of the helper to ALabel for modules that
build a dynamic fmt argument store (per-core cpu stats). cpu keeps its
tooltip-format-<state> selection via the state overload; the others keep
their existing tooltip-format-only behavior.
2026-07-04 00:05:17 +02:00
Alexis Rouillard
405ffe3de6
Merge branch 'master' into feat/cpu-icons-auto
2026-07-03 22:22:32 +02:00
Alexis Rouillard
9e9e16b7e4
Merge branch 'master' into cpu-loadavg
2026-07-03 22:11:02 +02:00
Alex
26c834a59b
cpu: respect tooltip-format-<state> without overwriting it
...
The tooltip selection block redundantly reassigned tooltip_format to
config_["tooltip-format"], overwriting the state-specific format (and
emptying it when no global tooltip-format was set). A lone
tooltip-format-<state> therefore produced an empty tooltip.
Consolidate the tooltip handling into a single block that prefers
tooltip-format-<state>, falls back to the global tooltip-format, then to
the computed default tooltip, reusing the existing format arg store.
2026-07-03 21:51:07 +02:00
Alex
1c5ce111e1
Merge remote-tracking branch 'origin/master' into hallvardnmbu/master
2026-07-03 21:49:31 +02:00
Ivan Ribeiro
6bdafede07
feat(cpu): add {icons} format replacement for all per-core icons
...
Concatenates all per-core icons into a single {icons} placeholder,
so configs work across machines with different core counts without
manually specifying {icon0}{icon1}...{iconN}.
Closes #4240
2026-05-19 21:21:56 +01:00
Alex
ef3d55980e
fix: some crashes
2026-02-24 00:49:08 +01:00
Prakhar Chhalotre
4ac539206f
feat: add tooltip-format config option in cpu module
2026-02-13 02:00:17 +05:30
Hallvard Lavik
9dfcd206d7
Allow tooltip formatting the CPU module.
2025-12-27 12:11:43 +01:00
Duncan Overbruck
f3ae13e446
cpu: add load{1,5,15} format variables
2025-05-13 21:42:03 +02:00
Alexis Rouillard
742cd7f371
Revert "Add style class for CPU state"
2024-02-19 23:10:10 +01:00
Niklas Haas
a0bac34329
Add style class for CPU state
...
Fixes: https://github.com/Alexays/Waybar/issues/2911
2024-02-13 10:49:57 +01:00
Mann mit Hut
91b6629103
Fixed format errors
2023-09-13 21:59:42 +02:00
Mann mit Hut
93d66a9258
Moved cpu/common.cpp to cpu.cpp
2023-09-13 21:56:37 +02:00
Jan Beich
4e567d0483
cpu: port parseCpuinfo to BSDs
2020-05-19 10:43:42 +00:00
Jan Beich
d5df185ac6
cpu: make getCpuLoad more portable
...
../include/modules/cpu.hpp:4:10: fatal error: 'sys/sysinfo.h' file not found
#include <sys/sysinfo.h>
^~~~~~~~~~~~~~~
2020-05-19 10:37:27 +00:00
Alex
b40cdcb5bd
refactor: call parent update
2020-04-12 18:30:21 +02:00
Jordi Pakey-Rodriguez
0f0765e517
feat(modules): call user on-update if configured
2019-12-05 14:42:36 -08:00
Alex
d24d85bebf
refactor: move label name and id to label contructor
2019-05-22 12:06:24 +02:00
Lucas Lazare
51be97f9aa
Adding spdlog
2019-05-18 19:44:45 -04:00
Dan
5f0a3063d1
feat(states): add getState to other percent based modules
2019-05-02 22:24:29 -04:00
Dan
3bac96945c
Revert "feat(percent): adds a percent class to numeric modules"
...
This reverts commit 82302e58f3b611f7ff6d686d1783b1c32914f7c9.
2019-05-02 22:24:29 -04:00
Dan
472363a623
feat(percent): adds a percent class to numeric modules
2019-05-02 22:24:29 -04:00
Alex
f8c06b27ae
Revert "feat(Cpu): dynamic fmt args"
...
This reverts commit 2d9bcb1a2d .
2019-04-26 21:49:16 +02:00
Alex
2d9bcb1a2d
feat(Cpu): dynamic fmt args
2019-04-26 14:07:31 +02:00
Alex
311c34ecbc
feat(Bar): handle widget size changes
2019-04-24 12:37:24 +02:00
Alex
6ed8f94dab
refactor: format code
2019-04-18 17:52:00 +02:00
Alex
83a6475510
feat: can disable tooltip
2019-02-22 11:35:47 +01:00
Alexis
399f61df98
refactor: proper modules destruction
2019-01-13 22:22:22 +01:00
Alexis
b554094c7e
feat: args && class id
2018-12-18 17:30:54 +01:00
Alexis
4cc48b3cfd
fix(client): catch error on update
2018-11-24 11:13:52 +01:00
Alexis
ad7400d5ce
refactor(ALabel): add interval
2018-11-23 11:57:37 +01:00
Alexis
bd62c4cbc5
feat(Label): use set_markup
2018-11-21 20:49:09 +01:00
Alexis
e42fae32ab
feat(network): network info interval
2018-11-16 10:02:12 +01:00
Alexis
c910767378
refactor: remove usless using
2018-11-15 14:48:49 +01:00
Alexis
94b9f0a399
feat(cpu): add both usage and load
2018-11-15 14:44:43 +01:00
Robinhuett
e1d98f0ad9
fix(cpu): show correct load
...
feat(cpu): show cores in tooltip
2018-11-11 03:11:32 +01:00
Alexis
3f269ff463
fix: check json::value type
2018-10-26 09:27:16 +02:00
dangerousdan
137c5fb712
fix custom intervals causing cpu to go mental
2018-10-23 00:06:46 +01:00
Alexis
0abaaf2f7f
style: fix
2018-09-10 11:16:57 +02:00
Alexis
53956d9d18
feat(ALabel): Toggleable labels
2018-08-27 01:36:25 +02:00
Alex
49232eed8d
Clean ( #31 )
2018-08-20 14:50:45 +02:00
Alexis
8ce33e0c64
fix(window): pick only con title
2018-08-19 20:37:33 +02:00
Alex
6705134034
Handle screens disconnection ( #29 )
2018-08-19 13:39:57 +02:00
Alexis
27dfffa4e3
refactor: style issue
2018-08-18 15:05:18 +02:00
Alexis
b1fd4d7b82
feat(modules): generic label module to allow max-length on all labels
2018-08-18 11:43:48 +02:00
Alex
d280f5e8bd
Network detect ( #26 )
2018-08-17 14:24:00 +02:00
Alex
6635548d3e
Style code ( #25 )
2018-08-16 14:29:41 +02:00
Alexis
e3e099f836
feat(workspaces): icons
2018-08-15 14:48:08 +02:00
Alexis
04183dc696
refactor(modules): prefer sigc::mem_fun
2018-08-11 02:40:13 +02:00