Example #1
0
def window_rules(text):
    "Window rules"
    return lines_starting_with("bspc rule ", text)
Example #2
0
def theme(text):
    "Theme"
    return lines_starting_with("ZSH_THEME=", text)
Example #3
0
def window_managers(text):
    "Window managers"
    return lines_starting_with("exec ", text)
Example #4
0
def commands(text):
    "Commands bound to keybinds"
    indented = lines_starting_with(" ", text)
    stripped = (line.strip() for line in indented if not line.isspace())
    return (line for line in stripped if line[0] != "#")
Example #5
0
def readline_macros(text):
    "Readline macros"
    return lines_starting_with("bind ", text)
Example #6
0
def font(text):
    "Font"
    return lines_starting_with("font ", text)
Example #7
0
def colorschemes(text):
    "Colorschemes"
    return lines_starting_with("colorscheme ", text)
Example #8
0
def ps1(text):
    "PS1"
    return lines_starting_with("PS1=", text)
Example #9
0
def autostart(text):
    "exec"
    return lines_starting_with("exec --no-startup-id ", text)
Example #10
0
def modkey(text):
    "Modkey"
    return lines_starting_with("set $mod ", text)
Example #11
0
def outer_gaps(text):
    "Outer gaps"
    return lines_starting_with("gaps outer ", text)
Example #12
0
def inner_gaps(text):
    "Inner gaps"
    return lines_starting_with("gaps inner ", text)
Example #13
0
def modes(text):
    "Modes"
    return lines_starting_with("mode ", text)
Example #14
0
def keybindings(text):
    "Keybindings"
    return lines_starting_with("bindkey ", text)
Example #15
0
def vundle(text):
    "Vundle plugins"
    return lines_starting_with("Plugin ", text)
Example #16
0
def exports(text):
    "Exports"
    return lines_starting_with("export ", text)
Example #17
0
def plug(text):
    "Vim-plug plugins"
    return lines_starting_with("Plug ", text)
Example #18
0
def ps2(text):
    "PS2"
    return lines_starting_with("PS2=", text)
Example #19
0
def set_statements(text):
    "Set statements"
    return lines_starting_with("set ", text)
Example #20
0
def aliases(text):
    "Aliases"
    return lines_starting_with("alias ", text)
Example #21
0
def font(text):
    "Font"
    fonts = lines_starting_with("font = ", text)
    return (font.lower() for font in fonts)