From 5d71ccc174aafc22053ae0ca98a58ca216737499 Mon Sep 17 00:00:00 2001 From: Ryan Farley Date: Thu, 29 Apr 2021 04:12:55 -0500 Subject: enhanced bell configuration Add a separate section for bell configuration, with a bell-specific command option and a setting to allow that command to run without regard to keyboard focus (for those of us who enjoy being beeped at at all times, for example). The actions are also no longer mutually exclusive; this is primarily anticipating urgency support which cannot be replicated outside the process (in server mode anyway) and would thus be complementary to any notification or arbitrary command. --- config.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 2a5ca79d..8e67d398 100644 --- a/config.h +++ b/config.h @@ -84,12 +84,6 @@ struct config { bool palette_based; } bold_in_bright; - enum { - BELL_ACTION_NONE, - BELL_ACTION_URGENT, - BELL_ACTION_NOTIFY, - } bell_action; - enum { STARTUP_WINDOWED, STARTUP_MAXIMIZED, STARTUP_FULLSCREEN } startup_mode; enum {DPI_AWARE_AUTO, DPI_AWARE_YES, DPI_AWARE_NO} dpi_aware; @@ -105,6 +99,13 @@ struct config { bool box_drawings_uses_font_glyphs; + struct { + bool urgent; + bool notify; + struct config_spawn_template command; + bool command_focused; + } bell; + struct { int lines; -- cgit v1.3