fuzzel.1.scd
This file
Path
doc/fuzzel.1.scd
701 lines · 22.6 KiB
Last changed by
doc: fix typo of 'applications' in man pageStijn Gijsenbefore adoption616485c
History of this fileTake it
1fuzzel(1)23# NAME4fuzzel - Wayland app launcher and picker56# SYNOPSIS7*fuzzel* [_OPTIONS_]...89# DESCRIPTION1011As a launcher, *fuzzel* lists all available XDG applications in a searchable12window.1314With the *--dmenu* flag, fuzzel works like a general-purpose picker like dmenu, rofi or fzf.15Options to choose from are provided on the STDIN and the selected option is printed to STDOUT.1617The search box supports Emacs-like key bindings.1819Many things can be configured with *fuzzel.ini*(5) or command line options:2021*--config*=_PATH_22 Path to configuration file, see *fuzzel.ini*(5) for details.2324*--check-config*25 Verify configuration and then exit with 0 if ok, otherwise exit26 with 1.2728*-n*,*--namespace*=_NAMESPACE_29 Specifies the namespace for the spawned layer shell surface. Useful for30 blocking fuzzel out from screencasts in your compositor if it shows31 sensitive information, such as passwords.3233 Default: _launcher_3435*--cache*=_PATH_36 Use a custom cache location. Fuzzel uses this file to cache the37 most commonly launched applications (to be able to sort them at38 the top).3940 You can also use this option to enable caching of dmenu41 entries. It is recommended that you use a separate cache file for42 each "type" of dmenu invocation; i.e. one for the browser history,43 another for emojis etc.4445 Set to /dev/null to disable caching.4647 Default: _XDG_CACHE_HOME/fuzzel_4849*--override*=[_SECTION_.]_KEY_=_VALUE_5051 Override an option set in the configuration file. If _SECTION_ is52 not given, defaults to _main_.53 54 Explicit command line options always override both the on-disk55 configuration, and any *--override* used. For example:5657 ```58 fuzzel --prompt hello --override prompt=world59 ```6061 Here, the prompt will be set to _hello_.6263*-o*,*--output*=_OUTPUT_64 Specifies the monitor to display the window on. Autocompletion is available65 for zsh and fish, or you can list the available outputs with *wlr-randr* or66 with Sway using *swaymsg -t get_outputs*.6768 Example: _DP-1_6970 Default: Let the compositor choose output.7172*-f*,*--font*=_FONT_[,_FALLBACK1_,_FALLBACK2_,...]73 Comma separated list of primary font, and fallback fonts, in74 FontConfig format. See *FONT FORMAT*. Default: _monospace_.7576*--use-bold*77 Allow fuzzel to use bold fonts.7879*-D*,*--dpi-aware*=_no|yes|auto_80 When set to *yes*, fonts are sized using the monitor's DPI, making81 a font of a given point size have the same physical size,82 regardless of monitor.8384 In this mode, the monitor's scaling factor is ignored; doubling85 the scaling factor will *not* double the font size.8687 When set to *no*, the monitor's DPI is ignored. The font is88 instead sized using the monitor's scaling factor; doubling the89 scaling factor *does* double the font size.9091 Finally, if set to *auto*, fonts will be sized using the monitor's92 DPI if _all_ monitors have a scaling factor of 1. If at least one93 monitor as a scaling factor larger than 1 (regardless of whether94 the fuzzel window is mapped on that monitor or not), fonts will be95 scaled using the scaling factor.9697 Note that this option typically does not work with bitmap fonts,98 which only contains a pre-defined set of sizes, and cannot be99 dynamically scaled. Whichever size (of the available ones) that100 best matches the DPI or scaling factor, will be used.101102 Also note that if the font size has been specified in pixels103 (*:pixelsize=*_N_, instead of *:size=*_N_), DPI scaling104 (*dpi-aware=yes*) will have no effect (the specified pixel size105 will be used as is). But, if the monitor's scaling factor is used106 to size the font (*dpi-aware=no*), the font's pixel size will be107 multiplied with the scaling factor.108109 Default: _auto_110111*--gamma-correct*112 Do gamma-correct blending in linear color space. This is how font113 glyphs are supposed to be rendered, but since nearly no114 applications or toolkits are doing it on Linux, the result may not115 look like you are used to.116117 Compared to the default (disabled), bright glyphs on a dark118 background will appear thicker, and dark glyphs on a light119 background will appear thinner.120121 FreeType can limit the effect of the latter, with a technique122 called stem darkening. It is only available for CFF fonts123 (OpenType, .otf) and disabled by default (in FreeType). You can124 enable it by setting the environment variable125 *FREETYPE_PROPERTIES="cff:no-stem-darkening=0"* before starting126 fuzzel.127128 Also be aware that many fonts have been developed on systems that129 do not do gamma-correct blending, and may therefore look thicker130 than intended when rendered with gamma-correct blending, since the131 font designer set the font weight based on incorrect rendering.132133 In order to represent colors faithfully, higher precision image134 buffers are required. For this reason, fuzzel uses 16-bit image135 buffers (instead of 8-bit) when gamma-correct blending is enabled.136137 It is not possible to enable gamma-correct blending in cairo138 enabled builds of fuzzel, since cairo does not support 16-bit139 image buffers.140141*-p*,*--prompt*=_PROMPT_142 Prompt to use. Default: _> _.143144*--prompt-only*=_PROMPT_145 Same as *--prompt*, but in *--dmenu* mode it also:146 - does not read anything from STDIN147 - sets *--lines* to 0148149 In non-dmenu mode it behaves exactly like *--prompt*.150151*--hide-prompt*152 Hide the prompt line, making the window smaller. Input is still153 accepted, but the prompt line is not displayed. This option154 cannot be used at the same time with *--prompt-only*.155156*--placeholder*=_TEXT_157 Text to display as placeholder in the input box. Default: empty.158159*--mesg*=_STRING_160 Message to display above the prompt. Can contain some informational161 message, or can be used for having your prompt be above the input162 instead of in front. Supports newlines.163164*--mesg-mode*=_wrap_|_expand_165 How to handle lines in *--mesg* when they are longer than *--width*.166 See *fuzzel.ini*(5) for details. The default is *wrap*.167168*--search*=_TEXT_169 Initial search/filter string. This option pre-fills the input box170 with the specified string, letting you pre-filter the result.171172*-i*173 Ignored; for compatibility with other, similar utilities (where174 *-i* means "case insensitive search").175176*--icon-theme*=_NAME_177 Icon theme to use. Note that this option is case sensitive; the178 name must match the theme's folder name.179180 Example: _Adwaita_.181182 Default: _default_.183184*-I*,*--no-icons*185 Do not render any icons.186187*--hide-before-typing*188 Hide application list until something is typed.189190*-F*,*--fields*=_FIELDS_191 Comma separated list of XDG Desktop entry fields to match against:192193 - *filename*: the .desktop file's filename194 - *name*: the application's name (title)195 - *generic*: the application's generic name196 - *exec*: the applications's executable, as specified in the desktop197 file. Note: may include command line options as well.198 - *keywords*: the application's keywords199 - *categories*: the application's categories200 - *comment*: the application's comment201202 Default: _filename,name,generic_203204*--password*=[_CHARACTER_]205 Password input. Render all typed text as _CHARACTER_. If206 _CHARACTER_ is omitted, a *\** will be used.207208*-T*,*--terminal*=_TERMINAL ARGS_209 Command to launch XDG applications with the property210 *Terminal=true* (_htop_, for example).211212 The command may contain the placeholder _{cmd}_ which will be213 replaced with the actual command to be run. When _{cmd}_ is present,214 the command is **only** substituted in those locations and is **not**215 appended at the end.216217 Examples:218 - _foot -a '{cmd}' -T '{cmd}' {cmd}_ sets app-id and title to the219 command name, then executes it220 - _xterm -e {cmd}_ executes the command in xterm221 - _xterm -e_ (no {cmd}) uses old behavior: appends command after222 terminal args223224 Default: _not set_.225226*-a*,*--anchor*=_ANCHOR_227 Set window anchor, i.e. where on screen the window will be228 displayed. You can choose one from:229230 - top-left231 - top232 - top-right233 - left234 - center235 - right236 - bottom-left237 - bottom238 - bottom-right239240 Default: _center_241242*--x-margin*=_MARGIN_243 Horizontal margin away from the anchor point in pixels. Default: _0_.244245 Note: this option has no effect when anchor=center, top or bottom.246247*--y-margin*=_MARGIN_248 Vertical margin away from the anchor point in pixels. Default: _0_.249250 Note: this option has no effect when anchor=center, left or right.251252*--select*=_STRING_253 Select the first entry that matches the given string (case254 insensitive).255256*--auto-select*257 Automatically select when only one match remains.258259*--select-index*=INDEX260 Select the entry with index, not compatible with --select.261262*-l*,*--lines*=COUNT263 The (maximum) number of matches to display. This dictates the264 window height. Default: _15_.265266*--minimal-lines*267 Adjust the number of lines to display to the minimum of _--lines_ and268 the number of input lines. Only effective in dmenu mode. This allows269 fuzzel to size itself to the actual number of input lines rather than270 always showing the full _--lines_ rows.271272*-w*,*--width*273 Window width, in characters. Margins and borders not included. For274 variable width fonts this is an estimate, as the exact number of275 characters that will fit depends on which characters are being276 displayed. Default: _30_.277278*--tabs*=_COUNT_279 Number of spaces a tab is expanded to. Default: _8_.280281*-x*,*--horizontal-pad*=_PAD_282 Horizontal padding between border and icons and text. In pixels,283 subject to output scaling. Default: _40_.284285*-y*,*--vertical-pad*=_PAD_286 Vertical padding between border and text. In pixels, subject to287 output scaling. Default: _8_.288289*-P*,*--inner-pad*=_PAD_290 Vertical padding between prompt and match list. In pixels, subject to291 output scaling. Default: _0_.292293*-b*,*--background*=_HEX_294 Background color. See *COLORS*. Default: _fdf6e3ff_.295296*-t*,*--text-color*=_HEX_297 Text color. See *COLORS*. Default: _657b83ff_.298299*--message-color*=_HEX_300 Message color. See *COLORS*. Default: _657b83ff_.301302*--prompt-color*=_HEX_303 Text (foreground) color of prompt character(s). See304 *COLORS*. Default: _586e75ff_.305306*--placeholder-color*=_HEX_307 Text (foreground) color of the placeholder string. See308 *COLORS*. Default: _93a1a1ff_.309310*--input-color*=_HEX_311 Text (foreground) color of input string. See *COLORS*. Default:312 _657b83ff_.313314*-m*,*--match-color*=_HEX_315 The color of matching substring(s). As you start typing in the search316 box, the matching part in each application's name is highlighted with317 this color. See *COLORS*. Default: _cb4b16ff_.318319*-s*,*--selection-color*=_HEX_320 The color to use as background of the currently selected321 application. See *COLORS*. Default: _eee8d5ff_.322323*-S*,*--selection-text-color*=_HEX_324 The text color of the currently selected application. See325 *COLORS*. Default: _586e75ff_.326327*-M*,*--selection-match-color*=_HEX_328 The color of matching substring(s) of the currently selected329 application. As you start typing in the search box, the matching330 part in each application's name is highlighted with this color.331 See *COLORS*. Default: _cb4b16ff_.332333*--selection-radius*=_INT_334 The border radius of the selection entry. Like border-radius, this is335 subjected to output scaling. A larger value means a rounder corner. 0336 disables rounded corner. Default: _0_.337338*--counter-color*=_HEX_339 The color of the match count stats printed at the right-hand side340 of the input prompt. See *COLORS*. Default: _93a1a1ff_.341342*-B*,*--border-width*=_INT_343 The width of the surrounding border, in pixels (subject to output344 scaling). Default: _1_.345346*-r*,*--border-radius*=_INT_347 The corner curvature, subject to output scaling. Larger means more348 rounded corners. 0 disables rounded corners. Default: _10_.349350*-C*,*--border-color*=_HEX_351 The color of the border. See *COLORS*. Default: _002b36ff_.352353*--show-actions*354 Include desktop actions in the list. Desktop actions are355 alternative actions some desktop entries have. Examples include356 "New Window", "New Document", etc.357358*--match-mode*=_exact_|_fzf_|_fuzzy_359 Defines how what you type is matched. See *fuzzel.ini*(5) for360 details. The default is *fzf*.361362*--no-sort*363 Do not sort the result.364365*--counter*366 Display the match count.367368*--filter-desktop*=[_no_]369 Filter the visible desktop entries based on the value of370 XDG_CURRENT_DESKTOP. If the optional parameter is "no", explicitly371 disables filtering (that is, it overrides the value in the372 config).373374*--fuzzy-min-length*=_VALUE_375 Search strings shorter than this will not by fuzzy376 matched. Default: _3_.377378*--fuzzy-max-length-discrepancy*=_VALUE_379 Maximum allowed length difference between the search string, and a380 fuzzy match. Larger values result in more fuzzy matches. Default:381 _2_.382383*--fuzzy-max-distance*=_VALUE_384 Maximum allowed levenshtein distance between the search string,385 and a fuzzy match. Larger values result in more fuzzy386 matches. Default: _1_.387388*--line-height*=_HEIGHT_389 Override line height from font metrics. In points by default, but390 can be specified as pixels by appending 'px'391 (i.e. *--line-height=16px*). Default: _not set_.392393*--letter-spacing*=_AMOUNT_394 Additional space between letters. In points by default, but can be395 specified as pixels by appending 'px'396 (i.e. *letter-spacing=5px*). Negative values are397 supported. Default: _0_.398399*--layer*=_top_|_overlay_400 Which layer to render the fuzzel window on. Valid values are *top*401 and *overlay*.402403 *top* renders above normal windows, but typically below fullscreen404 windows and lock screens.405406 *overlay* renders on top of both normal windows and fullscreen407 windows. Note that the order is undefined if several windows use408 the same layer. Since e.g. lock screens typically use *overlay*,409 that means fuzzel may or may not appear on top of a lock screen.410411 Default: _overlay_412413*--keyboard-focus*=_exclusive_|_on-demand_414 Keyboard focusing mode, valid modes are *exclusive* and *on-demand*.415416 *exclusive* locks keyboard focus to fuzzel, receiving all keyboard417 input until closed.418419 *on-demand* makes fuzzel focus like a regular window, allowing other420 windows to take keyboard focus by e.g. clicking on them.421 By default switching keyboard focus will immediately close fuzzel,422 using *--no-exit-on-keyboard-focus-loss* allows interacting with423 other windows while fuzzel is open.424425 Default: _exclusive_426427*--no-exit-on-keyboard-focus-loss*428 Do not exit when losing keyboard focus. This can be useful on429 compositors where enabling "focus-follows-mouse" causes fuzzel to430 exit as soon as the mouse is moved over another window. Sway (at431 least up to, and including 1.7) exhibits this behavior.432433*--launch-prefix*=_COMMAND_434 Command to launch XDG applications with.435 If set, fuzzel will pass the Desktop File ID of the chosen application436 (see the Desktop Entry specification) in the DESKTOP_ENTRY_ID437 environment variable (also exported as FUZZEL_DESKTOP_FILE_ID for438 backward compatibility). Default: _not set_.439440*--list-executables-in-path*441 Include executables from the PATH environment variable. Applies to442 the normal application mode, not the dmenu mode.443444*--render-workers*=_COUNT_445 Number of threads to use for rendering. Set to 0 to disable446 multithreading. Default: the number of available logical CPUs447 (including SMT). Note that this is not always the best value. In448 some cases, the number of physical _cores_ is better.449450*--match-workers*=_COUNT_451 Number of threads to use for matching. Set to 0 to disable452 multithreading. Default: the number of available logical CPUs453 (including SMT). Note that this is not always the best value. In454 some cases, the number of physical _cores_ is better.455456*--delayed-filter-ms*=_TIME\_MS_457 Time, in milliseconds, to delay refiltering when there are more458 matches than *--delayed-filter-limit*. Default: _300_.459460*--delayed-filter-limit*=_N_461 When there are more matches than this, switch from immediate462 refiltering to delayed refiltering (see463 *--delayed-filter-ms*). Default: _20000_.464465*--scaling-filter*=_FILTER_466 Scaling filter to use when down scaling PNGs. One of *none*,467 *nearest*, *bilinear*, *box*, *linear*, *cubic*, *lanczos2*,468 *lanczos3* and *lanczos3-stretched*.469470 *none*, *nearest* and *bilinear* are the fastest options, but also471 have the worst looking results.472473 *cubic*, *lanczos2*, *lanczos3* and *lanczos3-stretched* are the474 slowest options, with the best looking results.475476 *box*, and to some degree, *linear*, are in the middle,477 performance wise, while in most cases still being just as, or478 close to, as good as *cubic* and the lanczos filters.479480 Default: _box_481482*-d*,*--dmenu*483 dmenu compatibility mode. In this mode, the list entries are read484 from stdin (newline separated). The selected entry is printed to485 stdout. If the input string does not match any of the entries, the486 input string is printed as is on stdout.487488 Alternatively, you can symlink the fuzzel binary to489 *dmenu*. Fuzzel will then start in dmenu mode, without the490 *--dmenu* argument.491492 Fuzzel also supports PNG and SVG icons, using Rofi's extended dmenu493 protocol. To set an icon for an entry, append494 *\\0icon\\x1f<icon-name>*. Example:495496 echo -en "Firefox\\0icon\\x1ffirefox" | fuzzel --dmenu497498 Fallback icons using comma-separated values are also supported.499 When the primary icon is not found, subsequent icons in the500 list will be tried until one is successfully loaded. Example:501502 echo -en "Firefox\\0icon\\x1ffirefox,web-browser,application-x-executable" | fuzzel --dmenu503504*--dmenu0*505 Like *--dmenu*, but input is NUL separated instead of newline506 separated. Note that in this mode, icons are not supported.507508*--index*509 Print selected entry's index instead of its text.510 Index values start with zero for the first entry.511 dmenu mode only.512513*--with-nth*=_N_|_FMT_514 Display the N:th column (1-based, tab separated by default, see515 *--nth-delimiter*) of each input line. When selected, the full516 input line is printed on stdout. dmenu mode only.517518 The argument can also be a format string (i.e free-format text),519 where *{N}* expands to the N:th column. Ranges of the form520 *{N..M}* and *{N..}* (open-ended) are also supported.521522 Note that in posix compliant shells, ranges (*{N..M}*) must be523 in quotation marks to prevent the shell from expanding it.524525526 Example:527 ```528 printf "1\\tFirst\\n2\\tSecond" | fuzzel -d --with-nth=2529 ```530531 This will display the entries *First* and *Second*. When one of532 them is selected, the full input line (tabs included) are printed533 on stdout.534535 Setting it to *0* is the same as not specifying *--with-nth* at536 all.537538*--accept-nth*=_N_|_FMT_539 Output the N:th column (1-based, tab separated by default, see540 *--nth-delimiter*) of each input line to stdout. dmenu mode only.541542 The argument can also be a format string (i.e free-format text),543 where *{N}* expands to the N:th column. Ranges of the form544 *{N..M}* and *{N..}* (open-ended) are also supported.545546 Note that in posix compliant shells, ranges (*{N..M}*) must be547 in quotation marks to prevent the shell from expanding it.548549550 Example:551 ```552 printf "1\\tFirst\\n2\\tSecond" | fuzzel -d --accept-nth=2553 ```554555 This will display the entries *1 First* and *2 Second*. Depending556 on which one is selected, *First* or *Second* will be printed to557 stdout.558559 Setting it to *0* is the same as not specifying *--accept-nth* at560 all.561562*--match-nth*=_N_|_FMT_563 Match against the N:th column (1-based, tab separated by default,564 see *--nth-delimiter*) of each input line. This is instead of565 matching against the displayed value (which can be changed with566 *--with-nth*).567568 The argument can also be a format string (i.e free-format text),569 where *{N}* expands to the N:th column. Ranges of the form570 *{N..M}* and *{N..}* (open-ended) are also supported.571572 Note that in posix compliant shells, ranges (*{N..M}*) must be573 in quotation marks to prevent the shell from expanding it.574575576 Example:577 ```578 printf "123\\t456\\t789" | fuzzel -d --with-nth=1 --accept-nth=2 --match-nth=3579 ```580581 This will display the entry *123*, but matching will *only* be582 done against *789* (specifically, *123* will not match). When583 selected, *456* is printed on stdout.584585 Setting it to *0* is the same as not specifying *--match-nth* at586 all.587588*--nth-delimiter*=_CHARACTER_589 Field (column) delimiter for *--with-nth* and *--accept-nth*. Must590 be a single ASCII character.591592 Default: _\\t_ (tab)593594*--only-match*595 Do not allow custom entries, only return a selected item. In this596 mode, fuzzel always returns an entry. It will not return if no597 matching entry is selected.598599 The exception to this is the *execute-input* key binding, which600 always executes/selects the input text.601602*-R*,*--no-run-if-empty*603 Exit immediately, without showing the UI, if stdin is604 empty. dmenu mode only.605606*--log-level*={*info*,*warning*,*error*,*none*}607 Log level, used both for log output on stderr as well as608 syslog. Default: _warning_.609610*--log-colorize*=[{*never*,*always*,*auto*}]611 Enables or disables colorization of log output on stderr.612613*--log-no-syslog*614 Disables syslog logging. Logging is only done on stderr.615616*--print-timing-info*617 Print timing information to help debug performance issues.618619*--no-mouse*620 Disable mouse input.621622*-v*,*--version*623 Show the version number and quit624625# SEARCH PATHS626627Fuzzel searches for XDG *.desktop* files according to the XDG Base628Directory Specification (see link at bottom), looking in the629*applications* subdirectory of the paths given by *XDG_DATA_DIRS* and630*XDG_DATA_HOME*. By default, these are:631632- *~/.local/share/applications*633- */usr/local/share/applications*634- */usr/share/application*635636See the specification for details.637638# CONFIGURATION639640fuzzel will search for a configuration file in the following locations,641in this order:642643 - *XDG_CONFIG_HOME/fuzzel/fuzzel.ini* (defaulting to644 *~/.config/fuzzel/fuzzel.ini* if unset)645 - *XDG_CONFIG_DIRS/fuzzel/fuzzel.ini* (defaulting to646 */etc/xdg/fuzzel/fuzzel.ini* if unset)647648An example configuration file containing all options with their default value649commented out will usually be installed to */etc/xdg/fuzzel/fuzzel.ini*.650651For more information, see *fuzzel.ini*(5).652653# LOCALIZATION654655Fuzzel uses the localized strings from the .desktop files by656default. To disable this, run fuzzel with *LC_MESSAGES=C*.657658# IME659660Fuzzel supports input method editors (IME) via the661*text-input-unstable-v3* Wayland protocol.662663# FONT FORMAT664665The font is specified in FontConfig syntax. That is, a colon-separated666list of font name and font options.667668_Examples_:669- Dina:weight=bold:slant=italic670- Arial:size=12671672673# COLORS674675All colors must be specified as a RGBA quadruple, in hex format,676without a leading '0x'.677678_EXAMPLES_:679- white: *ffffffff* (no transparency)680- black: *000000ff* (no transparency)681- black: *00000010* (semi-transparent)682- red: *ff0000ff* (no transparency)683684The default color scheme is _Solarized_.685686# FILES687688_$XDG_CACHE_HOME/fuzzel_689 Stores a list of applications and their launch count. This allows690 fuzzel to sort frequently launched applications at the top.691692_$XDG_RUNTIME_DIR/fuzzel-$WAYLAND_DISPLAY.lock_693 Lock file, used to prevent multiple fuzzel instances from running694 at the same time.695696# SEE ALSO697698- *fuzzel.ini*(5)699- *https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html*700- *https://codeberg.org/dnkl/fuzzel*701- *https://specifications.freedesktop.org/basedir-spec/latest/*