From 0423c41a0f9f8f84bde80e664e59e33e3b05e3d4 Mon Sep 17 00:00:00 2001 From: Mykyta Holubakha Date: Sat, 7 May 2016 20:49:51 +0300 Subject: Implemented configurable floating scroll behavior --- include/config.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/config.h b/include/config.h index 8e5e33c3..6bd09151 100644 --- a/include/config.h +++ b/include/config.h @@ -167,10 +167,9 @@ enum edge_border_types { }; enum floating_scroll_behavior { - FSB_GAPS_OUTER, /**< Adjust outer gaps */ - FSB_GAPS_INNER /**< Adjust inner gaps */ - // Note: in the future I expect to see more things you can do with the scroll - // wheel than maniuplating gaps + FSB_GAPS_OUTER, /**< Adjust outer gaps */ + FSB_GAPS_INNER, /**< Adjust inner gaps */ + FSB_CUSTOM /**< Perform a user-defined action */ }; /** @@ -191,7 +190,9 @@ struct sway_config { uint32_t floating_mod; uint32_t dragging_key; uint32_t resizing_key; - enum floating_scroll_behavior floating_scroll; // TODO: command to set this + enum floating_scroll_behavior floating_scroll; + char *fsb_up; + char *fsb_down; enum swayc_layouts default_orientation; enum swayc_layouts default_layout; char *font; -- cgit v1.2.3-54-g00ecf