import libqtile

keys = [
    libqtile.Key(
        ["mod1"], "k",
        libqtile.command.Call("max_next").when(layout="max"),
        libqtile.command.Call("stack_down").when(layout="stack"),
    ),
    libqtile.Key(
        ["mod1"], "j",
        libqtile.command.Call("max_previous").when(layout="max"),
        libqtile.command.Call("stack_up").when(layout="stack"),
    ),
    libqtile.Key(
        ["mod1"], "space",
        libqtile.command.Call("stack_next").when(layout="stack")
    ),
    libqtile.Key(
        ["mod1", "shift"], "space",
        libqtile.command.Call("stack_rotate").when(layout="stack")
    ),
    libqtile.Key(["mod1"], "n",      libqtile.command.Call("spawn", "firefox")),
    libqtile.Key(["mod1"], "h",      libqtile.command.Call("to_screen", 0)),
    libqtile.Key(["mod1"], "l",      libqtile.command.Call("to_screen", 1)),
    libqtile.Key(["mod1"], "Return", libqtile.command.Call("spawn", "~/bin/x")),
    libqtile.Key(["mod1"], "Tab",    libqtile.command.Call("nextlayout")),
    libqtile.Key(["mod1"], "w",      libqtile.command.Call("kill")),
    libqtile.Key(
        ["mod1", "shift"], "k",
        libqtile.command.Call("spawn", "amixer -qc 0 set PCM 2dB+")
    ),
    libqtile.Key(
        ["mod1", "shift"], "j",
        libqtile.command.Call("spawn", "amixer -qc 0 set PCM 2dB-")
    ),
    libqtile.Key(
        ["mod1", "shift"], "n",
        libqtile.command.Call("spawn", "amarok -t")
    ),
    libqtile.Key(
        ["mod1", "shift"], "l",
        libqtile.command.Call("spawn", "amarok -f")
    ),
    libqtile.Key(
        ["mod1", "shift"], "h",
        libqtile.command.Call("spawn", "amarok -r")
    ),
]
groups = ["a", "s", "d", "f", "u", "i", "o", "p"]
for i in groups:
    keys.append(
        libqtile.Key(["mod1"], i, libqtile.command.Call("pullgroup", i))
    )
layouts = [
    libqtile.layout.Max(),
    libqtile.layout.Stack()
]
commands = []
screens = [
    libqtile.Screen(
        bottom = libqtile.bar.Bar(
                    [
                        libqtile.bar.GroupBox(),
                        libqtile.bar.WindowName()
                    ],
                    30,
                ),
    ),
    libqtile.Screen(
        bottom = libqtile.bar.Bar(
                    [
                        libqtile.bar.GroupBox(),
                        libqtile.bar.WindowName()
                    ],
                    30,
                ),
    )
]

Add my configuration file as an example.
Add my configuration file as an example.
