[-- Attachment #1: Type: text/plain, Size: 365 bytes --] 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!
[-- Attachment #1: Type: text/plain, Size: 355 bytes --] On 8/3/19 5:23 PM, johnywhy@gmail.com wrote: > hi, Hi, > is there a command to center the terminal window on the screen? On arch > linux / xfce, with zsh. Try Settings -> Window Manager Tweaks -> Placement -> By default, place windows "At the center of the screen". Does that do what you want? -- Grant. . . . unix || die [-- Attachment #2: S/MIME Cryptographic Signature --] [-- Type: application/pkcs7-signature, Size: 4008 bytes --]
[-- Attachment #1: Type: text/plain, Size: 673 bytes --] 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@gmail.com 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
[-- Attachment #1: Type: text/plain, Size: 1135 bytes --] 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@proteon.com> 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@gmail.com 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 > >
[-- Attachment #1: Type: text/plain, Size: 46 bytes --] Thx for all the great answers to my question!