diff --git a/config/config.def.c b/config/config.def.c index a7e2e94b..c9b2ec1c 100644 --- a/config/config.def.c +++ b/config/config.def.c @@ -131,9 +131,14 @@ Settings config = { /** Fuzzy matching. */ .fuzzy = FALSE, /** Monitor */ - .monitor = -1, - .line_margin = 2, - .filter = NULL, - .separator_style = "dash", + .monitor = -1, + /** set line margin */ + .line_margin = 2, + /** Set filter */ + .filter = NULL, + /** Separator style: dash/solid */ + .separator_style = "dash", + /** Hide scrollbar */ + .hide_scrollbar = FALSE, }; diff --git a/doc/rofi-manpage.markdown b/doc/rofi-manpage.markdown index dae77e0c..f5cf1d12 100644 --- a/doc/rofi-manpage.markdown +++ b/doc/rofi-manpage.markdown @@ -326,6 +326,10 @@ Set separator style. Possible options are "solid" or "dash". Default: *dash* +`-hide-scrollbar` + +Hide the scrollbar. + ### Layout `-lines` diff --git a/doc/rofi.1 b/doc/rofi.1 index 62156bad..bef44898 100644 --- a/doc/rofi.1 +++ b/doc/rofi.1 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "ROFI\-MANPAGE" "" "August 2015" "" "" +.TH "ROFI\-MANPAGE" "" "September 2015" "" "" . .SH "NAME" \fBrofi\fR \- A window switcher, run launcher, ssh dialog and dmenu replacement @@ -16,26 +16,26 @@ \fBrofi\fR can be used in three ways, single\-shot; executes once and directly exits when done, as a daemon listening to specific key\-combination or emulating dmenu\. . .SS "Single\-shot mode" -To launch \fBrofi\fR directly in a certain mode, specifying \fBrofi \-show \fR\. To show the run dialog: +To launch \fBrofi\fR directly in a certain mode, specify a mode with \fBrofi \-show \fR\. To show the run dialog: . .IP "" 4 . .nf - rofi \-show run +rofi \-show run . .fi . .IP "" 0 . .SS "Daemon mode" -To launch \fBrofi\fR in daemon mode don\'t specify a mode to show (\fB\-show \fR), instead you can bind keys to launch a certain mode\. To have run mode open when pressing \fBF2\fR start \fBrofi\fR like: +To launch \fBrofi\fR in daemon mode don\'t specify any mode, instead keys can be bound to launch a certain mode\. To show run\-mode by pressing \fBF2\fR start \fBrofi\fR like this: . .IP "" 4 . .nf - rofi \-key\-run F2 +rofi \-key\-run F2 . .fi . @@ -65,26 +65,26 @@ Command\-line options: Arguments passed to \fBrofi\fR\. .IP "" 0 . .P -The Xresources options and the command\-line options are aliased\. So to set option X you would set: +The Xresources file expects options starting with \fBrofi\.\fR followed by it\'s name\. An Example to set the number of lines: . .IP "" 4 . .nf -rofi\.X: value +rofi\.lines: 10 . .fi . .IP "" 0 . .P -In the Xresources file, and to (override) this via the command\-line you would pass the same key prefixed with a \'\-\': +Command line options override settings from Xresources file\. The same option set as argument: prefixed with a \'\-\': . .IP "" 4 . .nf -rofi \-X value +rofi \-lines 10 . .fi . @@ -121,7 +121,7 @@ Boolean .IP "" 0 . .P -The boolean option has a non\-default command\-line syntax, to enable option X you do: +Boolean options have a non\-default command\-line syntax\. Example to enable option X: . .IP "" 4 . @@ -159,9 +159,9 @@ Set the key combination to display a {mode} in daemon mode\. . .nf - rofi \-key\-run F12 - rofi \-key\-ssh control+shift+s - rofi \-key\-window mod1+Tab +rofi \-key\-run F12 +rofi \-key\-ssh control+shift+s +rofi \-key\-window mod1+Tab . .fi . @@ -171,19 +171,13 @@ Set the key combination to display a {mode} in daemon mode\. \fB\-dmenu\fR . .P -Run \fBrofi\fR in dmenu mode\. Allowing it to be used for user interaction in scripts\. -. -.P -In \fBdmenu\fR mode, \fBrofi\fR will read input from STDIN, and will output to STDOUT by default\. -. -.P -Example to let the user choose between three pre\-defined options: +Run \fBrofi\fR in dmenu mode\. This allows for interactive scripts\. In \fBdmenu\fR mode, \fBrofi\fR reads from STDIN, and output to STDOUT\. A simple example, displaying 3 pre\-defined options: . .IP "" 4 . .nf - echo \-e "Option #1\enOption #2\enOption #3" | rofi \-dmenu +echo \-e "Option #1\enOption #2\enOption #3" | rofi \-dmenu . .fi . @@ -196,51 +190,42 @@ Or get the options from a script: . .nf - ~/my_script\.sh | rofi \-dmenu +~/my_script\.sh | rofi \-dmenu . .fi . .IP "" 0 . .P -Pressing \fBshift\-enter\fR will open the selected entries and move to the next entry\. +Pressing \fBshift\-enter\fR sends the selected entry to STDOUT and moves to the next entry\. . .P \fB\-show\fR \fImode\fR . .P -Open \fBrofi\fR in a certain mode\. -. -.P -For example to show the run\-dialog: +Open \fBrofi\fR in a certain mode\. Available modes are \fBwindow\fR, \fBrun\fR, \fBssh\fR To show the run\-dialog: . .IP "" 4 . .nf - rofi \-show run +rofi \-show run . .fi . .IP "" 0 . .P -This function deprecates \-rnow,\-snow and \-now +\fB\-modi\fR \fImode1,mode1\fR . .P -\fB\-switchers\fR \fImode1,mode1\fR \fB\-modi\fR \fImode1,mode1\fR -. -.P -Give a comma separated list of modes to enable, in what order\. -. -.P -For example to only show the run and ssh launcher (in that order): +Specify a ordered, comma separated list of modes to enable\. Enabled modes can be changed at runtime\. Default key is Ctrl+Tab\. If no modes are specified all modes will be enabled\. To only show the run and ssh launcher: . .IP "" 4 . .nf - rofi \-modi "run,ssh" \-show run +rofi \-modi "run,ssh" \-show run . .fi . @@ -253,20 +238,20 @@ Custom modes can be added using the internal \'script\' mode\. Each mode has two . .nf - :