Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Center terminal on screen?



Positioning windows is the job of the window manager, not the shell or
terminal emulator.

You should be able to do it using wmctrl if your window manager implements
the EWMH API, which Xfce does: https://linux.die.net/man/1/wmctrl
See this answer for examples: https://askubuntu.com/a/104190/898

Le lun. 5 août 2019 à 09:48, Alwyn Kik <alwyn@xxxxxxxxxxx> a écrit :

> Fairly sure that's dependent on the terminal emulator you're using, not
> the shell you use in it.
>
> In your case, you would need to look up the possibility to do this with
> xfce4-terminal or install xterm and use that instead.
>
> On 8/4/19 1:23 AM, johnywhy@xxxxxxxxx wrote:
> > hi,
> >
> > is there a command to center the terminal window on the screen? On
> > arch linux / xfce, with zsh.
> >
> > This tip offers an escape sequence for positioning the window on
> > upper-left, but changing the values has no effect.
> > printf '\e[3;0;0t'
> > <
> https://apple.stackexchange.com/questions/33736/can-a-terminal-window-be-resized-with-a-terminal-command/47841#47841
> >
> >
> >
> > Thx!
> >
> >
> Cheers,
>
> Alwyn
>
>


Messages sorted by: Reverse Date, Date, Thread, Author