8

I want to create a shortcut to pack the view of the current program on an area of my window.

It's like super+left shortcut, that shows as "split view on left" on keyborad->shortcut1 configuration, but I want to set super+numpad_8 to "split view on top", super+numpad_9 to "split view on top right corner", and so on.

How can I manage to define such shortcut? Which command can I define on "Command" in the "Add Custom Shortcut" window1?

Add Custom Shortcut Window

PS: I'm using Ubuntu 18.04.3

Artur Meinild
  • 21,605
  • 21
  • 56
  • 89
  • 1
    See here https://askubuntu.com/questions/26346/how-to-use-window-snapping-for-ubuntu and here https://askubuntu.com/questions/25409/how-to-emulate-windows-window-snapping-grid-shortcuts – codlord May 25 '20 at 22:11
  • 1
    To start with, which Linux distro have you installed (Ubuntu server, Ubuntu desktop, Kubuntu, Lubuntu, Xubuntu, Ubuntu MATE, Mint, et al.), & which release number? Different releases have different tools for us to recommend. Please click [edit] & add that to your question, so all facts we need are in the question. Please don't use Add Comment, since that's our one-way channel to you. All facts about your PC should go in the Question with [edit] as this is a Q&A site, not a general forum, so things work differently here. – K7AAY May 26 '20 at 17:10
  • 1
    The links pointed to by @codlord are outdated and don't work for Gnome. They are more than 10 years old and are designed for older Unity desktop. I am having a hard time to do this in Ubuntu 20.04 – Jus12 Jan 17 '21 at 20:56

1 Answers1

5

Following GNOME extensions might help you:

  1. ShellTile - Extensions GNOME Shell
    A tiling window extension for GNOME Shell. Just move a window to the edges of the screen to create a tiling, otherwise move a window over another one, holding down the Control key. Grouped windows minimize, resize, raise and change workspace together. Move or maximize a window to remove it from the group.
    Default keyboard accelerators that can be joined for quarter tiling:
    CtrlSuper Left : Tile to the left border
    CtrlSuper Right : Tile to the right border
    CtrlSuper Up : Tile to the top border
    CtrlSuper Down : Tile to the bottom border

  2. Put Windows - Extensions GNOME Shell
    Fully customizable replacement for the old compiz put plugin.

  • Move windows to left/right side, bottom/top, center or corner
  • Move window to other screen
  • Select focused window using the keyboard
  • Application based window placement
    Check out this AskUbuntu-answer for more details including how to install a GNOME extension.

Otherwise these system features shortcuts and modifiers can help you arrange windows quickly without any extension:

  • Move a window by dragging the titlebar, or hold down Super and drag anywhere in the window. Hold down Shift while moving to snap the window to the edges of the screen and other windows.
  • Resize a window by dragging the edges or corner of the window. Hold down Shift while resizing to snap the window to the edges of the screen and other windows.
Filbuntu
  • 12,241
  • 34
  • 87
  • 110