예제 #1
0
    Key([mod], "w", lazy.to_screen(0)),
    Key([mod, "shift"], "w", lazy.function(move_window_to_screen(0))),
    Key([mod], "e", lazy.to_screen(1)),
    Key([mod, "shift"], "e", lazy.function(move_window_to_screen(1))),
    Key([mod], "Return", lazy.spawn("urxvt")),
    Key([mod], "p",
        lazy.spawn("dmenu_run -fn '%s:pixelsize=%d'" % (font, fontsize))),
    Key([mod, "shift"], "c", lazy.window.kill()),
    Key([mod], "q", lazy.restart()),
    Key([mod, "shift"], "q", lazy.shutdown()),
]

mouse = [
    Click([mod], "Button1", lazy.window.bring_to_front()),
    Drag([mod],
         "Button1",
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag([mod],
         "Button3",
         lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
]

group_names = [
    ("code1", {}),
    ("code2", {}),
    ("web", {
        'layout': 'max'
    }),
    ("email", {
        'layout': 'max'
예제 #2
0
        },
        'layout': 'skype'
    }),
)

groups = []
for index, (name, config) in enumerate(group_setup, 1):
    groups.append(Group(name, layout=config.get('layout', 'xmonad')))
    keys.extend([
        Key([MOD], str(index), lazy.group[name].toscreen()),
        Key([MOD, SHIFT], str(index), lazy.window.togroup(name))
    ])

mouse = [
    Drag([MOD],
         'Button1',
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag([MOD],
         'Button3',
         lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
    Click([MOD], 'Button2', lazy.window.bring_to_front())
]

screens = [
    Screen(top=bar.Bar(widgets=[
        widget.TextBox('', 'screen 1', **Theme.widget),
        widget.GroupBox(**Theme.groupbox),
        widget.WindowName(**Theme.widget),
        widget.TextBox('', 'cpu', **Theme.widget),
        widget.CPUGraph(