Results 1 to 7 of 7

Thread: CCSM not resizing/moving

  1. #1
    Join Date
    Oct 2008
    Location
    With Internet
    Beans
    261
    Distro
    Ubuntu 10.04 Lucid Lynx

    CCSM not resizing/moving

    I am trying to make an window for gnome image viewer open at the same location (bottom left) and at the same size. I have been trying ccsm in the ubuntu 11.10 system but until now i didn't have any success.

    these are the settings that i have now that didn't fix this issue.



    can anyone tell me how i can fix this so that gnome image viewer opens at the bottom left with a 150p X 150p screen?
    Ubuntu user 33831

  2. #2
    Join Date
    Mar 2010
    Beans
    Hidden!

    Re: CCSM not resizing/moving

    Probably a bit easier would be to install devilspie and gdevilspie and use them. I've never had success with ccsm for this.

    devilspie runs as a daemon (can be set to run at startup) and monitors any rules for windows/applications you set in the gui (gdevilspie).

    Very easy to set the geometry rules, placement and size, for the windows you mention. When saving a rule remember to stop then restart the daemon from the rules window to see the changes and then alter if needed.

  3. #3
    Join Date
    Oct 2008
    Location
    With Internet
    Beans
    261
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: CCSM not resizing/moving

    i have installed devilspie and added this as my rule:


    ( if
    ( begin
    ( contains ( window_class ) "eog" )
    ( contains ( application_name ) "Image Viewer" )
    )
    ( begin
    ( geometry "542x484+0+0" )
    ( println "match" )
    )
    )


    still this doesn't work. can anyone tell me why?
    Ubuntu user 33831

  4. #4
    Join Date
    Mar 2010
    Beans
    Hidden!

    Re: CCSM not resizing/moving

    Quote Originally Posted by ssdt View Post
    i have installed devilspie and added this as my rule:


    ( if
    ( begin
    ( contains ( window_class ) "eog" )
    ( contains ( application_name ) "Image Viewer" )
    )
    ( begin
    ( geometry "542x484+0+0" )
    ( println "match" )
    )
    )


    still this doesn't work. can anyone tell me why?
    One that works here by comparison
    ( if
    ( begin
    ( is ( application_name ) "gdevilspie" )
    ( is ( window_name ) "gDevilspie" )
    )
    ( begin
    ( geometry "650x650+445+0" )
    ( println "match" )
    )
    )
    Note the application_name and window_name here where you have used application_name and window_class. This example keeps the main devilspie window to a 650x650 size and moves it across to middle top of the the screen.

  5. #5
    Join Date
    Oct 2008
    Location
    With Internet
    Beans
    261
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: CCSM not resizing/moving

    but it's not possible to edit the code. could you edit it?
    Ubuntu user 33831

  6. #6
    Join Date
    Mar 2010
    Beans
    Hidden!

    Re: CCSM not resizing/moving

    Quote Originally Posted by ssdt View Post
    but it's not possible to edit the code. could you edit it?
    You don't edit the raw output as you posted, you will need to select the Rule Name in the main window and click edit > Set up Matching rules (this is where you need to tick application_name and window_name) > Finally set up the geometry rules as you need them.

    See attached screenshots for a visual example of the above steps.
    Attached Images Attached Images
    • File Type: png 1.png (114.7 KB, 6 views)
    • File Type: png 2.png (180.7 KB, 6 views)
    • File Type: png 3.png (145.9 KB, 6 views)

  7. #7
    Join Date
    Oct 2008
    Location
    With Internet
    Beans
    261
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: CCSM not resizing/moving

    Solved. Thanks. I just had to change the window name to "Image Viewer" and not eog. thanks
    Ubuntu user 33831

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
  •