예제 #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
파일: myconfig.py 프로젝트: kopchik/swm
def unknown_window(event, wid):
    run_("xprop -id %s" % wid)
    wm.on_new_window(wid)
예제 #4
0
파일: myconfig.py 프로젝트: kopchik/swm
def print_new_window_props(event, window: Window):
    run_("xprop -id %s" % window.wid)
예제 #5
0
파일: myconfig.py 프로젝트: kopchik/swm
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
파일: myconfig.py 프로젝트: kopchik/swm
def unknown_window(event, wid):
    run_("xprop -id %s" % wid)
    wm.on_new_window(wid)
예제 #7
0
파일: myconfig.py 프로젝트: kopchik/swm
def print_new_window_props(event, window: Window):
    run_("xprop -id %s" % window.wid)
예제 #8
0
파일: myconfig.py 프로젝트: kopchik/swm
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