Пример #1
0
# cycle: switch between horizontal and vertical tiling

# increase_master: increase the space allocated to master windows
# decrease_master: increase the space allocated to slave windows
# add_master: send a window from the slave group to the master group
# remove_master: send a window from the master group to the slave group

# prev_client: Focus the previous window
# next_client: Focus the next window
# focus_master: Focus the master window

# switch_prev_client: switch active window with previous
# switch_next_client: switch active window with next
# rotate: shift all windows' positions (clockwise)
# make_master: send active window to the master position

	'Control-Mod4-h': tile.cmd('tile'),
        'Control-Mod1-h': tile.cmd('untile'),
        'Control-Mod1-m': tile.cmd('decrease_master'),
        'Control-Mod4-m': tile.cmd('increase_master'),
        'Control-Mod1-n': tile.cmd('remove_master'),
        'Control-Mod4-n': tile.cmd('add_master'),
	'Control-Mod4-r': tile.cmd('rotate'),
        'Control-Mod4-Tab': tile.cmd('cycle'),
        'Control-Mod4-z': tile.cmd('toggle_float'),

# quit pytyle
    'Control-Mod4-q': state.quit,
}

Пример #2
0
# increase_master: increase the space allocated to master windows
# decrease_master: increase the space allocated to slave windows
# add_master: send a window from the slave group to the master group
# remove_master: send a window from the master group to the slave group

# prev_client: Focus the previous window
# next_client: Focus the next window
# focus_master: Focus the master window

# switch_prev_client: switch active window with previous
# switch_next_client: switch active window with next
# rotate: shift all windows' positions (clockwise)
# make_master: send active window to the master position

	'Control-Mod4-v': tile.cmd('tile'),
    'Control-Mod4-BackSpace': tile.cmd('untile'),
    'Control-Mod4-s': tile.cmd('decrease_master'),
    'Control-Mod4-r': tile.cmd('increase_master'),
    'Control-Mod4-g': tile.cmd('remove_master'),
    'Control-Mod4-d': tile.cmd('add_master'),
	'Control-Mod4-c': tile.cmd('rotate'),
    'Control-Mod4-h': tile.cmd('cycle'),
    'Control-Mod4-f': tile.cmd('toggle_float'),
    'Control-Mod4-m': tile.cmd('make_master'),

# quit pytyle
    'Control-Mod4-q': state.quit,
}

Пример #3
0
# increase_master: increase the space allocated to master windows
# decrease_master: increase the space allocated to slave windows
# add_master: send a window from the slave group to the master group
# remove_master: send a window from the master group to the slave group

# prev_client: Focus the previous window
# next_client: Focus the next window
# focus_master: Focus the master window

# switch_prev_client: switch active window with previous
# switch_next_client: switch active window with next
# rotate: shift all windows' positions (clockwise)
# make_master: send active window to the master position

	'Control-Mod1-v': tile.cmd('tile'),
    'Control-Mod1-BackSpace': tile.cmd('untile'),
    'Control-Mod1-s': tile.cmd('decrease_master'),
    'Control-Mod1-r': tile.cmd('increase_master'),
    'Control-Mod1-g': tile.cmd('remove_master'),
    'Control-Mod1-d': tile.cmd('add_master'),
	'Control-Mod1-c': tile.cmd('rotate'),
    'Control-Mod1-h': tile.cmd('cycle'),
    'Control-Mod1-f': tile.cmd('toggle_float'),

# quit pytyle
    'Control-Mod1-q': state.quit,
}


########NEW FILE########
Пример #4
0
import state
import tile

bindings = {
    'Mod4-a':           tile.cmd('tile'),
    'Mod4-Shift-a':     tile.cmd('untile'),
    'Mod4-h':           tile.cmd('decrease_master'),
    'Mod4-l':           tile.cmd('increase_master'),
    #'Mod4-j':          tile.cmd('prev_client'),
    #'Mod4-k':          tile.cmd('next_client'),
    'Mod4-Shift-j':     tile.cmd('switch_prev_client'),
    'Mod4-Shift-k':     tile.cmd('switch_next_client'),
    'Mod4-comma':       tile.cmd('add_master'),
    'Mod4-period':      tile.cmd('remove_master'),
    'Mod4-Control-Return': tile.cmd('make_master'),
    'Mod4-m':           tile.cmd('focus_master'),
    'Mod4-z':           tile.cmd('cycle'),

    #'Mod4-q':       tile.debug_state,
    #'Mod4-Shift-q': state.quit,
}

Пример #5
0
bindings = {
    # You can use Control and Shift. Alt is Mod1, Super is Mod4.
    # Available commands :
    # tile: start tiling
    # untile: stop tiling and move the windows back to their original position
    # cycle: switch between horizontal and vertical tiling
    # increase_master: increase the space allocated to master windows
    # decrease_master: increase the space allocated to slave windows
    # add_master: send a window from the slave group to the master group
    # remove_master: send a window from the master group to the slave group
    # prev_client: Focus the previous window
    # next_client: Focus the next window
    # focus_master: Focus the master window
    # switch_prev_client: switch active window with previous
    # switch_next_client: switch active window with next
    # rotate: shift all windows' positions (clockwise)
    # make_master: send active window to the master position
    "Control-Mod1-v": tile.cmd("tile"),
    "Control-Mod1-BackSpace": tile.cmd("untile"),
    "Control-Mod1-s": tile.cmd("decrease_master"),
    "Control-Mod1-r": tile.cmd("increase_master"),
    "Control-Mod1-g": tile.cmd("remove_master"),
    "Control-Mod1-d": tile.cmd("add_master"),
    "Control-Mod1-c": tile.cmd("rotate"),
    "Control-Mod1-h": tile.cmd("cycle"),
    "Control-Mod1-f": tile.cmd("toggle_float"),
    # quit pytyle
    "Control-Mod1-q": state.quit,
}
Пример #6
0
import state
import tile

bindings = {
    'Mod1-a':       tile.cmd('tile'),
    'Mod1-u':       tile.cmd('untile'),
    'Mod1-h':       tile.cmd('decrease_master'),
    'Mod1-l':       tile.cmd('increase_master'),
    'Mod1-j':       tile.cmd('prev_client'),
    'Mod1-k':       tile.cmd('next_client'),
    'Mod1-Shift-j': tile.cmd('switch_prev_client'),
    'Mod1-Shift-k': tile.cmd('switch_next_client'),
    'Mod1-comma':   tile.cmd('remove_master'),
    'Mod1-period':  tile.cmd('add_master'),
    'Mod1-Return':  tile.cmd('make_master'),
    'Mod1-m':       tile.cmd('focus_master'),
    'Mod1-z':       tile.cmd('cycle'),

    'Mod1-q':       tile.debug_state,
    'Mod1-Shift-q': state.quit,
}

Пример #7
0
# originally taken from https://github.com/demizer/dotfiles/blob/master/.config/pytyle3/keybind.py

import state
import tile

bindings = {
    'Mod4-y': tile.cmd('tile'),
    'Mod4-u': tile.cmd('untile'),
    'Mod4-h': tile.cmd('decrease_master'),
    'Mod4-l': tile.cmd('increase_master'),
    'Mod4-j': tile.cmd('prev_client'),
    'Mod4-k': tile.cmd('next_client'),
    'Mod4-Shift-j': tile.cmd('switch_prev_client'),
    'Mod4-Shift-k': tile.cmd('switch_next_client'),
    'Mod4-minus': tile.cmd('remove_master'),
    'Mod4-plus': tile.cmd('add_master'),
    'Mod4-Return': tile.cmd('make_master'),
    'Mod4-f': tile.cmd('focus_master'),
    #'Mod4-tilde': tile.cmd('cycle'),
    'Mod4-i': tile.cmd('cycle'),

    # 'Mod4-q': tile.debug_state,
    'Mod4-Shift-q': state.quit,
}
Пример #8
0
# increase_master: increase the space allocated to master windows
# decrease_master: increase the space allocated to slave windows
# add_master: send a window from the slave group to the master group
# remove_master: send a window from the master group to the slave group

# prev_client: Focus the previous window
# next_client: Focus the next window
# focus_master: Focus the master window

# switch_prev_client: switch active window with previous
# switch_next_client: switch active window with next
# rotate: shift all windows' positions (clockwise)
# make_master: send active window to the master position

	'Mod4-t': tile.cmd('tile'),
    'Mod4-u': tile.cmd('untile'),
    'Mod4-d': tile.cmd('decrease_master'),
    'Mod4-i': tile.cmd('increase_master'),
    'Mod4-r': tile.cmd('remove_master'),
    'Mod4-a': tile.cmd('add_master'),
	'Mod4-o': tile.cmd('rotate'),
    'Mod4-c': tile.cmd('cycle'),
    'Mod4-j': tile.cmd('prev_client'),
    'Mod4-k': tile.cmd('next_client'),
    'Mod4-h': tile.cmd('switch_prev_client'),
    'Mod4-l': tile.cmd('switch_next_client'),
    'Mod4-m': tile.cmd('make_master'),
    'Mod4-f': tile.cmd('focus_master'),

# quit pytyle