git.lucas.co / cce-window-manager
window management library
git clone https://git.lucas.co/cce-window-manager.git

commitbead0c3bca4a0315ccf38c89cffda7410bcb7afa
parent9f5cd7e0b5
authorLucas Galante <[email protected]>
date2026-09-16 11:08
arrange: order the bar's combined stats segment between tray and clock

Co-Authored-By: Claude Fable 5.1 <[email protected]>

 src/arrange.rs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/arrange.rs b/src/arrange.rs
index 201db80..dc4ca7f 100644
--- a/src/arrange.rs
+++ b/src/arrange.rs
@@ -591,7 +591,10 @@ pub const DEFAULT_STATUS_MODULE_SPACING: i32 = 12;
 const MARGIN: i32 = 12;
 
 const LEFT_ORDER: &[&str] = &["viewport", "window"];
-const RIGHT_ORDER: &[&str] = &["tray", "cpu", "memory", "brightness", "volume", "battery", "clock"];
+// `stats` is the bar's combined readout segment (cpu, memory, brightness,
+// volume and battery in one bubble, 2026-09-16); the five single names stay
+// valid for a bar that still runs them separately.
+const RIGHT_ORDER: &[&str] = &["tray", "stats", "cpu", "memory", "brightness", "volume", "battery", "clock"];
 
 fn left_sort_key(app_id: &str) -> usize {
     let name = app_id.strip_prefix("cce-status-interface-left-")