[], "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.Stack(stacks=[60, 40], name='s6040', **border), layout.Stack(stacks=[80, 20], name='s8020', **border), layout.Max(),
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( graph_color='18BAEB', fill_color='1667EB.3', **Theme.graph), widget.TextBox('', 'mem', **Theme.widget), widget.MemoryGraph( graph_color='00FE81', fill_color='00B25B.3', **Theme.graph), widget.TextBox('', 'swap', **Theme.widget), widget.SwapGraph(