summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjeremy <[email protected]>2026-03-24 10:21:52 -0700
committerjeremy <[email protected]>2026-03-24 10:21:52 -0700
commite02e059008c7c5a723f5ef3d3823e232d28b01a3 (patch)
tree2b86e30f413ca1360a2dee7eccb750d4cf98845a /src
parent35e9dbabcab936ecd1792f7901e3fb9b0223d8a1 (diff)
Make Chrome workspace bars red
Diffstat (limited to 'src')
-rw-r--r--src/main.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs
index e76831b..7eb4a5e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -102,7 +102,6 @@ fn output_status(workspaces: &[Workspace], windows: &[Window]) {
let mut after_focused: Vec<String> = Vec::new();
let mut focused_output = String::new();
let mut current_section = "before";
- let mut chrome_idx = 0;
let mut tooltip = String::new();
for ws in &sorted_workspaces {
@@ -150,12 +149,6 @@ fn output_status(workspaces: &[Workspace], windows: &[Window]) {
let mut color = get_color(app_id, title, win.pid, &terminal_apps);
let is_tmux = is_tmux_title(title);
- if color == "chrome" {
- const CHROME_COLORS: [&str; 4] = ["#ea4335", "#fbbc05", "#34a853", "#4285f4"];
- color = CHROME_COLORS[chrome_idx % 4].to_string();
- chrome_idx += 1;
- }
-
if !ws.is_focused {
color = dim_color(&color);
}
@@ -320,7 +313,7 @@ fn get_color(
return "#98c379".to_string();
}
if app_id == "google-chrome" || app_id.contains("chrome") {
- return "chrome".to_string();
+ return "#ea4335".to_string();
}
if app_id == "firefox" {
return "#ff7139".to_string();