Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Implement windows formating in sway/workspaces

Open grimpy opened this issue 1 year ago • 1 comments
trafficstars

This implementation mimics to some extend the implementation of hyprland

grimpy avatar Dec 27 '23 22:12 grimpy

@Alexays anything else you want me to address in this PR?

grimpy avatar Feb 03 '24 15:02 grimpy

LGTM, can you also update the Github wiki?

Alexays avatar Feb 19 '24 22:02 Alexays

Reverted, freebsd check failed.

Alexays avatar Feb 19 '24 22:02 Alexays

../src/modules/sway/workspaces.cpp:250:20: error: no member named 'any_of' in namespace 'std::ranges'
  if (std::ranges::any_of(node["nodes"], [&](auto const &e) { return hasFlag(e, flag); })) {
      ~~~~~~~~~~~~~^

The CI runs FreeBSD 13.2 (still supported) with clang 14.x. It either has no std::ranges support or may need additional includes. Rewriting this line with std::any_of would be better for compatibility (and for the binary size).

alebastr avatar Feb 19 '24 22:02 alebastr