| 1 |
#compdef footclient |
| 2 |
|
| 3 |
_arguments \ |
| 4 |
-s -S -C \ |
| 5 |
'(-t --term)'{-t,--term}'[value to set the environment variable TERM to (foot)]:term:->terms' \ |
| 6 |
'(-T --title)'{-T,--title}'[initial window title]:()' \ |
| 7 |
'(-a --app-id)'{-a,--app-id}'[value to set the app-id property on the Wayland window to (foot)]:()' \ |
| 8 |
'--toplevel-tag=[value to set the toplevel-tag property on the Wayland window to]:()' \ |
| 9 |
'(-m --maximized)'{-m,--maximized}'[start in maximized mode]' \ |
| 10 |
'(-F --fullscreen)'{-F,--fullscreen}'[start in fullscreen mode]' \ |
| 11 |
'(-L --login-shell)'{-L,--login-shell}'[start shell as a login shell]' \ |
| 12 |
'(-D --working-directory)'{-D,--working-directory}'[initial working directory for the client application (CWD)]:working_directory:_files' \ |
| 13 |
'(-w --window-size-pixels)'{-w,--window-size-pixels}'[window WIDTHxHEIGHT, in pixels (700x500)]:size_pixels:()' \ |
| 14 |
'(-W --window-size-chars)'{-W,--window-size-chars}'[window WIDTHxHEIGHT, in characters (not set)]:size_chars:()' \ |
| 15 |
'(-s --server-socket)'{-s,--server-socket}'[override the default path to the foot server socket ($XDG_RUNTIME_DIR/foot-$WAYLAND_DISPLAY.sock)]:server:_files' \ |
| 16 |
'(-H --hold)'{-H,--hold}'[remain open after child process exits]' \ |
| 17 |
'(-N --no-wait)'{-N,--no-wait}'[detach the client process from the running terminal, exiting immediately]' \ |
| 18 |
'(-o --override)'{-o,--override}'[configuration option to override, in form SECTION.KEY=VALUE]:()' \ |
| 19 |
'(-E --client-environment)'{-E,--client-environment}"[child process inherits footclient's environment, instead of the server's]" \ |
| 20 |
'(-d --log-level)'{-d,--log-level}'[log level (warning)]:loglevel:(info warning error none)' \ |
| 21 |
'(-l --log-colorize)'{-l,--log-colorize}'[enable or disable colorization of log output on stderr]:logcolor:(never always auto)' \ |
| 22 |
'(-v --version)'{-v,--version}'[show the version number and quit]' \ |
| 23 |
'(-h --help)'{-h,--help}'[show help message and quit]' \ |
| 24 |
':command: _command_names -e' \ |
| 25 |
'*::command arguments: _dispatch ${words[1]} ${words[1]}' |
| 26 |
|
| 27 |
case ${state} in |
| 28 |
terms) |
| 29 |
_values 'terminal definitions' /usr/share/terminfo/**/*(.:t) |
| 30 |
;; |
| 31 |
esac |