diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b9e33f0..9e07b308 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,8 @@ means foot can be PGO:d in e.g. sandboxed build scripts. See implements foot's old font sizing behavior. But, when **disabled**, foot will ignore the monitors' DPI and instead size fonts using the scale factor alone (https://codeberg.org/dnkl/foot/issues/206). +* `-w,--window-size-pixels` and `-W,--window-size-chars` command line + options to `footclient`. ### Changed diff --git a/client.c b/client.c index 8eb969d6..9887c514 100644 --- a/client.c +++ b/client.c @@ -37,6 +37,8 @@ print_usage(const char *prog_name) printf(" -t,--term=TERM value to set the environment variable TERM to (foot)\n" " --title=TITLE initial window title (foot)\n" " -a,--app-id=ID window application ID (foot)\n" + " -w,--window-size-pixels=WIDTHxHEIGHT initial width and height, in pixels\n" + " -W,--window-size-chars=WIDTHxHEIGHT initial width and height, in characters\n" " --maximized start in maximized mode\n" " --fullscreen start in fullscreen mode\n" " --login-shell start shell as a login shell\n" diff --git a/completions/zsh/_footclient b/completions/zsh/_footclient index a1307e97..3c375fd1 100644 --- a/completions/zsh/_footclient +++ b/completions/zsh/_footclient @@ -8,6 +8,8 @@ _arguments \ '--maximized[start in maximized mode]' \ '--fullscreen[start in fullscreen mode]' \ '--login-shell[start shell as a login shell]' \ + '(-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:()' \ '(-s --server-socket)'{-s,--server-socket}'[override the default path to the foot server socket ($XDG_RUNTIME_DIR/foot-$WAYLAND_DISPLAY.sock)]:server:_files' \ '--hold[remain open after child process exits]' \ '(-l --log-colorize)'{-l,--log-colorize}'[enable or disable colorization of log output on stderr]:logcolor:(never always auto)' \ diff --git a/doc/footclient.1.scd b/doc/footclient.1.scd index 5da91119..cc520391 100644 --- a/doc/footclient.1.scd +++ b/doc/footclient.1.scd @@ -32,6 +32,12 @@ terminal has terminated). Value to set the *app-id* property on the Wayland window to. Default: _foot_. +*-w*,*--window-size-pixels*=_WIDTHxHEIGHT_ + Set initial window width and height, in pixels. Default: _700x500_. + +*-W*,*--window-size-chars*=_WIDTHxHEIGHT_ + Set initial window width and height, in characters. Default: _not set_. + *--maximized* Start in maximized mode. If both *--maximized* and *--fullscreen* are specified, the _last_ one takes precedence.