mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
4a85ec0f59
Ensure that sway workspaces are always displayed in the same order as used internally by sway. The previous sorting code always sorted unnumbered workspaces lexicographically. This isn't the order used by sway internally. Therefore, commands such as "workspace next" might have jumped arbitrarily in waybar. This commit reworks the sorting code such that the internal order is always obeyed. Additionally, numbered persistent workspaces are inserted at their natural position at the front of the workspace list while unnumbered ones are appended. This should match the expectations of workspace ordering known from sway's behavior. The changes make the configuration property "numeric-first" unnecessary as this will always be the case now. There's also no reasonable way around this behavior now. Otherwise, persistent workspaces would jump around in the visual representation as soon as they become known to sway. Fixes #802 |
||
---|---|---|
.. | ||
waybar-backlight.5.scd | ||
waybar-battery.5.scd | ||
waybar-bluetooth.5.scd | ||
waybar-clock.5.scd | ||
waybar-cpu.5.scd | ||
waybar-custom.5.scd | ||
waybar-disk.5.scd | ||
waybar-idle-inhibitor.5.scd | ||
waybar-inhibitor.5.scd | ||
waybar-keyboard-state.5.scd | ||
waybar-memory.5.scd | ||
waybar-mpd.5.scd | ||
waybar-network.5.scd | ||
waybar-pulseaudio.5.scd | ||
waybar-river-tags.5.scd | ||
waybar-sndio.5.scd | ||
waybar-states.5.scd | ||
waybar-sway-language.5.scd | ||
waybar-sway-mode.5.scd | ||
waybar-sway-window.5.scd | ||
waybar-sway-workspaces.5.scd | ||
waybar-temperature.5.scd | ||
waybar-tray.5.scd | ||
waybar-wlr-taskbar.5.scd | ||
waybar-wlr-workspaces.5.scd | ||
waybar.5.scd.in |