Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: unity: how to launch a terminal window to s specific location

  1. #11
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: unity: how to launch a terminal window to s specific location

    Quote Originally Posted by guber2 View Post
    xterm supports -geometry.
    Place an xterm window to a size and position where you want it.
    Run xwininfo and click on the xterm window.
    The last line will show something like "-geometry 112x27+466+281"

    Then xterm command would be
    Code:
    xterm -geometry 112x27+466+281
    what is running is not xterm. it is /usr/lib/gnome-terminal/gnome-terminal-server which doesn't support -geometry. the man page for gnome-terminal shows --geomtry (two - characters). that doesn't work either. maybe it's time to change terminal program and avoid Gnome stuff.
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

  2. #12
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: unity: how to launch a terminal window to s specific location

    Quote Originally Posted by guber2 View Post
    Do you want to move an existing terminal window to a certain position or
    do you want launch a new terminal to a certain position?
    i want to configure a launcher button to start the terminal program so that opens its window at a specific location _OR_ have it start looking for a place to open the window at the right side instead of the left side (which is the default). i want to have, as an end result, two terminal programs side-by-side, NOT butted up right next to each other (leave at least 8 pixels of gap).

    right now if i click the one button i have configured for an 82x46 terminal, twice, the 1st window opens as far left as possible and the 2nd window opens as far left as it can without overlapping, which is way to the right with about 30 pixels of space on the far right. i want to get the 2nd terminal further right without having to manually move it. a solution with 2 separate buttons is fine. a solution that fails with more than 2 windows per workspace is fine (i am only going to open 2 terminal windows in workspaces that i do this in)
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

  3. #13
    Join Date
    Mar 2017
    Beans
    1,018

    Re: unity: how to launch a terminal window to s specific location

    You specified xterm.
    Quote Originally Posted by Skaperen View Post
    ....but i need to find docs on how to do this with xterm......
    gnome-terminal uses a double dash with geometry.
    Code:
    gnome-terminal --geometry 82x46+970+0

  4. #14
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,187

    Re: unity: how to launch a terminal window to s specific location

    here's a thought, just tossing it out after playing with ubuntu-budgie.

    how about a single terminal that can do multiple tiles? from what i read, tilix terminal is customize-able.
    https://itsfoss.com/tilix-terminal-emulator/

    for you multitasking power users. lol

  5. #15
    Join Date
    Mar 2017
    Beans
    1,018

    Re: unity: how to launch a terminal window to s specific location

    I think I see what you mean though.
    I booted into unity and created 2 quicklist items to launch a left and right terminal side by side
    but the left terminal doesn't want to position to the right edge.
    Watch video----> https://streamable.com/gu67k

    I'll keep playing around to see if I can get a term to position correctly.

    Edit: I found if I use separate profiles for each terminal they position properly.
    I created the profiles termL and termR.
    Attachment 279157

    Then used these commands:
    termL
    Code:
    gnome-terminal --window-with-profile=termL --geometry 121x54+41+0
    termR
    Code:
    gnome-terminal --window-with-profile=termR --geometry 58x54-4+0
    Video ----> https://streamable.com/ulajh
    Last edited by again?; April 2nd, 2018 at 04:50 AM.

  6. #16
    Join Date
    Mar 2017
    Beans
    1,018

    Re: unity: how to launch a terminal window to s specific location

    You can disregard the profiles although it doesn't hurt to use different profiles as you can use different color schemes.
    I had changed the initial terminal size in the profiles which appears to be the fix.
    Change the "initial terminal size" to the lowest setting.

  7. #17
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: unity: how to launch a terminal window to s specific location

    [QUOTE=guber2;13753254]You specified xterm.

    i was speaking generically at first. i discovered which exact program later on. sorry for the confusion. my previous experience with X windows is from before Ubunutu. back then, any program emulating a terminal on X windows was named xterm and systems with more than one would use that name as a redirection point (symlink).

    given the incorrect options of the gnome program, i am looking into an overall switch of terminal emulator. or may i need to switch to a new DE.
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

  8. #18
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: unity: how to launch a terminal window to s specific location

    Quote Originally Posted by kerry_s View Post
    here's a thought, just tossing it out after playing with ubuntu-budgie.

    how about a single terminal that can do multiple tiles? from what i read, tilix terminal is customize-able.
    https://itsfoss.com/tilix-terminal-emulator/

    for you multitasking power users. lol
    that seems like a possible way. so, how do i set up a Unity launcher button to launch one with the desired setup ... not fullscreen but takes up as much of the window space as it can ... two virtual terminals, side by side.
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

  9. #19
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: unity: how to launch a terminal window to s specific location

    Quote Originally Posted by guber2 View Post
    i was waiting to see one button action open both terminals.
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

  10. #20
    Join Date
    Mar 2017
    Beans
    1,018

    Re: unity: how to launch a terminal window to s specific location

    Between this and the other thread I thought you would have enough info to work something out.
    I'm using xfce4-terminal so I can use the title flag.
    Example:
    /home/glen/.local/share/applications/tiled-terminals.desktop (custom icon attached)(edit for your paths)
    Code:
    [Desktop Entry]
    Name=Tiled Terminals
    Comment=Terminal Emulator
    Exec=/home/glen/scripts/aatest.sh
    Icon=/media/Data/glen/Pictures/icons/tiling-terminal.png
    Terminal=false
    Type=Application
    Categories=GTK;System;TerminalEmulator;
    StartupNotify=true
    /home/glen/scripts/aatest.sh (edit for your custom sizes)
    Code:
    #!/bin/bash
    xfce4-terminal --title=termL --geometry 94x52+39--13 &
    xfce4-terminal --title=termR --geometry 67x52--10--13
    Using a 3x3 desktop, edit ccsm > window management > place windows to open
    terminals of title termR or termL on workspace 2.
    Code:
    title=termL | title=termR
    Attachment 279176

    Left clicking launcher opens 2 xfce4-terminals of custom position and size.
    For normal terminals use the default gnome-terminal launcher.
    vid---> https://streamable.com/wu2xs
    Last edited by again?; April 5th, 2018 at 06:43 AM.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •