2019-11-01 20:39:34 +01:00
#compdef footclient
_arguments \
2020-05-08 18:45:05 +02:00
-s -S -C \
2019-12-14 13:02:33 +01:00
'(-t --term)'{-t,--term}'[value to set the environment variable TERM to (foot)]:term:->terms' \
2020-11-23 19:19:19 +01:00
'(-T --title)'{-T,--title}'[initial window title]:()' \
2020-04-01 19:58:09 +02:00
'(-a --app-id)'{-a,--app-id}'[value to set the app-id property on the Wayland window to (foot)]:()' \
2020-11-23 19:19:19 +01:00
'(-m --maximized)'{-m,--maximized}'[start in maximized mode]' \
'(-F --fullscreen)'{-F,--fullscreen}'[start in fullscreen mode]' \
'(-L --login-shell)'{-L,--login-shell}'[start shell as a login shell]' \
2021-02-12 09:46:22 +01:00
'(-D --working-directory)'{-D,--working-directory}'[initial working directory for the client application (CWD)]:working_directory:_files' \
2020-11-22 18:36:37 +00:00
'(-w --window-size-pixels)'{-w,--window-size-pixels}'[window WIDTHxHEIGHT, in pixels (700x500)]:size_pixels:()' \
'(-W --window-size-chars)'{-W,--window-size-chars}'[window WIDTHxHEIGHT, in characters (not set)]:size_chars:()' \
2020-08-02 13:10:31 +02:00
'(-s --server-socket)'{-s,--server-socket}'[override the default path to the foot server socket ($XDG_RUNTIME_DIR/foot-$WAYLAND_DISPLAY.sock)]:server:_files' \
2020-11-23 19:19:19 +01:00
'(-H --hold)'{-H,--hold}'[remain open after child process exits]' \
2021-03-13 07:49:57 -03:00
'(-N --no-wait)'{-N,--no-wait}'[detach the client process from the running terminal, exiting immediately]' \
2021-06-23 14:34:50 +02:00
'(-o --override)'{-o,--override}'[configuration option to override, in form SECTION.KEY=VALUE]:()' \
2021-06-26 22:15:09 +01:00
'(-d --log-level)'{-d,--log-level}'[log level (info)]:loglevel:(info warning error none)' \
2020-02-05 19:54:16 +01:00
'(-l --log-colorize)'{-l,--log-colorize}'[enable or disable colorization of log output on stderr]:logcolor:(never always auto)' \
2019-11-01 20:39:34 +01:00
'(-v --version)'{-v,--version}'[show the version number and quit]' \
2020-05-08 18:45:05 +02:00
'(-h --help)'{-h,--help}'[show help message and quit]' \
':command: _command_names -e' \
'*::command arguments: _dispatch ${words[1]} ${words[1]}'
2019-11-01 21:10:47 +01:00
case ${state} in
terms)
2021-01-21 14:23:20 +00:00
_values 'terminal definitions' /usr/share/terminfo/**/*(.:t)
2019-11-01 21:10:47 +01:00
;;
esac