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

Thread: Aero Snap function?

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Beans
    64

    Re: Aero Snap function?

    Quote Originally Posted by ShawnB391 View Post
    This is exactly the same problem that I'm having, and unfortunately its causing me to not use the Aero Snap function. Can anyone come up with a solution?
    Im hot on trail for a possible solution however it may take me some time. I know we can detect x11 input events using C++ however my code knowledge isnt quite that advanced. Basicly all we need to do is run the following pseudocode:

    Code:
    if X11InputEvent.clicked = true {
       execute resize command;
    } else {
      // do nothing
    }
    I am aiming at just creating a single script that will house all the commands so we are not looking at the word salad that we posted before. Something like windowcheck.sh --maximize

    I will work more on it tommorow since its my day off

  2. #2
    Join Date
    Jan 2008
    Beans
    64

    Re: Aero Snap function?

    well, I think i may have found the solution but I dont know enough about shell scripting to figure out the new issue I am having. If you know anything about shell scripting please take a look at the following code and help me debug it.

    Code:
    #!/bin/sh
    
    if [ xinput --query-state 11 | grep down ] then
            wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
    else
            exit 1
    fi
    the xinput line needs to be set to the id of your mouse (just run "xinput list" to find it out)
    Last edited by gotsanity; April 29th, 2010 at 05:48 AM. Reason: edited for typos

  3. #3
    Join Date
    Dec 2009
    Location
    United Kingdom
    Beans
    220
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Aero Snap function?

    I actually like the mouse cursor resizing windows. I have a wide screen display 1920x1080 so the mouse does not wander to the extreme left or right often.
    If you use snap to stack your windows on the left half of the screen.
    By clicking on the top of each window in turn and moving your mouse to the right - you can flip through them like the pages of a book.
    Quicker to use the window switcher I suppose. Thank you all for this - it's a great addition.
    A vivid and creative mind characterizes you.
    ATI Radeon HD6850, E7300 Core2duo, Asus P5Q

  4. #4
    Join Date
    Nov 2008
    Beans
    30
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Aero Snap function?

    http://forum.compiz.org/viewtopic.ph...p=77510#p77510

    This all just should be a option in the menu... Because alot people want to use it. Hopefully Compiz just find a solution to add this nice feature in the next release of Compiz.

  5. #5
    Join Date
    Mar 2007
    Beans
    157

    Re: Aero Snap function?

    hey guys, I can't get it working...here is my xinput

    ⎡ Virtual core pointer id=2 [master pointer (3)]
    ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
    ⎜ ↳ DualPoint Stick id=12 [slave pointer (2)]
    ⎜ ↳ AlpsPS/2 ALPS DualPoint TouchPad id=13 [slave pointer (2)]
    ⎜ ↳ Macintosh mouse button emulation id=14 [slave pointer (2)]
    ⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
    ↳ Video Bus id=6 [slave keyboard (3)]
    ↳ Video Bus id=7 [slave keyboard (3)]
    ↳ Power Button id=8 [slave keyboard (3)]
    ↳ Sleep Button id=9 [slave keyboard (3)]
    ↳ Laptop_Integrated_Webcam_0.3M id=10 [slave keyboard (3)]
    ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
    ↳ Dell WMI hotkeys id=15 [slave keyboard (3)]


    I tried ids of 12, 13, 14 but nada. Also, this is a Dell laptop with both the touchpad and the little keyboard knob dealy. not sure if that matters. I used the code as supplied in an earlier post and didn't change anything. What gives?

    Thanks!

  6. #6
    Join Date
    May 2008
    Location
    Greece/Athens
    Beans
    965
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Aero Snap function?

    Quote Originally Posted by Hund View Post
    I would like to have a function like "Aero Snap" found in Windows.

    http://www.youtube.com/watch?v=TbsnbjkrWus

    Would be nice if Compipz had a plugin for this. But I cant find any info about it.

    i use compiz's grid alongside easystroke (a mouse gestures application)

    it works better than the original aero snap to be honest, as i don't have to actually move the window, i just paint a line towards where i want it to go.

    i also liked it better than the idea suggested on the posts before mine (i have tried that one as well)

Page 2 of 2 FirstFirst 12

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
  •