Commit Graph
4970 Commits
Author SHA1 Message Date
Mervius efd245b552 Fix timeout with multiple monitors 2026-04-10 11:42:23 -05:00
Visal Vijay a8a46d1f1e Refactor: simplify complex conditional expressions in Hyprland workspace module 2026-04-09 19:40:05 +05:30
yubo 906a589715 fix the io failure for hotplug-in device 2026-04-09 21:20:45 +08:00
xiyori 503d99b128 Add max-windows option to hyprland/workspaces 2026-04-09 14:15:56 +03:00
Ricardo Markiewicz 7d965a874f pr fixes 2026-04-08 23:36:47 +02:00
Ricardo Markiewicz 132ca3ac45 fix: datapoints should be positive 2026-04-08 23:36:47 +02:00
Ricardo Markiewicz dbf1cfb0f1 fix: typo reading datapoints 2026-04-08 23:36:47 +02:00
Ricardo Markiewicz 283515901e fix: id read and name set 2026-04-08 23:36:47 +02:00
Ricardo Markiewicz 01c6ebdf9e feat: update man pages 2026-04-08 23:36:47 +02:00
Ricardo Markiewicz dfc26364e1 feat: use the foreground color for cleaner look 2026-04-08 23:36:47 +02:00
Ricardo Markiewicz 4d6354af48 feat: add gauge and stacked bar graph type 2026-04-08 23:36:47 +02:00
Ricardo Markiewicz efadb82c56 feat: basic line graph component and cpu graph module 2026-04-08 23:36:47 +02:00
OliMoli 7feb23c3dd Update manpage to mention the .expanded CSS class 2026-04-07 16:29:59 +02:00
OliMoli 66cb828bf8 Add CSS selector for expanded drawers 2026-04-07 14:02:10 +02:00
Alexis Rouillard 202ae4bd5f Merge pull request #4975 from pix-code/master
memory: feature - add "unit" config option
2026-04-07 12:45:24 +02:00
Alexis Rouillard 6acc94ca37 Merge pull request #4967 from argentite/net-addr-del-fix
Network: fix: delete correct address type
2026-04-07 12:45:07 +02:00
Alexis Rouillard 66c09bc5b7 Merge pull request #4964 from adrianlzt/fix/network-bandwidth-event-race
fix(network): prevent near-zero bandwidth on rapid event-driven updates
2026-04-07 12:41:31 +02:00
Alexis Rouillard c30d4ce3e6 Merge pull request #4970 from B2krobbery/fix-group-module-leak
fix(bar): ensure exception safety for group module allocation
2026-04-07 12:39:42 +02:00
Alexis Rouillard cead1a0543 Merge pull request #4973 from cebem1nt/group-ref-fix
Group ref fix
2026-04-07 12:38:44 +02:00
Duke B fc11789a4f add unit config option to memory module 2026-04-05 19:01:36 -04:00
vdermichev 2c2901e8f7 hyprland/workspaces: expose workspace name as CSS class
Enable per-workspace styling by adding the workspace name as a
CSS class to each workspace button. The name is sanitized to a
valid CSS identifier: lowercased, non-alphanumeric characters
collapsed to hyphens, digit-leading names prefixed with "ws-".

Examples: "IDE" → .ide, "special:telegram" → .telegram, "1" → .ws-1

Allows users to style individual workspaces:
  #workspaces button.telegram { color: #54a0e0; }
2026-04-05 11:44:56 +02:00
cebem1nt ae11954398 fix: ensure passing group_config as reference 2026-04-04 22:11:19 -03:00
Visal Vijay 36518e4eca fix(bar): ensure exception safety when creating group modules using std::unique_ptr 2026-04-03 19:47:17 +05:30
Anubhab Ghosh 16886117b3 Network: fix: delete correct address type
Only delete the corresponding address type (IPv4 or IPv6) when an event
about a specific type (AF_INET or AF_INET6) is received

This fixes situations where only one type of the address is deleted (and
possibly added again) but Waybar still thinks the interface is in
"linked" (no IP) state.
2026-04-02 19:54:19 +05:30
cebem1nt 8b1e574063 niri/workspaces: feature - add "hide-empty" config option (#4965) 2026-03-31 17:49:30 -03:00
Alexis Rouillard 1e965ccce0 Merge pull request #4960 from keepo-dot/feature/8bit-hex-support
feat(client): add support for 8-bit hex color codes in CSS
2026-03-31 09:54:24 +02:00
Alexis Rouillard b3f4281aa4 Merge pull request #4962 from B2krobbery/fix-dwl-global-leak
fix: prevent resource leak when rebinding dwl globals
2026-03-31 09:53:44 +02:00
hecate cantus c866c4cd24 Merge branch 'master' into master 2026-03-30 14:25:41 -07:00
Adrian LopezandSisyphus 753294dbf4 fix(network): prevent near-zero bandwidth on rapid event-driven updates
When netlink events (link/addr/route changes) fire between timer
intervals, dp.emit() triggers update() which consumes the byte delta
and resets bandwidth_down_total_. A subsequent timer update sees
near-zero delta, displaying very small bandwidth.

Cache the last computed bandwidth values and skip recalculation
when update() is called within half the interval. Event-driven
updates reuse the cached values instead.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-30 19:38:24 +02:00
Visal Vijay 3f69bacff0 fix: prevent resource leak when rebinding dwl globals 2026-03-29 22:12:16 +05:30
Keepo a9aab4e356 fix: type consistency 2026-03-28 23:44:41 -04:00
Keepo 72d6a51fb7 fix: fix compile/run bugs from trying to be safer. rip 2026-03-28 23:26:34 -04:00
Keepo 3533265675 fix: removed unnecessary function, update header file for signature change. 2026-03-28 23:02:16 -04:00
Keepo 937ef176ff fix: memory issues & duplicate file loads. 2026-03-28 22:53:01 -04:00
Keepo 3b512d1a2c feat(client): add support for 8-bit hex color codes in CSS
This allows users to use #RRGGBBAA format in their style.css.
The client now detects 8-bit hex codes, transforms them into
GTK-compatible rgba() syntax, and loads the modified data
into the CSS provider.

- Added utility to detect 8-bit hex patterns.
- Added transformation logic to convert hex alpha to decimal.
- Intercepted CSS loading in Client::setupCss to handle the conversion.
2026-03-28 21:11:15 -04:00
Jolan Oubrier a49990c266 fix: issue #4955 wrong behaviour of regex for sway/window 'rewrite' 2026-03-27 18:31:05 +01:00
Alexis Rouillard 49460defdc Merge pull request #4953 from B2krobbery/revert-menu-actions
Fix unnecessary allocation in GTK callback
2026-03-25 22:57:40 +01:00
Visal Vijay e55bff662e Remove unnecessary g_strdup in GTK callback 2026-03-25 21:45:14 +05:30
Alexis Rouillard 06c3d4393c Merge pull request #4943 from sgruendel/network_multi_monitor
Fix network bandwidth rate calculation for early updates
2026-03-25 12:30:17 +01:00
Alexis Rouillard 3bd46da7c3 Merge pull request #4945 from B2krobbery/clean-parentheses-fix
clarify logical condition in wlr taskbar module
2026-03-25 12:30:03 +01:00
Alexis Rouillard e3174a0e3e Merge pull request #4948 from tsukasa-au/fix-network-selection
Network: Fix default interface selection.
2026-03-25 12:29:45 +01:00
Visal Vijay 0332da0cef bar: warn on invalid height type in configuration 2026-03-25 15:18:00 +05:30
Skyfrei fff1495efb adding a new keyword 'on-click-copy' that accepts a bool and copies to clipboard on true' 2026-03-24 20:12:30 +01:00
Alexis Rouillard be2ad4a858 Merge pull request #4946 from B2krobbery/fix-client-wayland-global-leak-clean
fix: prevent resource leak when rebinding Wayland globals
2026-03-23 13:25:39 +01:00
Greg Darke b64265bdf7 Network: Fix default interface selection.
When an interface is not specified for the network module, we parse the
routing table to look for default routes.

We have defined a default route to:
- have a gateway specified, and
- have no destination specified, or have an all-zero destination.

Previous versions of Waybar had the second condition inverted,
causing it to incorrectly pick interfaces are used to route a
subnet/single host.

For example, with the following routing table, we should pick `eth0` to
show information about, not `wg0`.

```
ip -4 route
default via 192.168.252.1 dev eth0 proto dhcp src 192.168.252.200 metric 100
192.168.252.0/24 dev eth0 proto kernel scope link src 192.168.252.200 metric 100
192.168.2.254 via 192.168.1.1 dev wg0 proto static metric 50
192.168.1.0/24 dev wg0 proto static scope link metric 50
192.168.1.0/24 dev wg0 proto kernel scope link src 192.168.1.254 metric 50
```
2026-03-23 15:04:47 +11:00
Visal Vijay 1aa32def3b fix: prevent resource leak when rebinding Wayland globals 2026-03-22 15:41:50 +05:30
Visal Vijay 60c57b7195 clarify logical condition in wlr taskbar module 2026-03-22 11:40:44 +05:30
Visal Vijay d2aad467a7 Update waybar.5.scd.in 2026-03-21 23:12:36 +05:30
Stefan Gründel dc31db6d0c fix: linting error 2026-03-21 18:38:33 +01:00
Stefan Gründel c0c1a4223a Fix network bandwidth rate calculation for early updates 2026-03-21 13:17:06 +01:00