Ejemplo n.º 1
0
        lazy.group.next_window()),
    Key([mod, "shift"], "Tab",
        lazy.group.prev_window()),
    Key([mod, "shift"], "Return",
        lazy.layout.rotate()),
    Key([mod, "shift"], "space",
        lazy.layout.toggle_split()),

    Key([mod], "w",
        lazy.to_screen(0)),
    Key([mod], "e",
        lazy.to_screen(1)),
    Key([mod], "Left",
        lazy.prevgroup()),
    Key([mod], "Right",
        lazy.nextgroup()),
    Key([mod], "space",
        lazy.nextlayout()),
    Key([mod], "c",
        lazy.window.kill()),
    Key([mod], "t",
        lazy.window.disable_floating()),
    Key([mod, "shift"], "t",
        lazy.window.enable_floating()),

    Key([win], "d",
        lazy.spawn(Commands.dmenu)),
    Key([mod], "Return",
        lazy.spawn('terminology')),
    Key([win], "s",
        lazy.spawn(Commands.screenshot)),
Ejemplo n.º 2
0
    Key(["mod4"], "F2",     lazy.spawn(
        "dmenu_run -p run -nb '#202020' -nf '#ffffff' -fa 'Anonymous Pro-10'")),

    Key(
        ["mod4", "shift"], "k",
        lazy.spawn("amixer -c 0 -q set Master 2dB+")
    ),
    Key(
        ["mod4", "shift"], "j",
        lazy.spawn("amixer -c 0 -q set Master 2dB-")
    ),
    Key(
        ["mod4"], "Left", lazy.prevgroup(),
    ),
    Key(
        ["mod4"], "Right", lazy.nextgroup(),
    ),
]

# Next, we specify group names, and use the group name list to generate an appropriate
# set of bindings for group switching.
groups = [
    Group("1"),
    Group("2"),
]
for i in groups:
    keys.append(
        Key(["mod4"], i.name, lazy.group[i.name].toscreen())
    )
    keys.append(
        Key(["mod4", "shift"], i.name, lazy.window.togroup(i.name))
Ejemplo n.º 3
0
    Key([mod, "shift"], "s", lazy.spawn("~/note/conf/uzbl/open_goog")),
    Key([mod], "q", lazy.spawn('xtrlock')),
    Key([mod], "y",
        lazy.spawn(
            'xclip -o -selection primary | xclip -selection clipboard')),
    Key([mod], "u",
        lazy.spawn(
            'xclip -o -selection clipboard | xclip -selection primary')),
    Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer sset Master 5%+")),
    Key([], "XF86AudioLowerVolume", lazy.spawn("amixer sset Master 5%-")),
    Key([], "XF86AudioMute", lazy.spawn("amixer sset Master toggle")),
    Key(["shift"], "XF86AudioRaiseVolume", lazy.spawn("mpc volume +5")),
    Key(["shift"], "XF86AudioLowerVolume", lazy.spawn("mpc volume -5")),
    Key(["shift"], "XF86AudioMute", lazy.spawn("mpc toggle")),
    Key([mod], "Left", lazy.prevgroup()),
    Key([mod], "Right", lazy.nextgroup()),
]

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 = dict(
Ejemplo n.º 4
0
    Key([mod, "shift"], "f", lazy.window.toggle_fullscreen()),
    Key([mod], "g",      lazy.spawn("google-chrome")),
    Key([mod], "Return", lazy.spawn("x-terminal-emulator")),
    Key([mod], "z",  lazy.nextlayout()),
    Key([mod, "shift"], "z",  lazy.prevlayout()),
    Key([mod, "control"], "space",  lazy.nextlayout()),
    Key([mod], "c",      lazy.window.kill()),
    Key([mod], "t",      lazy.window.disable_floating()),
    # Key([mod, "shift"], "t", lazy.window.enable_floating()),

    # interact with prompts
    Key([mod], "r",              lazy.spawncmd()),
    Key([mod], "g",              lazy.switchgroup()),

    Key([mod], "Left", lazy.prevgroup()),
    Key([mod], "Right", lazy.nextgroup()),
]

if HOSTNAME.startswith('yoga'):
    keys += [
        Key([], "F5", lazy.spawn(Commands.yoga_rotate)),
        Key([mod], "s", lazy.spawn(Commands.suspend)),
        Key([], "XF86MonBrightnessDown", lazy.spawn("xbacklight -dec 5")),
        Key([], "XF86MonBrightnessUp", lazy.spawn("xbacklight -inc 5")),
        Key([], "XF86AudioRaiseVolume", lazy.spawn(Commands.volume % '5dB+')),
        Key([], "XF86AudioLowerVolume", lazy.spawn(Commands.volume % '5dB-')),
        # Already active
        # Key([], "XF86AudioMute", lazy.spawn(Commands.volume % 'toggle')),
    ]