Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Trouble with devilspie geometry

  1. #1
    Join Date
    Feb 2008
    Location
    KY
    Beans
    106
    Distro
    Ubuntu 10.04 Lucid Lynx

    Trouble with devilspie geometry

    I've finally got my conky configured the way that I like it, but I am now having trouble embedding a terminal on the desktop with devilspie in the location that I want it.
    I've gone through this guide to configure my terminal config file and all, and I can get it to work, but it is no where near the location that I want it on my desktop.
    I've searched on the issue and cannot find out how to do exactly what I'm asking, and after playing around with it for a while and having no luck, I thought I'd ask..
    Below is a screenshot of where I'd like to play my embedded terminal on my 1680x1050 res desktop.
    Attached Images Attached Images
    MacBook Air 13 i7 512GB SSD; Win8 Pro / XP Pro VMs
    Server: Pentium E5300, 4GB RAM, 2x 1TB & 2x 2TB HDDs on Ubuntu 12.04.1 LTS

  2. #2
    Join Date
    Oct 2006
    Location
    Cologne, Europe
    Beans
    2,570
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Trouble with devilspie geometry

    You can configure the placement of the GNOME terminal like this:
    Code:
    gnome-terminal --geometry +600+500
    Just fiddle with the values 'till it fits.

  3. #3
    Join Date
    Feb 2008
    Location
    KY
    Beans
    106
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Trouble with devilspie geometry

    I've figured out what my values need to be, and I've set them to that, but it still will not move the terminal itself.
    Here is the DesktopConsole.ds:
    Code:
    (if
            (matches (window_name) "DesktopConsole")
            (begin
                    (set_workspace 1)
                    (below)
                    (undecorate)
                    (skip_pager)
                    (skip_tasklist)
                    (wintype "utility")
                    (geometry "+1075+700")
                    (geometry "450x450")
            )
    )
    What is the problem? Here is what that .ds file produces.. (changed the wallpaper because with the black font in the terminal you can hardly see it, don't know how to change the font..)
    Attached Images Attached Images
    MacBook Air 13 i7 512GB SSD; Win8 Pro / XP Pro VMs
    Server: Pentium E5300, 4GB RAM, 2x 1TB & 2x 2TB HDDs on Ubuntu 12.04.1 LTS

  4. #4
    Join Date
    Oct 2006
    Location
    Cologne, Europe
    Beans
    2,570
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Trouble with devilspie geometry

    Like I said, the GNOME terminal has the ability to configure the placement itself. Why don't you just use that?

    And the font can be configured in the current profile.

  5. #5
    Join Date
    Feb 2008
    Location
    KY
    Beans
    106
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Trouble with devilspie geometry

    Ok, I didn't understand you, sorry. I'll mess around with it there. That can be configured to run automatically?

    Thanks
    MacBook Air 13 i7 512GB SSD; Win8 Pro / XP Pro VMs
    Server: Pentium E5300, 4GB RAM, 2x 1TB & 2x 2TB HDDs on Ubuntu 12.04.1 LTS

  6. #6
    Join Date
    Feb 2008
    Location
    KY
    Beans
    106
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Trouble with devilspie geometry

    I've now tried running this command, only to find that it flickers down at the bottom right and moves itself back to the top left..
    Code:
    gnome-terminal --window-with-profile=DesktopConsole --geometry +1075+700
    MacBook Air 13 i7 512GB SSD; Win8 Pro / XP Pro VMs
    Server: Pentium E5300, 4GB RAM, 2x 1TB & 2x 2TB HDDs on Ubuntu 12.04.1 LTS

  7. #7
    Join Date
    Feb 2008
    Location
    KY
    Beans
    106
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Trouble with devilspie geometry

    Ok, figured it out.
    Anyone else having this issue, follow the steps above, but remove the geometry parts of the DesktopConsole.ds and it should work out for you.
    Thanks Forlong.

    Edit: I still cannot really get it done the right way. I've added
    Code:
    gnome-terminal --window-with-profile=DesktopConsole --geometry +1075+700
    as a session as well as devilspie. After logging out and back in, the terminal is again placed in the top left corner, the geometry value seems to be ignored.
    Last edited by andrewbrown22; May 26th, 2008 at 06:36 PM.
    MacBook Air 13 i7 512GB SSD; Win8 Pro / XP Pro VMs
    Server: Pentium E5300, 4GB RAM, 2x 1TB & 2x 2TB HDDs on Ubuntu 12.04.1 LTS

  8. #8
    Join Date
    Oct 2006
    Location
    Cologne, Europe
    Beans
    2,570
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Trouble with devilspie geometry

    It is a long time since I used Devil's Pie but don't you have to add it to the startup programs as well?

    Then you might as well write a small script to run both:

    1.
    Code:
    gedit $HOME/start-desktopconsole
    2. Copy & paste the following in there:

    Code:
    #!/bin/bash
    devilspie &
    sleep 2
    gnome-terminal --window-with-profile=DesktopConsole --geometry +1075+700 &
    3. Save

    4. Now make it executable:
    Code:
    chmod +x $HOME/start-desktopconsole
    5. Finally add start-desktopconsole (it's a file in your home directory) to System → Preferences → Sessions → Startup Programs
    Last edited by Forlong; May 26th, 2008 at 08:19 PM.

  9. #9
    Join Date
    Feb 2008
    Location
    KY
    Beans
    106
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Trouble with devilspie geometry

    I was starting both devilspie and my terminal upon login. Both did start, but it didn't place the terminal in the area defined by the geometry value. I tried your method and it didn't produce anything on the desktop after logging out and back in.
    I've kept messing around with the values and still haven't found a solution that works.
    MacBook Air 13 i7 512GB SSD; Win8 Pro / XP Pro VMs
    Server: Pentium E5300, 4GB RAM, 2x 1TB & 2x 2TB HDDs on Ubuntu 12.04.1 LTS

  10. #10
    Join Date
    Oct 2006
    Location
    Cologne, Europe
    Beans
    2,570
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Trouble with devilspie geometry

    Did you remove the other things you added to your Startup Programs?

    And there's no need to log out, just run
    Code:
    $HOME/start-desktopconsole
    in the terminal and look for any error messages.

Page 1 of 2 12 LastLast

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
  •