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