diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-12-03 17:59:15 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-12-03 17:59:15 +0100 |
commit | 849db3c432f4a5373cd6397bd48b0c5df4ddc5eb (patch) | |
tree | 29b2ef83514b4ad2d5ec7a51a812ddd2c57a4e2d | |
parent | 420d1748e730c80fba212c27ea2f693e37fae6c8 (diff) |
Remove sidebar mode from config.
This can be managed by the theme now.
-rw-r--r-- | config/config.c | 2 | ||||
-rw-r--r-- | doc/rofi.1.markdown | 12 | ||||
-rw-r--r-- | include/settings.h | 2 | ||||
-rw-r--r-- | source/rofi.c | 2 | ||||
-rw-r--r-- | source/view.c | 7 | ||||
-rw-r--r-- | source/xrmoptions.c | 2 |
6 files changed, 1 insertions, 26 deletions
diff --git a/config/config.c b/config/config.c index 45a975f3..df9ef66f 100644 --- a/config/config.c +++ b/config/config.c @@ -70,8 +70,6 @@ Settings config = { .cycle = TRUE, /** Height of an element in #chars */ .element_height = 1, - /** Sidebar mode, show the modi */ - .sidebar_mode = FALSE, /** auto select */ .auto_select = FALSE, /** Parse /etc/hosts file in ssh view. */ diff --git a/doc/rofi.1.markdown b/doc/rofi.1.markdown index b0148f69..45af224b 100644 --- a/doc/rofi.1.markdown +++ b/doc/rofi.1.markdown @@ -330,18 +330,6 @@ Default: *0* Keep a fixed number of visible lines (See the `-lines` option.) -`-fullscreen` - -Use the full-screen height and width. - -`-sidebar-mode` - -Open in sidebar-mode. In this mode a list of all enabled modes is shown at the bottom. -(See `-modi` option) -To show sidebar, use: - - rofi -show run -sidebar-mode -lines 0 - `-eh` *number* Set row height (in chars) diff --git a/include/settings.h b/include/settings.h index e665da55..eeb96589 100644 --- a/include/settings.h +++ b/include/settings.h @@ -108,8 +108,6 @@ typedef struct unsigned int cycle; /** Height of an element in number of rows */ int element_height; - /** Sidebar mode, show the modi */ - unsigned int sidebar_mode; /** Lazy filter limit. */ unsigned int lazy_filter_limit; /** Auto select. */ diff --git a/source/rofi.c b/source/rofi.c index 426e9a41..f044172f 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -715,8 +715,6 @@ static gboolean startup ( G_GNUC_UNUSED gpointer data ) } // Dmenu mode. if ( dmenu_mode == TRUE ) { - // force off sidebar mode: - config.sidebar_mode = FALSE; int retv = dmenu_switcher_dialog (); if ( retv ) { rofi_set_return_code ( EXIT_SUCCESS ); diff --git a/source/view.c b/source/view.c index 2b9b9a87..981e4b3d 100644 --- a/source/view.c +++ b/source/view.c @@ -1640,12 +1640,7 @@ static void rofi_view_add_widget ( RofiViewState *state, widget *parent_widget, if ( strcmp ( name, "mainbox" ) == 0 ) { wid = (widget *) box_create ( parent_widget, name, ROFI_ORIENTATION_VERTICAL ); box_add ( (box *) parent_widget, WIDGET ( wid ), TRUE ); - if ( config.sidebar_mode ) { - defaults = "inputbar,message,listview,mode-switcher"; - } - else { - defaults = "inputbar,message,listview"; - } + defaults = "inputbar,message,listview"; } /** * INPUTBAR diff --git a/source/xrmoptions.c b/source/xrmoptions.c index 48e0b39c..e7e2bc79 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -126,8 +126,6 @@ static XrmOption xrmOptions[] = { "Set case-sensitivity", CONFIG_DEFAULT }, { xrm_Boolean, "cycle", { .num = &config.cycle }, NULL, "Cycle through the results list", CONFIG_DEFAULT }, - { xrm_Boolean, "sidebar-mode", { .num = &config.sidebar_mode }, NULL, - "Enable sidebar-mode", CONFIG_DEFAULT }, { xrm_SNumber, "eh", { .snum = &config.element_height }, NULL, "Row height (in chars)", CONFIG_DEFAULT }, { xrm_Boolean, "auto-select", { .num = &config.auto_select }, NULL, |