def on_property_notify(self, evname, xcb_event): # TODO: messy ugly code wid = xcb_event.window atom = self.atoms.get_name(xcb_event.atom) # window = self.windows.get(wid, Window(wm=self, wid=wid, mapped=True)) self.log.error("PropertyNotify: %s" % atom) run_("xprop -id %s %s" % (wid, atom))
def cb(event): run_(cmd)
def unknown_window(event, wid): run_("xprop -id %s" % wid) wm.on_new_window(wid)
def print_new_window_props(event, window: Window): run_("xprop -id %s" % window.wid)
ctrl = control = 'control' shift = 'shift' caps = 'Caps_Lock' alt = 'mod1' tab = 'Tab' MouseL = 1 MouseC = 2 MouseR = 3 log = Log("USER HOOKS") osd = OSD() mod = win # PRE-INIT # switch to english just in case run_("setxkbmap -layout en") # create event loop and setup text GUI loop = asyncio.new_event_loop() # logwidget = gui(loop=loop) # Log.file = logwidget # INIT num_desktops = 4 desktops = [Desktop(id=i, name=str(i + 1)) for i in range(num_desktops)] wm = WM(desktops=desktops, loop=loop) # MOUSE STUFF orig_pos = None orig_geometry = None
ctrl = control = 'control' shift = 'shift' caps = 'Caps_Lock' alt = 'mod1' tab = 'Tab' MouseL = 1 MouseC = 2 MouseR = 3 log = Log("USER HOOKS") osd = OSD() mod = win # PRE-INIT # switch to english just in case run_("setxkbmap -layout en") # create event loop and setup text GUI loop = asyncio.new_event_loop() # logwidget = gui(loop=loop) # Log.file = logwidget # INIT num_desktops = 4 desktops = [Desktop(id=i, name=str(i + 1)) for i in range(num_desktops)] wm = WM(desktops=desktops, loop=loop) # MOUSE STUFF orig_pos = None