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 Kubuntu 20.04 #25

Closed o0-o closed 1 year ago

o0-o commented 4 years ago

Not sure how actively maintained this is, but I'm getting the following errors in Kubuntu 20.04.

/usr/local/bin/pygrid: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)
/usr/local/bin/pygrid: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.
X protocol error:
<class 'Xlib.error.BadAccess'>: code = 10, resource_id = 931, sequence_number = 14, major_opcode = 33, minor_opcode = 0
X protocol error:
<class 'Xlib.error.BadAccess'>: code = 10, resource_id = 931, sequence_number = 15, major_opcode = 33, minor_opcode = 0
X protocol error:
<class 'Xlib.error.BadAccess'>: code = 10, resource_id = 931, sequence_number = 34, major_opcode = 33, minor_opcode = 0
X protocol error:
<class 'Xlib.error.BadAccess'>: code = 10, resource_id = 931, sequence_number = 35, major_opcode = 33, minor_opcode = 0
X protocol error:
<class 'Xlib.error.BadAccess'>: code = 10, resource_id = 931, sequence_number = 36, major_opcode = 33, minor_opcode = 0
/usr/local/bin/pygrid:145: DeprecationWarning: Gdk.Screen.get_active_window is deprecated
  window = screen.get_active_window()
/usr/local/bin/pygrid:123: DeprecationWarning: Gdk.Screen.get_monitor_at_window is deprecated
  monitorid = screen.get_monitor_at_window(window)
/usr/local/bin/pygrid:171: DeprecationWarning: Gdk.Screen.get_monitor_workarea is deprecated
  workarea = screen.get_monitor_workarea(monitorid)
  Unable to move window: 'move-to-bottom'
  Unable to move window: 'move-to-top'
  Unable to move window: 'move-to-right'
  Unable to move window: 'move-to-right'
Exadra37 commented 4 years ago

Maybe you have an error in your keys map?

My working configuration ~/.config/pygrid.json in Ubuntu 20.04:

{
  "default": {
    "maxheight": 0.5,
    "maxwidth": 0.5,
    "minheight": 0.33,
    "minwidth": 0.25,
    "padding": [
      0,
      0,
      0,
      0
    ],
    "snaptocursor": false,
    "spacing": 4,
    "xdivs": 2,
    "ydivs": 2
  },
  "keys": {
    "accelerator": "<Ctrl><Shift>",
    "commands": {
      "0": "maximize",
      "1": "bottomleft",
      "2": "bottom",
      "3": "bottomright",
      "4": "left",
      "5": "middle",
      "6": "right",
      "7": "topleft",
      "8": "top",
      "9": "topright",
      "m": "cycle-monitor"
    }
  }
}

So I use ctrl + shift to access one of the numeric keys that are below the function keys(my laptop doesn't have a key pad).

o0-o commented 1 year ago

I am no longer using Kubuntu so I will close this.