[], "XF86AudioLowerVolume", lazy.spawn("amixer -c 0 -q set Master 2dB-") ), Key( [], "XF86AudioMute", lazy.spawn("amixer -c 0 -q set Master toggle") ), # Also allow changing volume the old fashioned way. Key([mod], "equal", lazy.spawn("amixer -c 0 -q set Master 2dB+")), Key([mod], "minus", lazy.spawn("amixer -c 0 -q set Master 2dB-")), ] # This allows you to drag windows around with the mouse if you want. 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()) ] # Border settings for layouts border = dict( border_normal='#808080', border_width=4, ) # Two basic layouts. layouts = [ # 30in monitor layout.Stack(stacks=[40, 40, 20], name='s404020', **border),
}, '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(