From 623940781c57ef62fd74f085093d56e49b6c4466 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 25 Jan 2026 16:57:49 +0100 Subject: Remove dead code and change some default colors --- config.def.h | 7 +++---- manager.c | 6 ------ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/config.def.h b/config.def.h index 4fbf5ed..67f78d0 100644 --- a/config.def.h +++ b/config.def.h @@ -21,14 +21,13 @@ static const char *on_top_active_border_color = "orange"; static const char *on_top_inactive_border_color = "darkorange"; static const char *widget_font = "Berkeley Mono:size=7:bold"; +static const char *time_format = "%A %d.%m.%Y %H:%M:%S"; static const char *indicator_fg_color = "white"; static const char *indicator_bg_color = "blue"; -static const char *mic_active_bg_color = "darkred"; -static const char *mic_muted_bg_color = "#333333"; +static const char *mic_active_bg_color = "firebrick"; +static const char *mic_muted_bg_color = "#222222"; static const char *mic_active_fg_color = "white"; static const char *mic_muted_fg_color = "white"; -static const char *widget_fg_color = "#999999"; -static const char *time_format = "%A %d.%m.%Y %H:%M:%S"; static Shortcut shortcuts[] = { /* Mask KeySym Shell command */ diff --git a/manager.c b/manager.c index 9ee8181..808c75a 100644 --- a/manager.c +++ b/manager.c @@ -308,12 +308,6 @@ void init_window_manager(void) { XftColorAllocValue(wm.dpy, visual, wm.cmap, &render_color, &wm.xft_mic_muted_fg); } - if (!XftColorAllocName(wm.dpy, visual, wm.cmap, widget_fg_color, &wm.xft_widget_color)) { - log_message(stdout, LOG_WARNING, "Failed to allocate color %s, falling back to gray", widget_fg_color); - XRenderColor render_color = {0x8888, 0x8888, 0x8888, 0xFFFF}; - XftColorAllocValue(wm.dpy, visual, wm.cmap, &render_color, &wm.xft_widget_color); - } - wm.running = 1; scan_windows(); -- cgit v1.2.3