aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorRyan Farley <ryan.farley@gmx.com>2021-04-29 09:12:55 +0000
committerRyan Farley <ryan.farley@gmx.com>2021-05-07 08:12:27 +0000
commit5d71ccc174aafc22053ae0ca98a58ca216737499 (patch)
tree8a222a30054c86c6cf7305a07a230a94f19b80b0 /config.h
parentMerge branch 'fix-color-cube' (diff)
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.
Diffstat (limited to 'config.h')
-rw-r--r--config.h13
1 files changed, 7 insertions, 6 deletions
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;
@@ -106,6 +100,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;
struct {