Пример #1
0
 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))
Пример #2
0
 def cb(event):
     run_(cmd)
Пример #3
0
def unknown_window(event, wid):
    run_("xprop -id %s" % wid)
    wm.on_new_window(wid)
Пример #4
0
def print_new_window_props(event, window: Window):
    run_("xprop -id %s" % window.wid)
Пример #5
0
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
Пример #6
0
def unknown_window(event, wid):
    run_("xprop -id %s" % wid)
    wm.on_new_window(wid)
Пример #7
0
def print_new_window_props(event, window: Window):
    run_("xprop -id %s" % window.wid)
Пример #8
0
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