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

Thread: Moving windows borders with cursor keys

  1. #1
    Join Date
    Feb 2012
    Beans
    387

    Moving windows borders with cursor keys

    Is there a way to move the borders of a window on the screen without using the mouse?

  2. #2
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Moving windows borders with cursor keys

    In a non-maximized window do the following:

    1. Press the Alt+Space keys simultaneously
    2. A menu should open
    3. Navigate to the Move option using your cursor keys (arrow keys) or alternatively press the letter 'm'
    4. The mouse pointer will appear in the middle of the window
    5. Use the cursor keys to move the window up, down, right, or left
    6. Once the window is positioned, press “Enter”.

  3. #3
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Moving windows borders with cursor keys

    You can use the same method also to change the window size, move to another workplace, etc.

  4. #4
    Join Date
    Jan 2009
    Location
    Belgium (Ghent)
    Beans
    481
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Moving windows borders with cursor keys

    Dutch speaking; understand English, writing is a bit difficult. Member of: http://forum.ubuntu-nl.org
    be Open be Free be Ubuntu Reg. User #485479
    Ubuntu 13.10 Saucy Salamander - Ubuntu 14.04 Trusty Tahr

  5. #5
    Join Date
    Feb 2012
    Beans
    387

    Re: Moving windows borders with cursor keys

    Thanks Guys, but no luck.
    I could move the window around the screen, but not adjust any of the four borders independently. Also on my laptop Presario-CQ57-Notebook I don't know how to do
    Ctrl+Alt+Num 1 = moves the window to the bottom left corner
    Ctrl+Alt+Num 2 = moves the window to the bottom half of the screen
    Ctrl+Alt+Num 3 = moves the window to the bottom right corner
    Ctrl+Alt+Num 4 = moves the window to the left half of the screen
    Ctrl+Alt+Num 5 = maximizes the window
    Ctrl+Alt+Num 6 = moves the window to the right half of the screen
    Ctrl+Alt+Num 7 = moves the window to the right left corner
    Ctrl+Alt+Num 8 = moves the window to the top half of the screen
    Ctrl+Alt+Num 9 = moves the window to the right right coner

    If I press ctr-alt-number, nothing happens.

  6. #6
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    6,181
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Moving windows borders with cursor keys

    I think slickymaster's answer is relevant because OP specified Lubuntu. The link you provided relates to Ubuntu which doesn't use Openbox as the window manager.
    de gustibus et coloribus non est disputandum -- Wiktionary

  7. #7
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    6,181
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Moving windows borders with cursor keys

    Okay, so you want to resize windows and move them or just resize them?
    If you want to resize them, you may need to look at ~/.config/openbox/lubuntu-rc.xml. There, you can set up keyboard combinations of your choice: http://pclosmag.com/html/Issues/201107/page08.html is a good starting point and of course you can look at the Openbox pages starting at http://openbox.org/wiki/Help:Contents#Configuration. I'm mentioning Openbox because that is what makes possible what you want to do.

    Check out http://openbox.org/wiki/Help:Actions, especially section 5.22 and the following ones.
    Last edited by vasa1; October 4th, 2013 at 03:03 AM.
    de gustibus et coloribus non est disputandum -- Wiktionary

  8. #8
    Join Date
    Feb 2012
    Beans
    387

    Re: Moving windows borders with cursor keys

    I put
    <keybind key="W-F10">
    <action name="MoveResizeTo">
    <!-- put the window in the bottom right corner -->
    <x>-0</x>
    <y>-0</y>
    </action>
    </keybind>

    into
    ~/.config/openbox/lubuntu-rc.xml

    and when I did SuperUser Key + F10

    it acted like alt-f

  9. #9
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    6,181
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Moving windows borders with cursor keys

    Did you run "openbox --reconfigure"?

    https://help.ubuntu.com/community/Lu..._Using_a_Mouse

    Your code works as you'd expect for me.

    Did you make any changes to lubuntu-rc.xml previously?
    Last edited by vasa1; October 4th, 2013 at 05:22 AM.
    de gustibus et coloribus non est disputandum -- Wiktionary

  10. #10
    Join Date
    Feb 2012
    Beans
    387

    Re: Moving windows borders with cursor keys

    I don't run reconfigue, I just turn the machine off and then on. I do this for any changes I make in the lubuntu-rc.xml file, which I've been doing for a long time now.

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
  •