summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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();