Results 1 to 4 of 4

Thread: Panel shortcut to minimize active window; resize / move windows with right mouse drag

  1. #1
    Join Date
    Oct 2007
    Beans
    14

    Panel shortcut to minimize active window; resize / move windows with right mouse drag

    I am trying to build a very customized interface. I am a great fan of global menus and window buttons, because I think they're fast and comfortable.

    I already managed to make the mac-style menu work (global menu, search on google), but I also wanted to have global close / maximize / minimize buttons.
    I managed to add the close and maximize buttons, installing wmctrl and creating launchers with the following commands:

    Close
    Code:
    wmctrl -c :ACTIVE:
    Maximize/Restore
    Code:
    wmctrl -r :ACTIVE: -b toggle,maximized_vert,maximized_horz
    The problem is that wmctrl doesn't seem to support minimizing of the active window. Do you know a program and/or command to make it work?


    Another thing that I'm trying to do is to enable window moving and resizing by dragging only the right mouse button. (I know this can be done with alt+leftclick and alt+middleclick, but that's not what I want), but I don't know if something like this is possible.


    I use Compiz as the default Window Manager.

  2. #2
    Join Date
    Oct 2007
    Beans
    14

    Re: Panel shortcut to minimize active window; resize / move windows with right mouse

    I found a way to minimize from a launcher, but I still want to know if there's a way to move windows by dragging the right mouse button.

    Also, do you know any terminal programs/commands that give in output the name of the active window?

  3. #3
    Join Date
    Dec 2008
    Beans
    135
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Panel shortcut to minimize active window; resize / move windows with right mouse

    Could you explain how you were able to minimize a window from a launcher? Was that still in compiz, or did you have to use a different window manager?
    Running 64-bit Maverick on this computer: [link]
    -Upgraded to 3 gigs of RAM, Radeon x700 graphics card.

  4. #4
    Join Date
    Nov 2008
    Beans
    92

    Re: Panel shortcut to minimize active window; resize / move windows with right mouse

    This gives you the ID of the active Window:

    xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)" |awk '{print $5}'|sed 's/0x/0x0/g'

    I dont't know why, but I had to make this to have it working in a Bash script:

    a=$(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)" )
    akt=$(echo $a |awk '{print $5}'|sed 's/0x/0x0/g')


    Moving windows could be done with xbindkeys. Assign alt+leftclick to right mouse button. Don't know if that works, but if I would try that way.

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
  •