3

I'm looking for a way to move windows to screen corners (top-left, top, top-right, right, bottom-right, bottom, bottom-left, left, maximize) using keyboard shortcuts on Ubuntu 18.04 (Gnome Shell 3.28.3).

What I tried that does not work:

  • In settings/keyboard shortcuts, there is no way to move window to corners, only to move between screens, workspaces and whatsoever
  • the "CompizConfig Settings manager" allows to enable "Grid" and to set keyboard bindings, but they don't have any effect when pressed
  • before Ubuntu 18.04, I used quicktile (https://github.com/ssokolow/quicktile), but it does not work correctly anymore, also its quite bloated and stuck on Python 2

I would be ok to write a (preferably Python) script to move windows like quicktile does (which high level display library should I use for that nowadays)?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Wolkenarchitekt
  • 20,170
  • 29
  • 111
  • 174
  • 1
    Asking for a library recommendation is off-topic here, and this question as written is more suitable for [ubuntu.se] instead. – Ken White Sep 07 '18 at 01:12

2 Answers2

2

Seems that "Put windows" https://extensions.gnome.org/extension/39/put-windows/ is "enough" to do it, though it seems to be a bit buggy sometimes. To install it via Chrome, you need to install these packages first:

apt-get install chrome-gnome-shell gnome-shell-extensions

I needed to restart Gnome to make it work.

Wolkenarchitekt
  • 20,170
  • 29
  • 111
  • 174
  • however, this doesn't move windows to a second screen. No full happiness in life. – fer Sep 22 '19 at 17:25
1

I wrote a basic Python script to move windows into screen corners, since all solutions I tried where buggy (gaps between windows and screen corners, windows accidentally moving to other screen), also since this allows to completely customize everything related:

https://github.com/ifischer/window-tiler

Wolkenarchitekt
  • 20,170
  • 29
  • 111
  • 174