Results 1 to 4 of 4

Thread: terminal, open program and set screen dimensions

  1. #1
    Join Date
    Nov 2009
    Location
    de9fdc5c1ade9d205ac5e2622
    Beans
    Hidden!
    Distro
    Xubuntu 12.04 Precise Pangolin

    terminal, open program and set screen dimensions

    I want to open a program, specifically ADOM www.adom.de, and set the scree to a resolution that it will play under.

    I currently have to maximize the terminal screen, then run adom. Is there anything I can do that makes it where the screen automatically adjusts to the screen size needed when I run the program? I assume I would then add this to the ~/.bashrc alias lists and make a new alias for the command.

    Thanks,

    AlphaA
    "Si Dieu n'existait pas, il faudrait l'inventer" -Voltaire

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: terminal, open program and set screen dimensions

    Add the following command to ~/.bashrc:
    Code:
    alias adom='xfce4-terminal --geometry 77x25 -x /path/to/adom'
    ...make sure you change "/path/to/adom" to be the real path to your adom executable.

    To have it take effect for your current terminal session, source the newly updated .bashrc file:
    Code:
    . ~/.bashrc
    Then in the same terminal window, run:
    Code:
    adom

  3. #3
    Join Date
    Nov 2009
    Location
    de9fdc5c1ade9d205ac5e2622
    Beans
    Hidden!
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: terminal, open program and set screen dimensions

    Great! Thanks, works perfectly.

    Id
    "Si Dieu n'existait pas, il faudrait l'inventer" -Voltaire

  4. #4
    Join Date
    Apr 2008
    Location
    ireland
    Beans
    540
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: terminal, open program and set screen dimensions

    another method is to use gdevilspie, you can set rules for size, position on screen, start minimized etc. once your rules are set you can just run a bash script to run the backend devilspie, so there will not be an extra window open i.e gdevilspie.

    oh and the script can be run from your startup programs ( the gear at the top right of the screen > startup applications )
    Last edited by neu2buntu; January 25th, 2013 at 02:21 AM. Reason: more info
    using.... ACER ASPIRE ONE and ACER ASPIRE 5332
    running.... Ubuntu 12.04

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
  •