Exemple #1
0
class MyClient(
        wmanager.Client,
        outline.XorOutlineClient,
        border.BorderClient,
        modestatus.ModeFocusedTitleClient,
        misc.InitialKeepOnScreenClient,
        focus.JumpstartClient,
        TraceIMClient,
):

    #    window_proxy_class = composite.CompositeProxy

    no_border_clients = cf.name('MPlayer')
    full_screen_windows = cf.name('MPlayer')

    start_iconified_clients = cf.name('WMManager')
    default_pointer_pos = {
        'Emacs': (-5, 5),
        'XTerm': (-5, 5),
        'rxvt': (-5, 5),
    }

    border_default_color = border.FixedBorderColor('grey20', 'grey60')

    traceim_filters = [
        TraceIM(
            cf.name('Emacs'),  # KOM runs in Emacs
            f.And(cf.iconified,
                  cf.re_title('Olästa')),  # only when iconified and unread
            'Olästa'),
    ]
Exemple #2
0
class MyScreen(wmanager.Screen, color.Color, modewindow.ModeWindowScreen,
               modestatus.ModeStatus, modestatus.ModeMoveResize,
               views.XMW_ViewHandler, modestatus.ModeFocusedTitleScreen):
    """Example screen class

    This class adds support for colors(FIXME), views, and a mode window, and
    adds support to the mode window for displaying status(FIXME: clarify),
    movement and resizing information, the current view, and the title of the
    currently-focused window.

    """
    view_always_visible_clients = f.Or(cf.name('XClock'), cf.name('XBiff'))
Exemple #3
0
class MyClient(wmanager.Client, outline.XorOutlineClient,
               modestatus.ModeFocusedTitleClient):
    """Example client class

    This class adds an XOR outline for moving/resizing windows and a hook to
    display the title of the currently-focused window in the mode window. It
    also specifies a list of clients that should start in an iconified
    (withdrawn) state and specifies default pointer positions for a couple of
    programs.

    """
    # Put a frame around all client windows
    window_proxy_class = frame.FrameProxy

    start_iconified_clients = cf.name('WMManager')
    default_pointer_pos = {'Emacs': (-1, 0), 'XTerm': (-1, 0)}
Exemple #4
0
 def F3(self, event):
     """Find a view containing a Netscape window."""
     self.wm.current_screen.view_find_with_client(cf.name('Firefox'))
Exemple #5
0
 def F2(self, event):
     """Find a view containing an Emacs window."""
     self.wm.current_screen.view_find_with_client(cf.name('Emacs'))
Exemple #6
0
 def F1(self, event):
     """Find a view containing an XTerm."""
     self.wm.current_screen.view_find_with_client(cf.name('XTerm'))
Exemple #7
0
 def F8(self, evt):
     self.wm.current_screen.view_find_with_client(
         f.Or(cf.name('Vmware'), cf.name('Vmplayer')))
Exemple #8
0
 def F4(self, evt):
     self.wm.current_screen.view_find_with_client(
         f.Or(cf.name('xpdf'), cf.name('soffice'),
              cf.re_name('^OpenOffice.org'), cf.name('AcroRead'),
              cf.name('evince')))
Exemple #9
0
 def F3(self, evt):
     self.wm.current_screen.view_find_with_client(
         f.Or(cf.name('Firefox-bin'), cf.name('Firefox')))
Exemple #10
0
 def F2(self, evt):
     self.wm.current_screen.view_find_with_client(cf.name('Emacs'))
Exemple #11
0
 def F1(self, evt):
     self.wm.current_screen.view_find_with_client(
         f.Or(cf.name('rxvt'), cf.name('xterm')))