Is it possible to control window positioning using keyboard shortcuts in Ubuntu?

5,991

Solution 1

In my case, this can be done with Compiz Setting Manager.

  1. First, you'll need to download Compiz (Skip this part if you already own it).

    sudo apt-get install compizconfig-settings-manager compiz-plugins
    
  2. Open compiz, then navigate to Window Management category which located on the left pane.
  3. Enable Grid plugin.
  4. Set your own desired shortcut/keybinding for tiling window, simply click the corresponding action key, then change it to whatever you want.

enter image description here

Solution 2

Super(Windows)+Left and Super+Right work the same on Ubuntu 17.10. They split the window and place it on the left/ right side.
But the Up and Down are different. Super+Up maximize window and Super+Down restore it to the original smaller size.
You can see the shortcut list on Settings > Devices > Keyboard.

Before on 17.04 it's the same, but with Ctrl: Ctrl+Super+Left etc. And the Down minimizes the window.

Solution 3

Back in the good old days (before 17.10) there was a really nice display of shortcuts when the user held super (the windows key). As you can see there were incredibly powerful Window Placement shortcuts that TooManyPets mentioned.

Now, for some god forsaken reason, they got rid of that menu and switched to an even less functional version of how windows does it: super+arrow-key

All of the Pre-Defined shortcuts and how to find them is described at https://help.ubuntu.com/stable/ubuntu-help/keyboard-shortcuts-set.html

Share:
5,991

Related videos on Youtube

Nickolai Leschov
Author by

Nickolai Leschov

Updated on September 18, 2022

Comments

  • Nickolai Leschov
    Nickolai Leschov over 1 year

    In Lubuntu, it is possible to control window positioning on the desktop using keyboard shortcuts, as follows:

    • Windows + - window occupies left half of the desktop
    • Windows + - window occupies right half of the desktop
    • Windows + - window occupies upper half of the desktop
    • Windows + - window occupies lower half of the desktop

    Are there similar keyboard shortcuts in Ubuntu (Unity)?

    • TooManyPets
      TooManyPets about 7 years
      Yes. Does your keyboard have a numeric keypad?
    • Nickolai Leschov
      Nickolai Leschov about 7 years
      @TooManyPets Sure, it has. Not on a laptop, though.
  • Johan Hoeksma
    Johan Hoeksma about 7 years
    This is the perfect awnser when you dont have a keypad :D. Worked out of the box.
  • OBLE Codemonkey
    OBLE Codemonkey over 6 years
    For some reason this doesn't work since 17.10 for me. The settings are the same, I have a keypad and happily used it for gridding before. And now I have no idea what to do…
  • Sergiy Kolodyazhnyy
    Sergiy Kolodyazhnyy over 6 years
    For the record, this answer is redundant. Unity has grid enabled by default and the shortcuts work out of the box.
  • kabdulla
    kabdulla about 5 years
    Do you happen to know if there's a way to achieve the numpad window positioning? I really liked the ability to have upper/lower as well as left/right window tiling so easily.
  • brenthompson2
    brenthompson2 about 5 years
    I also really liked the upper/lower window positioning. Windows uses the same keys as what Ubuntu switched to and it is able to do that. Unfortunately, I haven't been able to do it on Ubuntu since updating.
  • kabdulla
    kabdulla about 5 years
    Found a work-around which involves a plugin which can be installed on top of chrome of firefox: askubuntu.com/a/1089033/588928 Doesn't seem to be as good as the old way of doing it - but seems to work.