mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
When specified, our PID is written to the specified file (or FD), after we've successfully started up. Only applicable in server mode.
23 lines
1.1 KiB
Text
23 lines
1.1 KiB
Text
#compdef foot
|
|
|
|
_arguments \
|
|
-s \
|
|
'(-c --config)'{-c,--config}'[path to configuration file (XDG_CONFIG_HOME/footrc)]:config:_files' \
|
|
'(-f --font)'{-f,--font}'[font name and style in fontconfig format (monospace)]:font:->fonts' \
|
|
'(-t --term)'{-t,--term}'[value to set the environment variable TERM to (foot)]:term:->terms' \
|
|
'(-g --geometry)'{-g,--geometry}'[window WIDTHxHEIGHT, in pixels (80x24 cells)]:geometry:()' \
|
|
'(-s --server)'{-s,--server}'[run as server; open terminals by running footclient]:server:_files' \
|
|
'--hold[remain open after child process exits]' \
|
|
'(-p --print-pid)'{-p,--print-pid}'[print PID to this file or FD when up and running (server mode only)]:pidfile:_files' \
|
|
'(-v --version)'{-v,--version}'[show the version number and quit]' \
|
|
'(-h --help)'{-h,--help}'[show help message and quit]'
|
|
|
|
case ${state} in
|
|
fonts)
|
|
_values 'font families' $(fc-list : family | tr -d ' ')
|
|
;;
|
|
|
|
terms)
|
|
_values 'terminal definitions' $(find /usr/share/terminfo -type f -printf "%f\n")
|
|
;;
|
|
esac
|