pkkid / x11pygrid

Quickly move windows around the an X11 desktop
GNU General Public License v2.0
324 stars 41 forks source link

Not working in LinuxMint 20 #26

Closed spartan closed 4 years ago

spartan commented 4 years ago

System:

System:    Kernel: 5.4.0-48-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.6.7 
           Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal

Error on run:

$ ./pygrid.py 
./pygrid.py:81: PyGIDeprecationWarning: GObject.io_add_watch is deprecated; use GLib.io_add_watch instead
  GObject.io_add_watch(self.root.display, GObject.IO_IN, self._check_event)
./pygrid.py:81: PyGIDeprecationWarning: GObject.IO_IN is deprecated; use GLib.IO_IN instead
  GObject.io_add_watch(self.root.display, GObject.IO_IN, self._check_event)
PyGrid running. Press CTRL+C to cancel.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 671, in <lambda>
    func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
  File "./pygrid.py", line 102, in _check_event
    command = self.keys[event.detail]
KeyError: 37
spartan commented 4 years ago

I managed to fix the deprecated warnings but no luck with shortcuts:

I am on X and it worked in another LinuxMint installation:

echo $XDG_SESSION_TYPE
x11
spartan commented 4 years ago

Nevermind, I've installed QuickTile and it worked flawlessly.