213 lines
9.8 KiB
Groff
213 lines
9.8 KiB
Groff
.TH wofi 5
|
|
.SH NAME
|
|
wofi \- configuration file and styling
|
|
|
|
.SH DESCRIPTION
|
|
Wofi's configuration format is very simple, consisting of key value pairs in snake case. The majority of the config options are the command line options, there are however a small handful of options only accessible via wofi's config.
|
|
|
|
Mode specific options for the built\-in modes are documented in \fBwofi\fR(7). They are placed in the config file in the format \fBmode\-example_opt=val\fR. For example dmenu has an option called \fBparse_action\fR which would be placed in the config as \fBdmenu\-parse_action=true\fR.
|
|
|
|
Anything following a # is considered to be a comment unless the # is prefixed with a \\. For this reason in order to put a backslash in the config it must be escaped as well giving \\\\.
|
|
|
|
.SH CONFIG OPTIONS
|
|
Most of the options here are the command flags as found in \fBwofi\fR(1) in snake case, however some are unique to the config.
|
|
|
|
.TP
|
|
.B style=\fIPATH\fR
|
|
Specifies the CSS file to use as the stylesheet.
|
|
.TP
|
|
.B stylesheet=\fIPATH\fR
|
|
Specifies the CSS file to use as the stylesheet. This option is NOT the same as \fBstyle\fR. Absolute paths are absolute however relative paths are relative to the wofi config folder location $XDG_CONFIG_HOME/wofi and NOT the current working directory as they are with \fBstyle\fR. They are also NOT relative to the path as specified by \fB\-\-conf\fR. This option comes from rootbar and is probably more confusing than it's worth. You should probably use \fBstyle\fR unless you're sure this is what you want.
|
|
.TP
|
|
.B color=\fIPATH\fR
|
|
Specifies the colors file to use.
|
|
.TP
|
|
.B colors=\fIPATH\fR
|
|
Specifies the colors file to use. This option is NOT the same as \fBcolor\fR. Absolute paths are absolute however relative paths are relative to the wofi config folder location $XDG_CONFIG_HOME/wofi and NOT the current working directory as they are with \fBcolor\fR. They are also NOT relative to the path as specified by \fB\-\-conf\fR. This option comes from rootbar and is probably more confusing than it's worth. You should probably use \fBcolor\fR unless you're sure this is what you want.
|
|
.TP
|
|
.B show=\fIMODE\fR
|
|
Specifies the mode to run in. A list of modes can be found in \fBwofi\fR(7).
|
|
.TP
|
|
.B mode=\fIMODE\fR
|
|
Identical to \fBshow\fR.
|
|
.TP
|
|
.B width=\fIWIDTH\fR
|
|
Specifies the menu width in pixels or percent of screen size, default is 50%. Pixels are used unless the number ends with a %.
|
|
.TP
|
|
.B height=\fIHEIGHT\fR
|
|
Specifies the menu height in pixels or percent of screen size, default is 40%. Pixels are used unless the number ends with a %.
|
|
.TP
|
|
.B prompt=\fIPROMPT\fR
|
|
Sets the prompt to be display in the search box, default is the name of the mode.
|
|
.TP
|
|
.B xoffset=\fIOFFSET\fR
|
|
Sets the x offset from the location in pixels, default is 0.
|
|
.TP
|
|
.B x=\fIOFFSET\fR
|
|
Identical to \fBxoffset\fR.
|
|
.TP
|
|
.B yoffset=\fIOFFSET\fR
|
|
Sets the y offset from the location in pixels, default is 0.
|
|
.TP
|
|
.B y=\fIOFFSET\fR
|
|
Identical to \fByoffset\fR.
|
|
.TP
|
|
.B normal_window=\fIBOOL\fR
|
|
If true runs wofi in a normal window instead of using wlr\-layer\-shell, default is false.
|
|
.TP
|
|
.B allow_images=\fIBOOL\fR
|
|
If true allows image escape sequences to be processed and rendered, default is false.
|
|
.TP
|
|
.B allow_markup=\fIBOOL\fR
|
|
If true allows pango markup to be processed and rendered, default is false.
|
|
.TP
|
|
.B cache_file=\fIPATH\fR
|
|
Specifies the cache file to load/store cache, default is $XDG_CACHE_HOME/wofi\-<mode name> where <mode name> is the name of the mode, if $XDG_CACHE_HOME is not specified ~/.cache is used.
|
|
.TP
|
|
.B term=\fITERM\fR
|
|
Specifies the term to use when running a program in a terminal. This overrides the default terminal run order which is kitty, termite, gnome\-terminal, weston\-terminal in that order.
|
|
.TP
|
|
.B password=\fICHARACTER\fR
|
|
Runs wofi in password mode using the specified character, default is false.
|
|
.TP
|
|
.B exec_search=\fIBOOL\fR
|
|
If true activiating a search with enter will execute the search not the first result, default is false.
|
|
.TP
|
|
.B hide_scroll=\fIBOOL\fR
|
|
If true hides the scroll bars, default is false.
|
|
.TP
|
|
.B matching=\fIMODE\fR
|
|
Specifies the matching mode, it can be either contains or fuzzy, default is contains.
|
|
.TP
|
|
.B insensitive=\fIBOOL\fR
|
|
If true enables case insensitive search, default is false.
|
|
.TP
|
|
.B parse_search=\fIBOOL\fR
|
|
If true parses out image escapes and pango preventing them from being used for searching, default is false.
|
|
.TP
|
|
.B location=\fILOCATION\fR
|
|
Specifies the location. See \fBwofi\fR(7) for more information, default is center.
|
|
.TP
|
|
.B no_actions=\fIBOOL\fR
|
|
If true disables multiple actions for modes that support it, default is false.
|
|
.TP
|
|
.B lines=\fILINES\fR
|
|
Specifies the height in number of lines instead of pixels.
|
|
.TP
|
|
.B columns=\fICOLUMNS\fR
|
|
Specifies the number of columns to display, default is 1.
|
|
.TP
|
|
.B sort_order=\fIORDER\fR
|
|
Specifies the default sort order. There are currently two orders, default and alphabetical. See \fBwofi\fR(7) for details.
|
|
.TP
|
|
.B gtk_dark=\fIBOOL\fR
|
|
If true, instructs wofi to use the dark variant of the current GTK theme (if available). Default is false.
|
|
.TP
|
|
.B orientation=\fIORIENTATION\fR
|
|
Specifies the orientation, it can be either horizontal or vertical, default is vertical.
|
|
.TP
|
|
.B halign=\fIALIGN\fR
|
|
Specifies the horizontal align for the entire scrolled area, it can be any of fill, start, end, or center, default is fill.
|
|
.TP
|
|
.B content_halign=\fIALIGN\fR
|
|
Specifies the horizontal align for the individual entries, it can be any of fill, start, end, or center, default is fill.
|
|
.TP
|
|
.B valign=\fIALIGN\fR
|
|
Specifies the vertical align for the entire scrolled area, it can be any of fill, start, end, or center, the default is orientation dependent. If vertical then it defaults to start, if horizontal it defaults to center.
|
|
.TP
|
|
.B filter_rate=\fIRATE\fR
|
|
Specifies the rate at which search results are updated in milliseconds, default is 100.
|
|
.TP
|
|
.B image_size=\fISIZE\fR
|
|
Specifies the size of images in pixels when images are enabled, default is 32.
|
|
.TP
|
|
.B key_up=\fIKEY\fR
|
|
Specifies the key to use in order to move up. Default is Up(Up arrow). See \fBwofi\-keys\fR(7) for the key codes.
|
|
.TP
|
|
.B key_down=\fIKEY\fR
|
|
Specifies the key to use in order to move down. Default is Down(Down arrow). See \fBwofi\-keys\fR(7) for the key codes.
|
|
.TP
|
|
.B key_left=\fIKEY\fR
|
|
Specifies the key to use in order to move left. Default is Left(Left arrow). See \fBwofi\-keys\fR(7) for the key codes.
|
|
.TP
|
|
.B key_right=\fIKEY\fR
|
|
Specifies the key to use in order to move right. Default is Right(Right arrow). See \fBwofi\-keys\fR(7) for the key codes.
|
|
.TP
|
|
.B key_forward=\fIKEY\fR
|
|
Specifies the key to use in order to move forward. Default is Tab. See \fBwofi\-keys\fR(7) for the key codes.
|
|
.TP
|
|
.B key_backward=\fIKEY\fR
|
|
Specifies the key to use in order to move backward. Default is ISO_Left_Tab(Shift+Tab). See \fBwofi\-keys\fR(7) for the key codes.
|
|
.TP
|
|
.B key_submit=\fIKEY\fR
|
|
Specifies the key to use in order to submit an action. Default is Return. See \fBwofi\-keys\fR(7) for the key codes.
|
|
.TP
|
|
.B key_exit=\fIKEY\fR
|
|
Specifies the key to use in order to exit wofi. Default is Escape. See \fBwofi\-keys\fR(7) for the key codes.
|
|
.TP
|
|
.B line_wrap=\fIMODE\fR
|
|
Specifies the line wrap mode to use. The options are off, word, char, and word_char. Default is off.
|
|
.TP
|
|
.B global_coords=\fIBOOL\fR
|
|
Specifies whether x and y offsets should be calculated using the global compositor space instead of the current monitor. Default is false. This does not play well with locations and using it with them is not advised.
|
|
.TP
|
|
.B hide_search=\fIBOOL\fR
|
|
Specifies whether the search bar should be hidden. Default is false.
|
|
|
|
.SH CSS SELECTORS
|
|
Any GTK widget can be selected by using the name of its CSS node, these however might change with updates and are not guaranteed to stay constant. Wofi also provides certain widgets with names and classes which can be referenced from CSS to give access to the most important widgets easily. \fBwofi\fR(7) contains the current widget layout used by wofi so if you want to get into CSS directly using GTK widget names look there for info.
|
|
|
|
.TP
|
|
.B #window
|
|
.br
|
|
The name of the window itself.
|
|
.TP
|
|
.B #outer\-box
|
|
.br
|
|
The name of the box that contains everything.
|
|
.TP
|
|
.B #input
|
|
.br
|
|
The name of the search bar.
|
|
.TP
|
|
.B #scroll
|
|
.br
|
|
The name of the scrolled window containing all of the entries.
|
|
.TP
|
|
.B #inner\-box
|
|
.br
|
|
The name of the box containing all of the entries.
|
|
.TP
|
|
.B #img
|
|
.br
|
|
The name of all images in entries displayed in image mode.
|
|
.TP
|
|
.B #text
|
|
.br
|
|
The name of all the text in entries.
|
|
.TP
|
|
.B #unselected
|
|
.br
|
|
The name of all entries currently unselected. A better way of doing this is to do #entry and combine that with #entry:selected
|
|
.TP
|
|
.B #selected
|
|
.br
|
|
The name of all entries currently selected. A better way of doing this is to do #entry:selected
|
|
.TP
|
|
.B .entry
|
|
.br
|
|
The class attached to all entries. This is attached to the inside property box and is old, you probably want #entry instead
|
|
.TP
|
|
.B #entry
|
|
.br
|
|
The name of all entries.
|
|
|
|
.SH COLORS
|
|
The colors file should be formatted as new line separated hex values. These values should be in the standard HTML format and begin with a hash. These colors will be loaded however wofi doesn't know what color should be used for what so you must reference them from your CSS.
|
|
|
|
You can reference these from your CSS by doing \-\-wofi\-color<n> where <n> is the line number \- 1. For example to reference the color on line 1 you would do \fB\-\-wofi\-color0\fR.
|
|
|
|
The colors can also be referenced by doing \-\-wofi\-rgb\-color<n> where <n> is the line number \- 1. The difference between these is the format used to replace the macro.
|
|
|
|
\-\-wofi\-color<n> is replaced with an HTML color code in the format #FFFFFF. \-\-wofi\-rgb\-color<n> is replaced with comma separated rgb values in the format 255, 255, 255. The correct usage of \-\-wofi\-rgb\-color<n> is to wrap it in rgb() or rgba(). Note that it does not return an alpha value so combining it with rgba() should be done like so \fBrgba(\-\-wofi\-rgb\-color0, 0.8)\fR. This would set the color to line 1 with an opacity of 80%.
|