| 1 |
#compdef fuzzel |
| 2 |
|
| 3 |
_arguments \ |
| 4 |
-s \ |
| 5 |
'--config[path to configuration file (XDG_CONFIG_HOME/fuzzel/fuzzel.ini)]:config:_files' \ |
| 6 |
'--cache[file to load most recently launched applications from (XDG_CACHE_HOME/fuzzel)]:cache:_files' \ |
| 7 |
'--check-config[verify configuration and exit with 0 if ok, otherwise exit with 1]' \ |
| 8 |
'(-v --version)'{-v,--version}'[show the version number and quit]' \ |
| 9 |
'(-h --help)'{-h,--help}'[show help message and quit]' \ |
| 10 |
'(-o --output)'{-o,--output}'[output (monitor) to display on (none)]:output:->outputs' \ |
| 11 |
'(-f --font)'{-f,--font}'[font name and style in fontconfig format (monospace)]:font:->fonts' \ |
| 12 |
'(-D --dpi-aware)'{-D,--dpi-aware}"[scale fonts using the monitor's DPI (auto)]:dpi_aware:(no yes auto)" \ |
| 13 |
'--use-bold[allow fuzzel to use bold fonts]' \ |
| 14 |
'--icon-theme[icon theme name (hicolor)]:theme:->icon_theme' \ |
| 15 |
'(-I --no-icons)'{-I,--no-icons}'[do not render any icons]' \ |
| 16 |
'--hide-before-typing[hide application list until something is typed]' \ |
| 17 |
'(-F --fields)'{-F,--fields}'[comma separated list of XDG Desktop entry fields to match ]:fields:(filename name generic exec categories keywords comment)' \ |
| 18 |
'(-p --prompt)'{-p,--prompt}'[string to use as input prompt ("> ")]:()' \ |
| 19 |
'--placeholder[placeholder text in the input box]:()' \ |
| 20 |
'--search[initial search/filter string]:()' \ |
| 21 |
'--password[render all input using either "*", or the specified character]:()' \ |
| 22 |
'(-T --terminal)'{-T,--terminal}'[terminal command, with arguments ($TERMINAL -e)]:terminal:_command_names -e' \ |
| 23 |
'(-a --anchor)'{-a,--anchor}'[set window anchor (center)]:anchors:(top-left top top-right left center right bottom-left bottom bottom-right)' \ |
| 24 |
'--x-margin[horizontal margin away from the anchor point in pixels (0)]:()' \ |
| 25 |
'--y-margin[vertical margin away from the anchor point in pixels (0)]:()' \ |
| 26 |
'--select[select the first entry that matches the given string]:()' \ |
| 27 |
'--select-index[select the entry with index]:()' \ |
| 28 |
'(-l --lines)'{-l,--lines}'[maximum number of matches to display (15)]:()' \ |
| 29 |
'(-w --width)'{-w,--width}'[window width, in characters (30)]:()' \ |
| 30 |
'(-x --horizontal-pad)'{-x,--horizontal-pad}'[horizontal padding, in pixels (40)]:()' \ |
| 31 |
'(-y --vertical-pad)'{-y,--vertical-pad}'[vertical padding, in pixels (8)]:()' \ |
| 32 |
'(-P --inner-pad)'{-P,--inner-pad}'[vertical padding between prompt and matches, in pixels (0)]:()' \ |
| 33 |
'(-b --background)'{-b,--background}'[background color (fdf6e3ff)]:background:()' \ |
| 34 |
'(-t --text-color)'{-t,--text-color}'[text color (657b83ff)]:text-color:()' \ |
| 35 |
'--prompt-color[color of the prompt text (586e75ff)]:prompt-color:()' \ |
| 36 |
'--placeholder-color[color of the placeholder text (93a1a1ff)]:()' \ |
| 37 |
'--input-color[color of the input string (657b83ff)]:input-color:()' \ |
| 38 |
'(-m --match-color)'{-m,--match-color}'[color of matched substring (cb4b16ff)]:match-color:()' \ |
| 39 |
'(-s --selection-color)'{-s,--selection-color}'[background color of selected item (eee8d5ff)]:selection-color:()' \ |
| 40 |
'(-S --selection-text-color)'{-S,--selection-text-color}'[text color of selected item (586e75ff)]:selection-text-color:()' \ |
| 41 |
'(-M --selection-match-color)'{-M,--selection-match-color}'[color of matched substring of selected item (cb4b16ff)]:match-color:()' \ |
| 42 |
'--counter-color[color of the match count (93a1a1ff)]:counter-color:()' \ |
| 43 |
'(-B --border-width)'{-B,--border-width}'[width of border, in pixels (1)]:border-width:()' \ |
| 44 |
'(-r --border-radius)'{-r,--border-radius}'[amount of corner "roundness" (10)]:border-radius:()' \ |
| 45 |
'(-C --border-color)'{-C,--border-color}'[border color (002b36ff)]:border-color:()' \ |
| 46 |
'--show-actions[include desktop actions (e.g "New Window") in the list]' \ |
| 47 |
'--match-mode[how to match what you type against the entries (fzf)]:match_mode:(exact fzf fuzzy)' \ |
| 48 |
'--no-sort[do not sort the result]' \ |
| 49 |
'--counter[display the match count]' \ |
| 50 |
'--filter-desktop=-[filter desktop entries based on XDG_CURRENT_DESKTOP]: :(no)' \ |
| 51 |
'--list-executables-in-path[list executables present in the PATH environment variable]'\ |
| 52 |
'--fuzzy-min-length[search strings shorter than this will not be fuzzy matched (3)]:()' \ |
| 53 |
'--fuzzy-max-length-discrepancy[maximum allowed length difference between the search string and a fuzzy match (2)]:()' \ |
| 54 |
'--fuzzy-max-distance[maximum allowed levenshtein distance between the search string and a fuzzy match (1)]:()' \ |
| 55 |
'--line-height[override line height from font metrics, in points or pixels]:()' \ |
| 56 |
'--letter-spacing[additional letter spacing, in points or pixels]:()' \ |
| 57 |
'--layer[which layer to render the fuzzel window on (top)]:layer:(top overlay)' \ |
| 58 |
'--keyboard-focus[keyboard focus mode (exclusive)]:keyboard-focus:(exclusive on-demand)' \ |
| 59 |
'--render-workers[number of render worker threads]:render-workers:()' \ |
| 60 |
'--match-workers[number of match worker threads]:match-workers:()' \ |
| 61 |
'--delayed-filter-ms[time in milliseconds to delay refiltering when there are lots of matches]:delayed-filter-ms:()' \ |
| 62 |
'--delayed-filter-limit[switch to delayed refiltering when there are more matches than this]:delayed-filter-limit:()' \ |
| 63 |
'(-d --dmenu)'{-d,--dmenu}'[dmenu compatibility mode; entries are read from stdin, newline separated]' \ |
| 64 |
'--dmenu0[dmenu compatibility mode; entries are read from stdin, NUL separated]' \ |
| 65 |
'--index[print selected entry's index instead of its text (dmenu mode only)]' \ |
| 66 |
'--with-nth[display the N:th column (tab separated) of each input line (dmenu mode only)]:with-nth:()' \ |
| 67 |
'--accept-nth[output the N:th column (tab separated) of each input line (dmenu mode only)]:with-nth:()' \ |
| 68 |
'(-R --no-run-if-empty)'{-R,--no-run-if-empty}'[exit immediately without showing the UI if stdin is empty (dmenu mode only)]' \ |
| 69 |
'--log-level[log level (warning)]:loglevel:(info warning error none)' \ |
| 70 |
'--log-colorize[enable or disable colorization of log output on stderr]:logcolor:(never always auto)' \ |
| 71 |
'--log-no-syslog[disable syslog logging]' |
| 72 |
|
| 73 |
case "${state}" in |
| 74 |
fonts) |
| 75 |
if command -v fc-list > /dev/null; then |
| 76 |
_values 'font families' $(fc-list : family | tr -d ' ') |
| 77 |
fi |
| 78 |
;; |
| 79 |
|
| 80 |
icon_theme) |
| 81 |
_values 'icon themes' $(find /usr/share/icons -mindepth 1 -maxdepth 1 -type d -print0 | xargs -0 -n 1 basename | sort) |
| 82 |
;; |
| 83 |
|
| 84 |
outputs) |
| 85 |
if command -v wlr-randr > /dev/null; then |
| 86 |
_values 'outputs' $(wlr-randr | grep -e '^[^[:space:]]\+' | cut -d ' ' -f 1) |
| 87 |
elif command -v swaymsg > /dev/null; then |
| 88 |
_values 'outputs' $(swaymsg -t get_outputs --raw|grep name|cut -d '"' -f 4) |
| 89 |
fi |
| 90 |
;; |
| 91 |
esac |